Home
last modified time | relevance | path

Searched refs:alias (Results 1 – 16 of 16) sorted by relevance

/PHP-Parser/lib/PhpParser/Node/
H A DUseItem.php17 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 DUse_.php14 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 DTraitUseAdaptation.php20 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 DgroupUse.test23 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 Dalias.test9 // 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 DgroupUseTrailingComma.test19 alias: null
34 alias: null
H A DgroupUseErrors.test21 alias: null
39 alias: null
59 alias: null
H A DinvalidName.test15 alias: Identifier(
35 alias: Identifier(
H A DgroupUsePositions.test19 alias: null
/PHP-Parser/lib/PhpParser/
H A DNameContext.php178 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 DParserAbstract.php1150 if ($node->alias && $node->alias->isSpecialClassName()) {
1154 $node->name, $node->alias
/PHP-Parser/test/code/formatPreservation/
H A DtraitAlias.test1 Trait alias
/PHP-Parser/
H A DUPGRADE-4.0.md42 * `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 DCHANGELOG.md805 * 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 Drecovery.test447 alias: null
459 alias: null
474 alias: null
600 alias: null
615 alias: null
627 alias: null
/PHP-Parser/lib/PhpParser/PrettyPrinter/
H A DStandard.php771 . (null !== $node->alias ? ' as ' . $node->alias : '');

Completed in 42 milliseconds