Lines Matching refs:Name
8 use PhpParser\Node\Name; alias
9 use PhpParser\Node\Name\FullyQualified;
102 * @param Name|string $name The name to normalize
104 * @return Name The normalized name
106 public static function normalizeName($name): Name {
107 if ($name instanceof Name) {
117 return new Name\FullyQualified(substr($name, 1));
121 return new Name\Relative(substr($name, strlen('namespace\\')));
124 return new Name($name);
133 * @param Expr|Name|string $name The name to normalize
135 * @return Name|Expr The normalized name or expression
142 if (!is_string($name) && !($name instanceof Name)) {
157 * @param string|Name|Identifier|ComplexType $type The type to normalize
159 * @return Name|Identifier|ComplexType The normalized type
164 !$type instanceof Name && !$type instanceof Identifier &&
229 new Name('null')
235 new Name($value ? 'true' : 'false')