/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 | 52 new ClassConst([]), 64 new ClassConst([new \PhpParser\Node\Const_('foo', new String_('foo_value'))]), 65 new ClassConst([new \PhpParser\Node\Const_('bar', new String_('bar_value'))]), 88 new ClassConst([]), 107 new ClassConst([]), 127 new ClassConst([]),
|
H A D | ClassConstTest.php | 12 $node = new ClassConst( 21 $node = new ClassConst([], 0);
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | ClassConstTest.php | 20 return new ClassConst($name, $value); 30 new Stmt\ClassConst( 45 new Stmt\ClassConst( 60 new Stmt\ClassConst( 75 new Stmt\ClassConst( 92 new Stmt\ClassConst( 111 new Stmt\ClassConst( 133 new Stmt\ClassConst( 150 new Stmt\ClassConst(
|
H A D | TraitTest.php | 15 use PhpParser\Node\Stmt\ClassConst; alias 33 $const = new ClassConst([new Const_('FOO', new Int_(0))]); 70 new ClassConst([]), 89 new ClassConst([]),
|
H A D | InterfaceTest.php | 52 $const = new Stmt\ClassConst([ 60 $const = new Stmt\ClassConst([ 70 $this->assertInstanceOf(Stmt\ClassConst::class, $contract->stmts[0]); 107 $const = new Stmt\ClassConst([
|
H A D | EnumTest.php | 56 $const = new Stmt\ClassConst([
|
H A D | ClassTest.php | 91 $const = new Stmt\ClassConst([
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | ClassLike.php | 33 * @return ClassConst[] 38 if ($stmt instanceof ClassConst) {
|
H A D | ClassConst.php | 8 class ClassConst extends Node\Stmt { class
|
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | ClassConst.php | 15 class ClassConst implements PhpParser\Builder { class 142 return new Stmt\ClassConst(
|
H A D | Interface_.php | 56 if ($stmt instanceof Stmt\ClassConst) {
|
H A D | Trait_.php | 48 } elseif ($stmt instanceof Stmt\ClassConst) {
|
H A D | Enum_.php | 81 } elseif ($stmt instanceof Stmt\ClassConst) {
|
H A D | Class_.php | 115 } elseif ($stmt instanceof Stmt\ClassConst) {
|
/PHP-Parser/ |
H A D | phpstan-baseline.neon | 4 …message: "#^Method PhpParser\\\\Builder\\\\ClassConst\\:\\:__construct\\(\\) has parameter \\$valu… 6 path: lib/PhpParser/Builder/ClassConst.php 9 …message: "#^Method PhpParser\\\\Builder\\\\ClassConst\\:\\:addConst\\(\\) has parameter \\$value w… 11 path: lib/PhpParser/Builder/ClassConst.php
|
H A D | UPGRADE-4.0.md | 66 * The `ClassConst::isStatic()` method has been removed. Constants cannot have a static modifier.
|
H A D | UPGRADE-3.0.md | 32 * The `ClassConst` constructor changed to accept an additional `flags` subnode.
|
H A D | CHANGELOG.md | 377 * Added `ClassConst` builder. 436 `Stmt\ClassMethod`, `Stmt\ClassConst`, `Stmt\Property`, `Expr\Closure`, `Expr\ArrowFunction` and 814 * The `ClassConst::isStatic()` method has been removed. Constants cannot have a static modifier. 1051 * [7.1] Added support for class constant visibility. The `ClassConst` node now has a `flags` subnode 1071 * The `ClassConst` constructor changed to accept an additional `flags` subnode.
|
/PHP-Parser/lib/PhpParser/ |
H A D | BuilderFactory.php | 195 public function classConst($name, $value): Builder\ClassConst { 196 return new Builder\ClassConst($name, $value);
|
H A D | PrettyPrinterAbstract.php | 1527 Stmt\ClassConst::class . '->consts' => ', ', 1583 Stmt\ClassConst::class . '->attrGroups' => "\n", 1630 Stmt\ClassConst::class . '->attrGroups' => [null, '', "\n"], 1675 Stmt\ClassConst::class . '->flags' => ['pModifiers', \T_CONST],
|
H A D | ParserAbstract.php | 24 use PhpParser\Node\Stmt\ClassConst; alias 1139 protected function checkClassConst(ClassConst $node, int $modifierPos): void {
|
/PHP-Parser/test/PhpParser/ |
H A D | BuilderFactoryTest.php | 43 $this->assertInstanceOf(Builder\ClassConst::class, $factory->classConst('TEST', 1));
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NameResolver.php | 123 } elseif ($node instanceof Stmt\ClassConst) {
|
/PHP-Parser/grammar/ |
H A D | php.y | 846 { $$ = new Stmt\ClassConst($4, $2, attributes(), $1); 849 { $$ = new Stmt\ClassConst($5, $2, attributes(), $1, $4);
|