Home
last modified time | relevance | path

Searched refs:Const_ (Results 1 – 19 of 19) sorted by relevance

/PHP-Parser/test/PhpParser/Node/Stmt/
H A DInterfaceTest.php16 new Node\Stmt\ClassConst([new Node\Const_('C1', new Node\Scalar\String_('C1'))]),
18 new Node\Stmt\ClassConst([new Node\Const_('C2', new Node\Scalar\String_('C2'))]),
20 new Node\Stmt\ClassConst([new Node\Const_('C3', new Node\Scalar\String_('C3'))]),
29 new ClassConst([new \PhpParser\Node\Const_('foo', new String_('foo_value'))]),
30 new ClassConst([new \PhpParser\Node\Const_('bar', new String_('bar_value'))]),
H A DClassTest.php64 new ClassConst([new \PhpParser\Node\Const_('foo', new String_('foo_value'))]),
65 new ClassConst([new \PhpParser\Node\Const_('bar', new String_('bar_value'))]),
/PHP-Parser/test/PhpParser/Builder/
H A DClassConstTest.php10 use PhpParser\Node\Const_; alias
32 new Const_("TEST", new Int_(1))
47 new Const_("TEST", new Int_(1))
62 new Const_("TEST", new Int_(1))
77 new Const_("TEST", new Int_(1))
94 new Const_("TEST", new Int_(1))
113 new Const_("FIRST_TEST", new Int_(1)),
114 new Const_("SECOND_TEST", new Int_(2))
135 new Const_("ATTR_GROUP", new Int_(1))
151 [new Const_('TYPE', new Int_(1))],
H A DInterfaceTest.php53 new Node\Const_('SPEED_OF_LIGHT', new Float_(299792458.0))
61 new Node\Const_('SPEED_OF_LIGHT', new Float_(299792458))
108 new Node\Const_('SPEED_OF_LIGHT', new Float_(299792458))
H A DTraitTest.php10 use PhpParser\Node\Const_; alias
33 $const = new ClassConst([new Const_('FOO', new Int_(0))]);
H A DEnumTest.php57 new Node\Const_('TEST_CONST', new Node\Scalar\String_('ABC'))
H A DClassTest.php92 new Node\Const_('TEST_CONST', new Node\Scalar\String_('ABC'))
/PHP-Parser/lib/PhpParser/Builder/
H A DClassConst.php11 use PhpParser\Node\Const_; alias
34 $this->constants = [new Const_($name, BuilderHelpers::normalizeValue($value))];
46 $this->constants[] = new Const_($name, BuilderHelpers::normalizeValue($value));
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DConst_.php7 class Const_ extends Node\Stmt { class
/PHP-Parser/lib/PhpParser/Node/
H A DConst_.php7 class Const_ extends NodeAbstract { class
/PHP-Parser/test/PhpParser/NodeVisitor/
H A DNameResolverTest.php369 new Stmt\Const_([
370 new Node\Const_('D', new Node\Scalar\Int_(42))
/PHP-Parser/
H A DUPGRADE-4.0.md20 * `Const_::$name`
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php119 } elseif ($node instanceof Stmt\Const_) {
/PHP-Parser/grammar/
H A Dphp.y260 | T_CONST constant_declaration_list semi { $$ = Stmt\Const_[$2]; }
334 identifier_not_reserved '=' expr { $$ = Node\Const_[$1, $3]; }
348 { $$ = Node\Const_[new Node\Identifier($1, stackAttributes(#1)), $3]; }
350 { $$ = Node\Const_[new Node\Identifier($1, stackAttributes(#1)), $3]; }
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown489 } elseif ($node instanceof Stmt\Const_) {
516 } elseif ($node instanceof Stmt\Const_) {
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php40 protected function pConst(Node\Const_ $node): string {
880 protected function pStmt_Const(Stmt\Const_ $node): string {
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp7.php1375 …$self->semValue = new Stmt\Const_($self->semStack[$stackPos-(3-2)], $self->getAttributes($self->to…
1436 …$self->semValue = new Node\Const_($self->semStack[$stackPos-(3-1)], $self->semStack[$stackPos-(3-3…
1446 …$self->semValue = new Node\Const_(new Node\Identifier($self->semStack[$stackPos-(3-1)], $self->get…
1449 …$self->semValue = new Node\Const_(new Node\Identifier($self->semStack[$stackPos-(3-1)], $self->get…
H A DPhp8.php1370 …$self->semValue = new Stmt\Const_($self->semStack[$stackPos-(3-2)], $self->getAttributes($self->to…
1431 …$self->semValue = new Node\Const_($self->semStack[$stackPos-(3-1)], $self->semStack[$stackPos-(3-3…
1441 …$self->semValue = new Node\Const_(new Node\Identifier($self->semStack[$stackPos-(3-1)], $self->get…
1444 …$self->semValue = new Node\Const_(new Node\Identifier($self->semStack[$stackPos-(3-1)], $self->get…
/PHP-Parser/lib/PhpParser/
H A DPrettyPrinterAbstract.php1532 Stmt\Const_::class . '->consts' => ', ',

Completed in 52 milliseconds