invalid ast for `{` and `}`
See original GitHub issueInput:
$var = $foo->bzr_{1};
$var = $foo->bzr_{'string'};
$var = $foo->bzr_{$baz};
$var = $foo->bzr_{$baz->foo};
$var = $foo->bzr_{$var ? 'one' : 'two'};
Parsed as encapsed with offset
, but it is just offsetlookup with curly brackets
Should be parse as:
$var = $foo->bzr_[1];
$var = $foo->bzr_['string'];
$var = $foo->bzr_[$baz];
$var = $foo->bzr_[$baz->foo];
$var = $foo->bzr_[$var ? 'one' : 'two'];
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Invalid AST Node: {"input":"** } on graphql mutation (Amplify ...
I created all items and then I tried to delete them but I failed especially on PostEditor. There is a mutation to delete...
Read more >Getting "Error: Invalid AST Node..." when using useQuery #1372
Describe the bug I am trying to use vue apollo client with a vue2 project that uses the @vue/composition-api plugin.
Read more >Apollo AST - Apollo GraphQL Docs
Apollo Kotlin's parser has its own module ( apollo-ast ), which you can use ... The following snippet parses and validates a short...
Read more >Valloric/YouCompleteMe - Gitter
but if somehow clangd is setup differently, then this is a red herring and the "invalid AST" error is something else. although I...
Read more >ASTNode (JavaScript Development Tools API Specification)
An AST node represents a JavaScript source code construct, such as a name, type, expression, ... void, setSourceRange(int startPosition, int length)
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ichiriac i will send a fix https://github.com/glayzzle/php-parser/pull/377
It is same code, look