Home
last modified time | relevance | path

Searched refs:addAlias (Results 1 – 4 of 4) sorted by relevance

/PHP-Parser/test/PhpParser/
H A DNameContextTest.php15 $nameContext->addAlias(new Name('Foo'), 'Foo', Use_::TYPE_NORMAL);
16 $nameContext->addAlias(new Name('Foo\Bar'), 'Alias', Use_::TYPE_NORMAL);
17 $nameContext->addAlias(new Name('Foo\fn'), 'fn', Use_::TYPE_FUNCTION);
18 $nameContext->addAlias(new Name('Foo\CN'), 'CN', Use_::TYPE_CONSTANT);
/PHP-Parser/lib/PhpParser/NodeVisitor/
H A DNameResolver.php60 $this->addAlias($use, $node->type, null);
64 $this->addAlias($use, $node->type, $node->prefix);
171 private function addAlias(Node\UseItem $use, int $type, ?Name $prefix = null): void { function in PhpParser\\NodeVisitor\\NameResolver
177 $this->nameContext->addAlias(
/PHP-Parser/lib/PhpParser/
H A DNameContext.php55 … public function addAlias(Name $name, string $aliasName, int $type, array $errorAttrs = []): void { function in PhpParser\\NameContext
/PHP-Parser/doc/component/
H A DName_resolution.markdown68 public function addAlias(Name $name, string $aliasName, int $type, array $errorAttrs = []);

Completed in 9 milliseconds