/PHP-Parser/test/code/parser/ |
H A D | semiReserved.test | 60 name: Identifier( 72 name: Identifier( 277 name: Identifier( 289 name: Identifier( 301 name: Identifier( 313 name: Identifier( 325 name: Identifier( 335 name: Identifier( 345 name: Identifier( 355 name: Identifier( [all …]
|
/PHP-Parser/test/code/parser/stmt/function/ |
H A D | nullFalseTrueTypes.test | 15 name: Identifier( 20 returnType: Identifier( 30 name: Identifier( 35 returnType: Identifier( 45 name: Identifier( 70 name: Identifier( 75 returnType: Identifier( 85 name: Identifier( 90 returnType: Identifier( 100 name: Identifier( [all …]
|
H A D | exit_die_function.test | 14 name: Identifier( 24 0: Identifier( 27 1: Identifier( 44 returnType: Identifier( 54 name: Identifier( 64 0: Identifier( 67 1: Identifier( 84 returnType: Identifier(
|
H A D | returnTypes.test | 15 name: Identifier( 28 name: Identifier( 33 returnType: Identifier( 43 name: Identifier( 48 returnType: Identifier( 58 name: Identifier(
|
H A D | builtinTypeDeclarations.test | 11 name: Identifier( 19 type: Identifier( 35 type: Identifier( 51 type: Identifier( 67 type: Identifier( 83 type: Identifier( 99 type: Identifier( 115 type: Identifier( 128 returnType: Identifier(
|
H A D | unionTypes.test | 16 name: Identifier( 32 1: Identifier( 35 2: Identifier( 57 name: Identifier( 87 0: Identifier( 90 1: Identifier(
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | Goto_.php | 5 use PhpParser\Node\Identifier; alias 9 /** @var Identifier Name of label to jump to */ 10 public Identifier $name; 15 * @param string|Identifier $name Name of label to jump to 20 $this->name = \is_string($name) ? new Identifier($name) : $name;
|
H A D | Label.php | 5 use PhpParser\Node\Identifier; alias 9 /** @var Identifier Name */ 10 public Identifier $name; 15 * @param string|Identifier $name Name 20 $this->name = \is_string($name) ? new Identifier($name) : $name;
|
/PHP-Parser/test/code/parser/stmt/class/ |
H A D | trait.test | 28 name: Identifier( 37 name: Identifier( 52 name: Identifier( 77 method: Identifier( 81 newName: Identifier( 87 method: Identifier( 91 newName: Identifier( 97 method: Identifier( 122 method: Identifier( 138 method: Identifier( [all …]
|
H A D | typedConstants.test | 16 name: Identifier( 27 type: Identifier( 32 name: Identifier( 45 type: Identifier( 50 name: Identifier( 58 name: Identifier( 71 type: Identifier( 76 name: Identifier( 98 2: Identifier( 105 name: Identifier(
|
H A D | enum_with_string.test | 17 name: Identifier( 20 scalarType: Identifier( 29 name: Identifier( 39 name: Identifier( 47 name: Identifier( 57 name: Identifier(
|
H A D | enum.test | 18 name: Identifier( 28 name: Identifier( 38 name: Identifier( 56 name: Identifier( 59 scalarType: Identifier( 71 name: Identifier(
|
H A D | shortEchoAsIdentifier.test | 16 name: Identifier( 32 method: Identifier( 36 newName: Identifier( 42 method: Identifier( 46 newName: Identifier(
|
H A D | staticMethod.test | 11 name: Identifier( 23 name: Identifier( 44 name: Identifier( 56 name: Identifier( 77 name: Identifier( 89 name: Identifier( 110 name: Identifier( 122 name: Identifier( 143 name: Identifier( 155 name: Identifier( [all …]
|
/PHP-Parser/test/code/parser/expr/uvs/ |
H A D | constDeref.test | 30 name: Identifier( 42 name: Identifier( 89 name: Identifier( 129 name: Identifier( 133 name: Identifier( 144 name: Identifier( 148 name: Identifier( 165 name: Identifier( 195 name: Identifier( 215 name: Identifier( [all …]
|
/PHP-Parser/test/code/parser/expr/ |
H A D | constant_expr.test | 47 name: Identifier( 64 name: Identifier( 81 name: Identifier( 98 name: Identifier( 115 name: Identifier( 137 name: Identifier( 164 name: Identifier( 175 name: Identifier( 187 name: Identifier( 203 name: Identifier( [all …]
|
/PHP-Parser/lib/PhpParser/Node/ |
H A D | UseItem.php | 16 /** @var Identifier|null Alias */ 17 public ?Identifier $alias; 23 * @param null|string|Identifier $alias Alias 31 $this->alias = \is_string($alias) ? new Identifier($alias) : $alias; 41 public function getAlias(): Identifier { 46 return new Identifier($this->name->getLast());
|
H A D | Const_.php | 8 /** @var Identifier Name */ 9 public Identifier $name; 19 * @param string|Identifier $name Name 25 $this->name = \is_string($name) ? new Identifier($name) : $name;
|
/PHP-Parser/test/PhpParser/Builder/ |
H A D | ParamTest.php | 11 use PhpParser\Node\Identifier; alias 112 ['array', new Node\Identifier('array')], 114 ['bool', new Node\Identifier('bool')], 115 ['int', new Node\Identifier('int')], 116 ['float', new Node\Identifier('float')], 150 new Node\Identifier('array'), 154 new Node\Identifier('array'), 159 new Node\Identifier('self'), 160 new Node\Identifier('array'), 164 new Node\Identifier('self'), [all …]
|
/PHP-Parser/lib/PhpParser/ |
H A D | BuilderHelpers.php | 7 use PhpParser\Node\Identifier; alias 64 * @param string|Identifier $name The identifier to normalize 66 * @return Identifier The normalized identifier 68 public static function normalizeIdentifier($name): Identifier { 69 if ($name instanceof Identifier) { 74 return new Identifier($name); 83 * @param string|Identifier|Expr $name The identifier to normalize 88 if ($name instanceof Identifier || $name instanceof Expr) { 93 return new Identifier($name); 159 * @return Name|Identifier|ComplexType The normalized type [all …]
|
/PHP-Parser/lib/PhpParser/Node/Expr/ |
H A D | NullsafePropertyFetch.php | 7 use PhpParser\Node\Identifier; alias 12 /** @var Identifier|Expr Property name */ 19 * @param string|Identifier|Expr $name Property name 25 $this->name = \is_string($name) ? new Identifier($name) : $name;
|
H A D | PropertyFetch.php | 7 use PhpParser\Node\Identifier; alias 12 /** @var Identifier|Expr Property name */ 19 * @param string|Identifier|Expr $name Property name 25 $this->name = \is_string($name) ? new Identifier($name) : $name;
|
H A D | ClassConstFetch.php | 7 use PhpParser\Node\Identifier; alias 13 /** @var Identifier|Expr|Error Constant name */ 20 * @param string|Identifier|Expr|Error $name Constant name 26 $this->name = \is_string($name) ? new Identifier($name) : $name;
|
/PHP-Parser/test/code/parser/stmt/ |
H A D | const.test | 11 name: Identifier( 19 name: Identifier( 27 name: Identifier( 35 name: Identifier(
|
/PHP-Parser/test/PhpParser/ |
H A D | BuilderHelpersTest.php | 6 use PhpParser\Node\Identifier; alias 46 $identifier = new Node\Identifier('fn'); 56 $identifier = new Node\Identifier('fn'); 123 $this->assertEquals(new Node\Identifier('int'), BuilderHelpers::normalizeType('int')); 125 $this->assertEquals(new Node\Identifier('bool'), BuilderHelpers::normalizeType('bool')); 127 $this->assertEquals(new Node\Identifier('void'), BuilderHelpers::normalizeType('void')); 129 $this->assertEquals(new Node\Identifier('null'), BuilderHelpers::normalizeType('null')); 133 $this->assertEquals(new Node\Identifier('true'), BuilderHelpers::normalizeType('true')); 135 $intIdentifier = new Node\Identifier('int'); 141 $intNullable = new Node\NullableType(new Identifier('int')); [all …]
|