Home
last modified time | relevance | path

Searched refs:constants (Results 1 – 21 of 21) sorted by relevance

/PHP-Parser/test/PhpParser/Node/Stmt/
H A DInterfaceTest.php28 $constants = [
35 $constants[0],
37 $constants[1],
41 $this->assertSame($constants, $class->getConstants());
H A DClassTest.php63 $constants = [
70 $constants[0],
72 $constants[1],
76 $this->assertSame($constants, $class->getConstants());
/PHP-Parser/lib/PhpParser/Builder/
H A DClassConst.php20 protected array $constants = []; variable in PhpParser\\Builder\\ClassConst
34 $this->constants = [new Const_($name, BuilderHelpers::normalizeValue($value))];
46 $this->constants[] = new Const_($name, BuilderHelpers::normalizeValue($value));
143 $this->constants,
H A DInterface_.php16 protected array $constants = []; variable in PhpParser\\Builder\\Interface_
57 $this->constants[] = $stmt;
90 'stmts' => array_merge($this->constants, $this->methods),
H A DTrait_.php15 protected array $constants = []; variable in PhpParser\\Builder\\Trait_
49 $this->constants[] = $stmt;
78 … 'stmts' => array_merge($this->uses, $this->constants, $this->properties, $this->methods),
H A DEnum_.php22 protected array $constants = []; variable in PhpParser\\Builder\\Enum_
82 $this->constants[] = $stmt;
112 'stmts' => array_merge($this->uses, $this->enumCases, $this->constants, $this->methods),
H A DClass_.php21 protected array $constants = []; variable in PhpParser\\Builder\\Class_
116 $this->constants[] = $stmt;
147 … 'stmts' => array_merge($this->uses, $this->constants, $this->properties, $this->methods),
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DClassLike.php36 $constants = [];
39 $constants[] = $stmt;
42 return $constants;
/PHP-Parser/test/code/parser/scalar/
H A DmagicConst.test1 Magic constants
/PHP-Parser/test/code/prettyPrinter/stmt/
H A Dclass_const.test1 Class constants
/PHP-Parser/test/code/parser/stmt/
H A Dconst.test1 Global constants
/PHP-Parser/test/code/prettyPrinter/expr/
H A Dliterals.test5 // magic constants
88 // magic constants
/PHP-Parser/test/code/parser/stmt/class/
H A DtypedConstants.test1 Typed constants
/PHP-Parser/doc/component/
H A DName_resolution.markdown27 * Declarations of functions, classes, interfaces, traits, enums and global constants will have a
78 The `$type` parameters accept one of the `Stmt\Use_::TYPE_*` constants, which represent the three
79 basic symbol types in PHP (functions, constants and everything else).
H A DConstant_expression_evaluation.markdown4 Initializers for constants, properties, parameters, etc. have limited support for expressions. For
75 Handling these expression types requires non-local information, such as which global constants are
H A DAST_builders.markdown20 * properties, class constants and enum cases
/PHP-Parser/test/code/parser/expr/uvs/
H A DconstDeref.test1 Dereferencing of constants
/PHP-Parser/
H A DCHANGELOG.md114 * [PHP 8.3] Added support for typed constants.
124 * Moved `NodeTraverser::REMOVE_NODE` etc. to `NodeVisitor::REMOVE_NODE`. The old constants are still
153 * Added support for class constants in trait builder.
292 * [PHP 8.1] Added support for final class constants.
953 * The constants on `NameTraverserInterface` have been moved into the `NameTraverser` class.
1109 * Magic constants are now supported as semi-reserved keywords.
1178 * Token constants are now defined on `PhpParser\Parser\Tokens` rather than `PhpParser\Parser`.
H A DUPGRADE-3.0.md156 * The constants on `NameTraverserInterface` have been moved into the `NameTraverser` class.
H A DUPGRADE-5.0.md296constants on a separate `PhpParser\Modifiers` class, instead of being part of `PhpParser\Node\Stmt…
/PHP-Parser/doc/
H A D2_Usage_of_basic_components.markdown187 (`PhpParser\Node\Scalar\String_`), `0` (`PhpParser\Node\Scalar\LNumber`) or magic constants

Completed in 60 milliseconds