/PHP-Parser/test/code/parser/stmt/namespace/ |
H A D | groupUse.test | 13 type: TYPE_UNKNOWN (0) 19 type: TYPE_NORMAL (1) 28 type: TYPE_UNKNOWN (0) 34 type: TYPE_NORMAL (1) 41 type: TYPE_NORMAL (1) 50 type: TYPE_UNKNOWN (0) 56 type: TYPE_NORMAL (1) 63 type: TYPE_NORMAL (1) 72 type: TYPE_FUNCTION (2) 94 type: TYPE_CONSTANT (3) [all …]
|
H A D | alias.test | 21 type: TYPE_NORMAL (1) 24 type: TYPE_UNKNOWN (0) 33 type: TYPE_NORMAL (1) 36 type: TYPE_UNKNOWN (0) 47 type: TYPE_NORMAL (1) 68 type: TYPE_NORMAL (1) 83 type: TYPE_NORMAL (1) 97 type: TYPE_FUNCTION (2) 112 type: TYPE_FUNCTION (2) 126 type: TYPE_CONSTANT (3) [all …]
|
H A D | groupUseTrailingComma.test | 9 type: TYPE_UNKNOWN (0) 15 type: TYPE_NORMAL (1) 24 type: TYPE_FUNCTION (2) 30 type: TYPE_UNKNOWN (0)
|
H A D | groupUseErrors.test | 11 type: TYPE_UNKNOWN (0) 17 type: TYPE_NORMAL (1) 29 type: TYPE_UNKNOWN (0) 35 type: TYPE_NORMAL (1) 52 type: TYPE_NORMAL (1) 55 type: TYPE_UNKNOWN (0)
|
/PHP-Parser/lib/PhpParser/Node/ |
H A D | NullableType.php | 9 public Node $type; variable in PhpParser\\Node\\NullableType 14 * @param Identifier|Name $type Type 17 public function __construct(Node $type, array $attributes = []) { argument 19 $this->type = $type;
|
H A D | UseItem.php | 13 public int $type; variable in PhpParser\\Node\\UseItem 27 …public function __construct(Node\Name $name, $alias = null, int $type = Use_::TYPE_UNKNOWN, array … argument 29 $this->type = $type;
|
/PHP-Parser/lib/PhpParser/Internal/ |
H A D | DiffElem.php | 15 public int $type; variable in PhpParser\\Internal\\DiffElem 22 * @param int $type One of the TYPE_* constants 26 public function __construct(int $type, $old, $new) { argument 27 $this->type = $type;
|
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | TraitUseAdaptation.php | 16 protected int $type; variable in PhpParser\\Builder\\TraitUseAdaptation 31 $this->type = self::TYPE_UNDEFINED; 45 if ($this->type === self::TYPE_UNDEFINED) { 46 $this->type = self::TYPE_ALIAS; 49 if ($this->type !== self::TYPE_ALIAS) { 95 if ($this->type === self::TYPE_UNDEFINED) { 100 $this->type = self::TYPE_PRECEDENCE; 115 if ($this->type === self::TYPE_UNDEFINED) { 116 $this->type = self::TYPE_ALIAS; 119 if ($this->type !== self::TYPE_ALIAS) { [all …]
|
H A D | Use_.php | 13 protected int $type; variable in PhpParser\\Builder\\Use_ 22 public function __construct($name, int $type) { argument 24 $this->type = $type; 47 ], $this->type);
|
H A D | Param.php | 14 protected ?Node $type = null; variable in PhpParser\\Builder\\Param 50 public function setType($type) { argument 51 $this->type = BuilderHelpers::normalizeType($type); 52 if ($this->type == 'void') { 146 …$this->default, $this->type, $this->byRef, $this->variadic, [], $this->flags, $this->attributeGrou…
|
/PHP-Parser/lib/PhpParser/Node/Expr/ |
H A D | Include_.php | 16 public int $type; variable in PhpParser\\Node\\Expr\\Include_ 22 * @param int $type Type of include 25 public function __construct(Expr $expr, int $type, array $attributes = []) { argument 28 $this->type = $type;
|
/PHP-Parser/lib/PhpParser/ |
H A D | NameContext.php | 57 if ($type === Stmt\Use_::TYPE_CONSTANT) { 63 if (isset($this->aliases[$type][$aliasLookupName])) { 73 $typeStringMap[$type], $name, $aliasName 80 $this->aliases[$type][$aliasLookupName] = $name; 81 $this->origAliases[$type][$aliasName] = $name; 159 if ($type === Stmt\Use_::TYPE_NORMAL) { 186 foreach ($this->origAliases[$type] as $alias => $orig) { 187 if ($type === Stmt\Use_::TYPE_CONSTANT) { 213 $possibleNames = $this->getPossibleNames($name, $type); 242 if (isset($this->aliases[$type][$checkName])) { [all …]
|
H A D | BuilderHelpers.php | 160 public static function normalizeType($type) { argument 161 if (!is_string($type)) { 163 !$type instanceof Name && !$type instanceof Identifier && 164 !$type instanceof ComplexType 170 return $type; 174 if (strlen($type) > 0 && $type[0] === '?') { 176 $type = substr($type, 1); 196 $lowerType = strtolower($type); 198 $type = new Identifier($lowerType); 200 $type = self::normalizeName($type); [all …]
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NameResolver.php | 109 if (null !== $node->type) { 110 $node->type = $this->resolveType($node->type); 118 if (null !== $node->type) { 119 $node->type = $this->resolveType($node->type); 134 foreach ($node->types as &$type) { 135 $type = $this->resolveClassName($type); 169 $type |= $use->type; 179 $param->type = $this->resolveType($param->type); 195 $node->type = $this->resolveType($node->type); 199 foreach ($node->types as &$type) { [all …]
|
/PHP-Parser/ |
H A D | phpstan-baseline.neon | 4 …\\:\\:__construct\\(\\) has parameter \\$value with no value type specified in iterable type array… 9 …nst\\:\\:addConst\\(\\) has parameter \\$value with no value type specified in iterable type array… 14 …rFactory\\:\\:args\\(\\) has parameter \\$args with no value type specified in iterable type array… 19 …ory\\:\\:attribute\\(\\) has parameter \\$args with no value type specified in iterable type array… 29 …tory\\:\\:funcCall\\(\\) has parameter \\$args with no value type specified in iterable type array… 39 …erFactory\\:\\:new\\(\\) has parameter \\$args with no value type specified in iterable type array… 49 …rFactory\\:\\:val\\(\\) has parameter \\$value with no value type specified in iterable type array… 59 …\ConstExprEvaluator\\:\\:evaluateArray\\(\\) return type has no value type specified in iterable t… 74 …Parser\\\\JsonDecoder\\:\\:decodeArray\\(\\) return type has no value type specified in iterable t… 99 …deDumper\\:\\:dump\\(\\) has parameter \\$node with no value type specified in iterable type array… [all …]
|
/PHP-Parser/lib/PhpParser/Node/Stmt/ |
H A D | Use_.php | 23 public int $type; variable in PhpParser\\Node\\Stmt\\Use_ 34 … public function __construct(array $uses, int $type = self::TYPE_NORMAL, array $attributes = []) { argument 36 $this->type = $type;
|
H A D | GroupUse.php | 13 public int $type; variable in PhpParser\\Node\\Stmt\\GroupUse 27 …public function __construct(Name $prefix, array $uses, int $type = Use_::TYPE_NORMAL, array $attri… argument 29 $this->type = $type;
|
H A D | Property.php | 18 public ?Node $type; variable in PhpParser\\Node\\Stmt\\Property 28 * @param null|Identifier|Name|ComplexType $type Type declaration 31 …public function __construct(int $flags, array $props, array $attributes = [], ?Node $type = null, … argument 35 $this->type = $type;
|
/PHP-Parser/test/code/parser/stmt/function/ |
H A D | nullableTypes.test | 21 type: NullableType( 22 type: Name( 37 type: NullableType( 38 type: Identifier( 51 type: Name(
|
H A D | builtinTypeDeclarations.test | 1 Scalar type declarations 19 type: Identifier( 33 type: Identifier( 47 type: Identifier( 61 type: Identifier( 75 type: Identifier( 89 type: Identifier( 103 type: Identifier(
|
H A D | typeVersions.test | 28 type: Name( 42 type: Name( 56 type: Name( 70 type: Name( 84 type: Name( 101 type: Name( 118 type: Name( 135 type: Name( 152 type: Name( 278 type: Name( [all …]
|
H A D | variadic.test | 22 type: null 34 type: null 59 type: null 71 type: null 96 type: null 108 type: Name( 135 type: null 147 type: Name(
|
/PHP-Parser/test/code/parser/stmt/class/ |
H A D | propertyTypes.test | 28 type: Identifier( 44 type: Name( 60 type: NullableType( 61 type: Identifier( 78 type: NullableType( 79 type: Identifier(
|
/PHP-Parser/test/code/parser/expr/ |
H A D | includeAndEval.test | 16 type: TYPE_INCLUDE (1) 24 type: TYPE_INCLUDE_ONCE (2) 32 type: TYPE_REQUIRE (3) 40 type: TYPE_REQUIRE_ONCE (4)
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | addingPropertyType.test | 1 Adding property type 12 $stmts[0]->stmts[0]->type = new Node\Identifier('string'); 31 $stmts[0]->stmts[0]->type = new Node\Identifier('int');
|