Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 94) sorted by relevance

1234

/PHP-Parser/test/code/parser/stmt/namespace/
H A DgroupUse.test13 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 Dalias.test21 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 DgroupUseTrailingComma.test9 type: TYPE_UNKNOWN (0)
15 type: TYPE_NORMAL (1)
24 type: TYPE_FUNCTION (2)
30 type: TYPE_UNKNOWN (0)
H A DgroupUseErrors.test11 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 DNullableType.php9 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 DUseItem.php13 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 DDiffElem.php15 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 DTraitUseAdaptation.php16 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 DUse_.php13 protected int $type; variable in PhpParser\\Builder\\Use_
22 public function __construct($name, int $type) { argument
24 $this->type = $type;
47 ], $this->type);
/PHP-Parser/lib/PhpParser/Node/Expr/
H A DInclude_.php16 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 DNameContext.php57 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 DBuilderHelpers.php161 public static function normalizeType($type) { argument
162 if (!is_string($type)) {
164 !$type instanceof Name && !$type instanceof Identifier &&
165 !$type instanceof ComplexType
171 return $type;
175 if (strlen($type) > 0 && $type[0] === '?') {
177 $type = substr($type, 1);
197 $lowerType = strtolower($type);
199 $type = new Identifier($lowerType);
201 $type = self::normalizeName($type);
[all …]
/PHP-Parser/
H A Dphpstan-baseline.neon4 …\\:\\:__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…
119 …deDumper\\:\\:dump\\(\\) has parameter \\$node with no value type specified in iterable type array…
[all …]
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php109 if (null !== $node->type) {
110 $node->type = $this->resolveType($node->type);
115 $param->type = $this->resolveType($param->type);
124 if (null !== $node->type) {
125 $node->type = $this->resolveType($node->type);
140 foreach ($node->types as &$type) {
141 $type = $this->resolveClassName($type);
175 $type |= $use->type;
185 $param->type = $this->resolveType($param->type);
201 $node->type = $this->resolveType($node->type);
[all …]
/PHP-Parser/lib/PhpParser/Node/Stmt/
H A DUse_.php23 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 DGroupUse.php13 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 DClassConst.php16 public ?Node $type; variable in PhpParser\\Node\\Stmt\\ClassConst
32 ?Node $type = null argument
38 $this->type = $type;
/PHP-Parser/test/code/parser/stmt/function/
H A DnullableTypes.test21 type: NullableType(
22 type: Name(
39 type: NullableType(
40 type: Identifier(
55 type: Name(
H A DbuiltinTypeDeclarations.test1 Scalar type declarations
19 type: Identifier(
35 type: Identifier(
51 type: Identifier(
67 type: Identifier(
83 type: Identifier(
99 type: Identifier(
115 type: Identifier(
H A DtypeVersions.test28 type: Name(
44 type: Name(
60 type: Name(
76 type: Name(
92 type: Name(
111 type: Name(
130 type: Name(
149 type: Name(
168 type: Name(
304 type: Name(
[all …]
/PHP-Parser/test/code/parser/stmt/class/
H A DpropertyTypes.test28 type: Identifier(
46 type: Name(
64 type: NullableType(
65 type: Identifier(
84 type: NullableType(
85 type: Identifier(
H A Dasymmetric_visibility.test33 type: null
49 type: null
65 type: null
90 type: null
104 type: null
118 type: null
143 Multiple access type modifiers are not allowed from 3:18 to 3:29
144 Multiple access type modifiers are not allowed from 4:18 to 4:28
161 type: null
177 type: null
H A DconstModifiers.test29 type: null
45 type: null
61 type: null
77 type: null
93 type: null
/PHP-Parser/test/code/parser/expr/
H A DincludeAndEval.test16 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 DaddingPropertyType.test1 Adding property type
12 $stmts[0]->stmts[0]->type = new Node\Identifier('string');
31 $stmts[0]->stmts[0]->type = new Node\Identifier('int');

Completed in 42 milliseconds

1234