/PHP-Parser/test/PhpParser/Node/Stmt/ |
H A D | InterfaceTest.php | 16 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 D | ClassTest.php | 64 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 D | ClassConstTest.php | 10 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 D | InterfaceTest.php | 53 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 D | TraitTest.php | 10 use PhpParser\Node\Const_; alias 33 $const = new ClassConst([new Const_('FOO', new Int_(0))]);
|
H A D | EnumTest.php | 57 new Node\Const_('TEST_CONST', new Node\Scalar\String_('ABC'))
|
H A D | ClassTest.php | 92 new Node\Const_('TEST_CONST', new Node\Scalar\String_('ABC'))
|
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | ClassConst.php | 11 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 D | Const_.php | 7 class Const_ extends Node\Stmt { class
|
/PHP-Parser/lib/PhpParser/Node/ |
H A D | Const_.php | 7 class Const_ extends NodeAbstract { class
|
/PHP-Parser/test/PhpParser/NodeVisitor/ |
H A D | NameResolverTest.php | 369 new Stmt\Const_([ 370 new Node\Const_('D', new Node\Scalar\Int_(42))
|
/PHP-Parser/ |
H A D | UPGRADE-4.0.md | 20 * `Const_::$name`
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NameResolver.php | 119 } elseif ($node instanceof Stmt\Const_) {
|
/PHP-Parser/grammar/ |
H A D | php.y | 260 | 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 D | 2_Usage_of_basic_components.markdown | 489 } elseif ($node instanceof Stmt\Const_) { 516 } elseif ($node instanceof Stmt\Const_) {
|
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 40 protected function pConst(Node\Const_ $node): string { 880 protected function pStmt_Const(Stmt\Const_ $node): string {
|
/PHP-Parser/lib/PhpParser/Parser/ |
H A D | Php7.php | 1375 …$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 D | Php8.php | 1370 …$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 D | PrettyPrinterAbstract.php | 1532 Stmt\Const_::class . '->consts' => ', ',
|