Lines Matching refs:Node
5 use PhpParser\Node\Expr;
6 use PhpParser\Node\InterpolatedStringPart;
7 use PhpParser\Node\Name;
8 use PhpParser\Node\Scalar;
9 use PhpParser\Node\Stmt;
18 $node = new Node\ClosureUse($var);
20 $node = new Node\ArrayItem($var);
22 $node = new Node\StaticVar($var);
32 $node = new Node\DeclareItem('strict_types', new Scalar\Int_(1));
34 $node = new Node\PropertyItem('x');
36 $node = new Node\UseItem(new Name('X'));
46 $node = new Node\Expr\ClosureUse($var);
47 $this->assertTrue($node instanceof Node\ClosureUse);
48 $node = new Node\Expr\ArrayItem($var);
49 $this->assertTrue($node instanceof Node\ArrayItem);
50 $node = new Node\Stmt\StaticVar($var);
51 $this->assertTrue($node instanceof Node\StaticVar);
52 $node = new Node\Scalar\DNumber(1.0);
54 $node = new Node\Scalar\LNumber(1);
56 $part = new Node\Scalar\EncapsedStringPart('foo');
57 $this->assertTrue($part instanceof Node\InterpolatedStringPart);
61 $this->assertTrue($node instanceof Node\DeclareItem);
63 $this->assertTrue($node instanceof Node\PropertyItem);
65 $this->assertTrue($node instanceof Node\UseItem);