/PHP-Parser/test/code/prettyPrinter/stmt/ |
H A D | alias.test | 5 use A\B; 6 use C\D as E; 7 use F\G as H, J; 9 use function foo\bar; 11 use const foo\BAR; 12 use const foo\BAR as BAZ; 14 use A\B; 15 use C\D as E; 16 use F\G as H, J; 17 use function foo\bar; [all …]
|
H A D | groupUse.test | 1 Group use declaration 4 use A\{B}; 5 use A\{B\C, D}; 6 use A\B\{C\D, E}; 7 use function A\{b\c, d}; 8 use const A\{B\C, D}; 11 use A\{B}; 12 use A\{B\C, D}; 13 use A\B\{C\D, E}; 14 use function A\{b\c, d}; [all …]
|
H A D | traitUse.test | 7 use B, C, D { 18 use B, C, D {
|
/PHP-Parser/test/code/parser/expr/ |
H A D | keywordsInNamespacedName.test | 5 namespace fn\use; 9 fn\use(); 10 \fn\use(); 11 namespace\fn\use(); 24 name: fn\use 51 name: fn\use 60 name: fn\use 69 name: fn\use
|
H A D | closure_use_trailing_comma.test | 1 Trailing comma in use list 4 function() use($a,) {};
|
H A D | arrayEmptyElemens.test | 9 Cannot use empty array elements in arrays from 3:5 to 3:5 10 Cannot use empty array elements in arrays from 4:10 to 4:10
|
/PHP-Parser/test/code/parser/stmt/namespace/ |
H A D | alias.test | 1 Aliases (use) 5 use A\B; 6 use C\D as E; 7 use F\G as H, J; 10 use \A; 11 use \A as B; 14 use function foo\bar; 15 use function foo\bar as baz; 16 use const foo\BAR; 17 use const foo\BAR as BAZ;
|
H A D | invalidName.test | 3 <?php use A as self; 5 Cannot use A as self because 'self' is a special class name from 1:16 to 1:19 23 <?php use B as PARENT; 25 Cannot use B as PARENT because 'PARENT' is a special class name from 1:16 to 1:21 43 <?php use C as static;
|
H A D | groupUseTrailingComma.test | 1 Group use can have trailing comma 4 use A\{B,}; 5 use function A\{b,};
|
H A D | groupUse.test | 1 Group use declarations 4 use A\{B}; 5 use A\{B\C, D}; 6 use \A\B\{C\D, E}; 7 use function A\{b\c, d}; 8 use const \A\{B\C, D}; 9 use A\B\{C\D, function b\c, const D};
|
H A D | groupUseErrors.test | 1 Invalid group use syntax 5 use Foo\{Bar} 6 use Bar\{Foo}; 47 use Foo {Bar, Baz}; 88 use Foo\{\Bar};
|
H A D | groupUsePositions.test | 1 Ensure correct file position attributes for group use prefix 4 use Foo\Bar\{Baz};
|
/PHP-Parser/test/code/formatPreservation/ |
H A D | group_use.test | 1 Group use should include trailing semicolon 4 use A\{B, C}; 9 use A\B;
|
H A D | traitAlias.test | 5 use T { 15 use T {
|
/PHP-Parser/test/code/parser/stmt/class/ |
H A D | name.test | 5 Cannot use 'self' as class name as it is reserved from 1:13 to 1:16 24 Cannot use 'PARENT' as class name as it is reserved from 1:13 to 1:18 53 Cannot use 'self' as class name as it is reserved from 1:23 to 1:26 74 Cannot use 'PARENT' as class name as it is reserved from 1:23 to 1:28 95 Cannot use 'static' as class name as it is reserved from 1:23 to 1:28 116 Cannot use 'self' as interface name as it is reserved from 1:26 to 1:29 138 Cannot use 'PARENT' as interface name as it is reserved from 1:26 to 1:31 160 Cannot use 'static' as interface name as it is reserved from 1:26 to 1:31 182 Cannot use 'self' as class name as it is reserved from 1:17 to 1:20 199 Cannot use 'PARENT' as class name as it is reserved from 1:17 to 1:22 [all …]
|
H A D | shortEchoAsIdentifier.test | 5 use T { 10 Cannot use "<?=" as an identifier from 4:17 to 4:19
|
/PHP-Parser/grammar/ |
H A D | parser.template | 10 use PhpParser\Error; 11 use PhpParser\Modifiers; 12 use PhpParser\Node; 13 use PhpParser\Node\Expr; 14 use PhpParser\Node\Name; 15 use PhpParser\Node\Scalar; 16 use PhpParser\Node\Stmt;
|
/PHP-Parser/doc/component/ |
H A D | FAQ.markdown | 13 use PhpParser\NodeTraverser; 14 use PhpParser\NodeVisitor\ParentConnectingVisitor; 15 use PhpParser\ParserFactory; 35 use PhpParser\NodeTraverser; 36 use PhpParser\NodeVisitor\NodeConnectingVisitor; 37 use PhpParser\ParserFactory;
|
H A D | AST_builders.markdown | 17 * namespaces and use statements 21 * trait uses and trait use adaptations 26 use PhpParser\BuilderFactory; 27 use PhpParser\PrettyPrinter; 28 use PhpParser\Node; 32 ->addStmt($factory->use('Some\Other\Thingy')->as('SomeClass')) 87 use Some\Other\Thingy as SomeClass; 88 use function strlen; 89 use const PHP_VERSION; 92 use FirstTrait; [all …]
|
H A D | Constant_expression_evaluation.markdown | 20 use PhpParser\{ConstExprEvaluator, ConstExprEvaluationException}; 42 use PhpParser\{ConstExprEvaluator, ConstExprEvaluationException}; 43 use PhpParser\Node\{Expr, Scalar}; 60 For the purposes of static analysis, you will likely want to use `evaluateSilently()` and leave 85 use PhpParser\{ConstExprEvaluator, ConstExprEvaluationException}; 86 use PhpParser\Node\Expr;
|
/PHP-Parser/test/code/prettyPrinter/expr/ |
H A D | closure.test | 12 $closureWithArgsAndVars = function ($arg1, $arg2) use($var1, $var2) { 19 $closureWithArgsAndVars = function ($arg1, $arg2) use ($var1, $var2) {
|
/PHP-Parser/test/code/parser/stmt/ |
H A D | tryWithoutCatch.test | 1 Cannot use try without catch or finally 9 Cannot use try without catch or finally from 3:1 to 5:1
|
/PHP-Parser/lib/PhpParser/NodeVisitor/ |
H A D | NameResolver.php | 59 foreach ($node->uses as $use) { 60 $this->addAlias($use, $node->type, null); 63 foreach ($node->uses as $use) { 64 $this->addAlias($use, $node->type, $node->prefix); 171 private function addAlias(Node\UseItem $use, int $type, ?Name $prefix = null): void { argument 173 $name = $prefix ? Name::concat($prefix, $use->name) : $use->name; 175 $type |= $use->type; 178 $name, (string) $use->getAlias(), $type, $use->getAttributes()
|
/PHP-Parser/doc/ |
H A D | 2_Usage_of_basic_components.markdown | 31 use PhpParser\ParserFactory; 32 use PhpParser\PhpVersion; 58 use PhpParser\Error; 88 use PhpParser\NodeDumper; 224 use PhpParser\Error; 315 use PhpParser\Node; 378 use A as B; 454 use PhpParser\Node; 477 use PhpParser\Node; 478 use PhpParser\Node\Stmt; [all …]
|
/PHP-Parser/ |
H A D | UPGRADE-2.0.md | 17 use PhpParser\Parser, PhpParser\Lexer; 24 use PhpParser\ParserFactory; 40 To use a custom lexer, pass it as the second argument to the `create()` method: 43 use PhpParser\ParserFactory; 51 `Parser\Multiple`. Parser tokens are now defined in `Parser\Tokens`. If you use the `ParserFactory` 68 * The legacy node format has been removed. If you use custom nodes, they are now expected to
|