Lines Matching refs:Scalar
8 use PhpParser\Node\Scalar; alias
24 $node = new Scalar\Float_(1.0);
25 $this->assertTrue($node instanceof Scalar\DNumber);
26 $node = new Scalar\Int_(1);
27 $this->assertTrue($node instanceof Scalar\LNumber);
29 $this->assertTrue($part instanceof Scalar\EncapsedStringPart);
30 $node = new Scalar\InterpolatedString([$part]);
31 $this->assertTrue($node instanceof Scalar\Encapsed);
32 $node = new Node\DeclareItem('strict_types', new Scalar\Int_(1));
52 $node = new Node\Scalar\DNumber(1.0);
53 $this->assertTrue($node instanceof Scalar\Float_);
54 $node = new Node\Scalar\LNumber(1);
55 $this->assertTrue($node instanceof Scalar\Int_);
56 $part = new Node\Scalar\EncapsedStringPart('foo');
58 $node = new Scalar\Encapsed([$part]);
59 $this->assertTrue($node instanceof Scalar\InterpolatedString);
60 $node = new Stmt\DeclareDeclare('strict_types', new Scalar\LNumber(1));