Home
last modified time | relevance | path

Searched refs:ClassConst (Results 1 – 25 of 29) sorted by relevance

12

/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.php52 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 DClassConstTest.php12 $node = new ClassConst(
21 $node = new ClassConst([], 0);
/PHP-Parser/test/PhpParser/Builder/
H A DClassConstTest.php20 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 DTraitTest.php15 use PhpParser\Node\Stmt\ClassConst; alias
33 $const = new ClassConst([new Const_('FOO', new Int_(0))]);
70 new ClassConst([]),
89 new ClassConst([]),
H A DInterfaceTest.php52 $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 DEnumTest.php56 $const = new Stmt\ClassConst([
H A DClassTest.php91 $const = new Stmt\ClassConst([
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DClassLike.php33 * @return ClassConst[]
38 if ($stmt instanceof ClassConst) {
H A DClassConst.php8 class ClassConst extends Node\Stmt { class
/PHP-Parser/lib/PhpParser/Builder/
H A DClassConst.php15 class ClassConst implements PhpParser\Builder { class
142 return new Stmt\ClassConst(
H A DInterface_.php56 if ($stmt instanceof Stmt\ClassConst) {
H A DTrait_.php48 } elseif ($stmt instanceof Stmt\ClassConst) {
H A DEnum_.php81 } elseif ($stmt instanceof Stmt\ClassConst) {
H A DClass_.php115 } elseif ($stmt instanceof Stmt\ClassConst) {
/PHP-Parser/
H A Dphpstan-baseline.neon4 …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 DUPGRADE-4.0.md66 * The `ClassConst::isStatic()` method has been removed. Constants cannot have a static modifier.
H A DUPGRADE-3.0.md32 * The `ClassConst` constructor changed to accept an additional `flags` subnode.
H A DCHANGELOG.md377 * 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 DBuilderFactory.php195 public function classConst($name, $value): Builder\ClassConst {
196 return new Builder\ClassConst($name, $value);
H A DPrettyPrinterAbstract.php1527 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 DParserAbstract.php24 use PhpParser\Node\Stmt\ClassConst; alias
1139 protected function checkClassConst(ClassConst $node, int $modifierPos): void {
/PHP-Parser/test/PhpParser/
H A DBuilderFactoryTest.php43 $this->assertInstanceOf(Builder\ClassConst::class, $factory->classConst('TEST', 1));
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php123 } elseif ($node instanceof Stmt\ClassConst) {
/PHP-Parser/grammar/
H A Dphp.y846 { $$ = new Stmt\ClassConst($4, $2, attributes(), $1);
849 { $$ = new Stmt\ClassConst($5, $2, attributes(), $1, $4);

Completed in 45 milliseconds

12