Home
last modified time | relevance | path

Searched refs:New_ (Results 1 – 13 of 13) sorted by relevance

/PHP-Parser/test/PhpParser/Node/Expr/
H A DCallableLikeTest.php31 [new New_(new Name('Test'), $normalArgs), false],
34 [new New_(new Name('Test'), $callableArgs), true],
/PHP-Parser/test/PhpParser/NodeVisitor/
H A DNameResolverTest.php356 $stmts = [new Node\Expr\New_(new Name('self'))];
373 new Expr\New_(new Stmt\Class_(null)),
458 new Expr\New_(new Name\FullyQualified('self', ['startLine' => 3])),
462 new Expr\New_(new Name\Relative('self', ['startLine' => 3])),
466 new Expr\New_(new Name\FullyQualified('PARENT', ['startLine' => 3])),
470 new Expr\New_(new Name\Relative('STATIC', ['startLine' => 3])),
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DNew_.php10 class New_ extends CallLike { class
/PHP-Parser/lib/PhpParser/Internal/
H A DPrintableNewAnonClassNode.php53 public static function fromNewNode(Expr\New_ $newNode): self {
/PHP-Parser/lib/PhpParser/
H A DBuilderFactory.php304 public function new($class, array $args = []): Expr\New_ {
305 return new Expr\New_(
H A DPrettyPrinterAbstract.php623 if ($node instanceof Expr\New_ && $node->class instanceof Stmt\Class_) {
625 assert($origNode instanceof Expr\New_);
1340 Expr\New_::class => ['class' => self::FIXUP_NEW],
1524 Expr\New_::class . '->args' => ', ',
1619 Expr\New_::class . '->args' => ['(', '', ''],
/PHP-Parser/test/PhpParser/
H A DBuilderFactoryTest.php185 new Expr\New_(new Name\FullyQualified('stdClass')),
190 new Expr\New_(
/PHP-Parser/doc/component/
H A DConstant_expression_evaluation.markdown72 * `Expr\New_` (since PHP 8.1)
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php133 || $node instanceof Expr\New_
/PHP-Parser/grammar/
H A Dphp.y1118 T_NEW class_name_reference argument_list { $$ = Expr\New_[$2, $3]; }
1120 { list($class, $ctorArgs) = $2; $$ = Expr\New_[$class, $ctorArgs]; }
1124 T_NEW class_name_reference { $$ = Expr\New_[$2, []]; }
/PHP-Parser/lib/PhpParser/Parser/
H A DPhp8.php2452 …$self->semValue = new Expr\New_($self->semStack[$stackPos-(3-2)], $self->semStack[$stackPos-(3-3)]…
2455 …$ctorArgs) = $self->semStack[$stackPos-(2-2)]; $self->semValue = new Expr\New_($class, $ctorArgs, …
2458 …$self->semValue = new Expr\New_($self->semStack[$stackPos-(2-2)], [], $self->getAttributes($self->…
H A DPhp7.php2436 …$self->semValue = new Expr\New_($self->semStack[$stackPos-(3-2)], $self->semStack[$stackPos-(3-3)]…
2439 …$ctorArgs) = $self->semStack[$stackPos-(2-2)]; $self->semValue = new Expr\New_($class, $ctorArgs, …
2442 …$self->semValue = new Expr\New_($self->semStack[$stackPos-(2-2)], [], $self->getAttributes($self->…
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php701 protected function pExpr_New(Expr\New_ $node): string {

Completed in 55 milliseconds