Lines Matching refs:Use_
6 use PhpParser\Node\Stmt\Use_; alias
15 $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);
37 [Use_::TYPE_NORMAL, 'Test', ['\Test']],
38 [Use_::TYPE_NORMAL, 'Test\Namespaced', ['\Test\Namespaced']],
39 [Use_::TYPE_NORMAL, 'NS\Test', ['\NS\Test', 'Test']],
40 [Use_::TYPE_NORMAL, 'ns\Test', ['\ns\Test', 'Test']],
41 [Use_::TYPE_NORMAL, 'NS\Foo\Bar', ['\NS\Foo\Bar']],
42 [Use_::TYPE_NORMAL, 'ns\foo\Bar', ['\ns\foo\Bar']],
43 [Use_::TYPE_NORMAL, 'Foo', ['\Foo', 'Foo']],
44 [Use_::TYPE_NORMAL, 'Foo\Bar', ['\Foo\Bar', 'Foo\Bar', 'Alias']],
45 [Use_::TYPE_NORMAL, 'Foo\Bar\Baz', ['\Foo\Bar\Baz', 'Foo\Bar\Baz', 'Alias\Baz']],
46 [Use_::TYPE_NORMAL, 'Foo\fn\Bar', ['\Foo\fn\Bar', 'Foo\fn\Bar']],
47 [Use_::TYPE_FUNCTION, 'Foo\fn\bar', ['\Foo\fn\bar', 'Foo\fn\bar']],
48 [Use_::TYPE_FUNCTION, 'Foo\fn', ['\Foo\fn', 'Foo\fn', 'fn']],
49 [Use_::TYPE_FUNCTION, 'Foo\FN', ['\Foo\FN', 'Foo\FN', 'fn']],
50 [Use_::TYPE_CONSTANT, 'Foo\CN\BAR', ['\Foo\CN\BAR', 'Foo\CN\BAR']],
51 [Use_::TYPE_CONSTANT, 'Foo\CN', ['\Foo\CN', 'Foo\CN', 'CN']],
52 [Use_::TYPE_CONSTANT, 'foo\CN', ['\foo\CN', 'Foo\CN', 'CN']],
53 [Use_::TYPE_CONSTANT, 'foo\cn', ['\foo\cn', 'Foo\cn']],
55 [Use_::TYPE_NORMAL, 'self', ['self']],
56 [Use_::TYPE_NORMAL, 'parent', ['parent']],
57 [Use_::TYPE_NORMAL, 'static', ['static']],
59 [Use_::TYPE_CONSTANT, 'true', ['\true', 'true']],
60 [Use_::TYPE_CONSTANT, 'false', ['\false', 'false']],
61 [Use_::TYPE_CONSTANT, 'null', ['\null', 'null']],