Searched refs:alias (Results 1 – 16 of 16) sorted by relevance
/PHP-Parser/lib/PhpParser/Node/ |
H A D | UseItem.php | 17 public ?Identifier $alias; variable in PhpParser\\Node\\UseItem 23 * @param null|string|Identifier $alias Alias 27 …public function __construct(Node\Name $name, $alias = null, int $type = Use_::TYPE_UNKNOWN, array … argument 31 $this->alias = \is_string($alias) ? new Identifier($alias) : $alias; 42 if (null !== $this->alias) { 43 return $this->alias;
|
/PHP-Parser/lib/PhpParser/Builder/ |
H A D | Use_.php | 14 protected ?string $alias = null; variable in PhpParser\\Builder\\Use_ 30 * @param string $alias Alias to use (last component of full name by default) 34 public function as(string $alias) { argument 35 $this->alias = $alias; 46 new Node\UseItem($this->name, $this->alias)
|
H A D | TraitUseAdaptation.php | 20 protected ?Node\Identifier $alias = null; variable in PhpParser\\Builder\\TraitUseAdaptation 44 public function as($alias) { argument 53 $this->alias = BuilderHelpers::normalizeIdentifier($alias); 138 …turn new Stmt\TraitUseAdaptation\Alias($this->trait, $this->method, $this->modifier, $this->alias);
|
/PHP-Parser/test/code/parser/stmt/namespace/ |
H A D | groupUse.test | 23 alias: null 38 alias: null 45 alias: null 60 alias: null 67 alias: null 82 alias: null 89 alias: null 104 alias: null 111 alias: null 126 alias: null [all …]
|
H A D | alias.test | 9 // evil alias notation - Do Not Use! 28 alias: null 40 alias: Identifier( 54 alias: Identifier( 63 alias: null 75 alias: null 90 alias: Identifier( 104 alias: null 119 alias: Identifier( 133 alias: null [all …]
|
H A D | groupUseTrailingComma.test | 19 alias: null 34 alias: null
|
H A D | groupUseErrors.test | 21 alias: null 39 alias: null 59 alias: null
|
H A D | invalidName.test | 15 alias: Identifier( 35 alias: Identifier(
|
H A D | groupUsePositions.test | 19 alias: null
|
/PHP-Parser/lib/PhpParser/ |
H A D | NameContext.php | 178 foreach ($this->origAliases[Stmt\Use_::TYPE_NORMAL] as $alias => $orig) { 181 $possibleNames[] = new Name($alias . substr($name, strlen($lcOrig))); 186 foreach ($this->origAliases[$type] as $alias => $orig) { 191 $possibleNames[] = new Name($alias); 196 $possibleNames[] = new Name($alias); 236 $alias = $this->aliases[Stmt\Use_::TYPE_NORMAL][$checkName]; 237 return FullyQualified::concat($alias, $name->slice(1), $name->getAttributes());
|
H A D | ParserAbstract.php | 1150 if ($node->alias && $node->alias->isSpecialClassName()) { 1154 $node->name, $node->alias
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | traitAlias.test | 1 Trait alias
|
/PHP-Parser/ |
H A D | UPGRADE-4.0.md | 42 * `Stmt\UseUse::$alias` 52 * The `alias` subnode of `UseUse` is now `null` if no explicit alias is given. As such, 54 can be used to get the effective alias, even if it is not explicitly given.
|
H A D | CHANGELOG.md | 805 * The `alias` subnode of `UseUse` is now `null` if no explicit alias is given. As such, 807 can be used to get the effective alias, even if it is not explicitly given.
|
/PHP-Parser/test/code/parser/errorHandling/ |
H A D | recovery.test | 447 alias: null 459 alias: null 474 alias: null 600 alias: null 615 alias: null 627 alias: null
|
/PHP-Parser/lib/PhpParser/PrettyPrinter/ |
H A D | Standard.php | 771 . (null !== $node->alias ? ' as ' . $node->alias : '');
|
Completed in 26 milliseconds