Lines Matching refs:Identifier
6 use PhpParser\Node\Identifier; alias
46 $identifier = new Node\Identifier('fn');
56 $identifier = new Node\Identifier('fn');
120 $this->assertEquals(new Node\Identifier('array'), BuilderHelpers::normalizeType('array'));
121 … $this->assertEquals(new Node\Identifier('callable'), BuilderHelpers::normalizeType('callable'));
122 $this->assertEquals(new Node\Identifier('string'), BuilderHelpers::normalizeType('string'));
123 $this->assertEquals(new Node\Identifier('int'), BuilderHelpers::normalizeType('int'));
124 $this->assertEquals(new Node\Identifier('float'), BuilderHelpers::normalizeType('float'));
125 $this->assertEquals(new Node\Identifier('bool'), BuilderHelpers::normalizeType('bool'));
126 … $this->assertEquals(new Node\Identifier('iterable'), BuilderHelpers::normalizeType('iterable'));
127 $this->assertEquals(new Node\Identifier('void'), BuilderHelpers::normalizeType('void'));
128 $this->assertEquals(new Node\Identifier('object'), BuilderHelpers::normalizeType('object'));
129 $this->assertEquals(new Node\Identifier('null'), BuilderHelpers::normalizeType('null'));
130 $this->assertEquals(new Node\Identifier('false'), BuilderHelpers::normalizeType('false'));
131 $this->assertEquals(new Node\Identifier('mixed'), BuilderHelpers::normalizeType('mixed'));
132 $this->assertEquals(new Node\Identifier('never'), BuilderHelpers::normalizeType('never'));
133 $this->assertEquals(new Node\Identifier('true'), BuilderHelpers::normalizeType('true'));
135 $intIdentifier = new Node\Identifier('int');
141 $intNullable = new Node\NullableType(new Identifier('int'));
144 … $unionType = new Node\UnionType([new Node\Identifier('int'), new Node\Identifier('string')]);
234 …tEquals(new Expr\ClassConstFetch(new FullyQualified(\Suit::class), new Identifier('Hearts')), Buil…