Home
last modified time | relevance | path

Searched refs:ConstFetch (Results 1 – 22 of 22) sorted by relevance

/PHP-Parser/test/PhpParser/NodeVisitor/
H A DNodeConnectingVisitorTest.php5 use PhpParser\Node\Expr\ConstFetch; alias
27 $this->assertSame(ConstFetch::class, get_class($node->getAttribute('previous')));
29 $node = (new NodeFinder())->findFirstInstanceof($ast, ConstFetch::class);
H A DNameResolverTest.php403 new Expr\ConstFetch(new Name('FOO')),
407 new Expr\ConstFetch(new Name('FOO')),
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DConstFetch.php8 class ConstFetch extends Expr { class
/PHP-Parser/test/PhpParser/Builder/
H A DClassConstTest.php172 new Expr\ConstFetch(new Name('null'))
176 new Expr\ConstFetch(new Name('true'))
180 new Expr\ConstFetch(new Name('false'))
H A DPropertyTest.php182 new Expr\ConstFetch(new Name('null'))
186 new Expr\ConstFetch(new Name('true'))
190 new Expr\ConstFetch(new Name('false'))
H A DParamTest.php37 new Expr\ConstFetch(new Node\Name('null'))
41 new Expr\ConstFetch(new Node\Name('true'))
45 new Expr\ConstFetch(new Node\Name('false'))
/PHP-Parser/test/code/formatPreservation/
H A Dfixup.test65 $stmts[11]->expr->class = new Expr\ConstFetch(new Node\Name('FOO'));
66 $stmts[12]->expr->class = new Expr\ConstFetch(new Node\Name('FOO'));
67 $stmts[13]->expr->class = new Expr\ConstFetch(new Node\Name('FOO'));
H A Dbasic.test130 $stmts[0]->exprs[0] = new Expr\ConstFetch(new Node\Name('C'));
H A DinsertionOfNullable.test80 $stmts[0]->params[1]->default = new Expr\ConstFetch(new Node\Name('null'));
/PHP-Parser/lib/PhpParser/
H A DBuilderHelpers.php228 return new Expr\ConstFetch(
234 return new Expr\ConstFetch(
H A DConstExprEvaluator.php144 if ($expr instanceof Expr\ConstFetch) {
224 private function evaluateConstFetch(Expr\ConstFetch $expr) {
H A DBuilderFactory.php316 public function constFetch($name): Expr\ConstFetch {
317 return new Expr\ConstFetch(BuilderHelpers::normalizeName($name));
H A DPrettyPrinterAbstract.php1165 && !$node instanceof Expr\ConstFetch;
/PHP-Parser/test/PhpParser/
H A DBuilderHelpersTest.php182 …$this->assertEquals(new Expr\ConstFetch(new Node\Name('null')), BuilderHelpers::normalizeValue(nul…
183 …$this->assertEquals(new Expr\ConstFetch(new Node\Name('true')), BuilderHelpers::normalizeValue(tru…
184 …$this->assertEquals(new Expr\ConstFetch(new Node\Name('false')), BuilderHelpers::normalizeValue(fa…
H A DBuilderFactoryTest.php201 new Expr\ConstFetch(new Name('FOO')),
/PHP-Parser/doc/component/
H A DConstant_expression_evaluation.markdown70 * `Expr\ConstFetch` (only null/false/true are handled)
89 if ($expr instanceof Expr\ConstFetch) {
/PHP-Parser/tools/fuzzing/
H A Dtarget.php79 if ($node instanceof Expr\ConstFetch && $node->name->isUnqualified() &&
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php147 } elseif ($node instanceof Expr\ConstFetch) {
/PHP-Parser/grammar/
H A Dphp.y1200 name { $$ = Expr\ConstFetch[$1]; }
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php631 protected function pExpr_ConstFetch(Expr\ConstFetch $node): string {
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp7.php2526 …$self->semValue = new Expr\ConstFetch($self->semStack[$stackPos-(1-1)], $self->getAttributes($self…
H A DPhp8.php2528 …$self->semValue = new Expr\ConstFetch($self->semStack[$stackPos-(1-1)], $self->getAttributes($self…

Completed in 93 milliseconds