php-parser
php-parser copied to clipboard
:herb: NodeJS PHP Parser - extract AST or tokens
Bumps [jest-runner-eslint](https://github.com/jest-community/jest-runner-eslint) from 2.0.0 to 2.1.0. Release notes Sourced from jest-runner-eslint's releases. v2.1.0 What's Changed Support eslint's new flat config by @cprussin in jest-community/jest-runner-eslint#176 Full Changelog: https://github.com/jest-community/jest-runner-eslint/compare/v2.0.0...v2.1.0 Commits 0715ccd v2.1.0...
Input: ```php Foo::BarInFoo::class; ``` Out: `Parse Error : syntax error, unexpected '::' (T_DOUBLE_COLON) on line 2`
Hi When a body has noob child the start and end location are swapped. For example this code: ```php
I encountered the following source discrepancies while moving my AST->PHP writer from `any` types to strict typing. They are tolerable in JavaScript but cause problems in a type safe TypeScript:...
It looks like files that have typed constants are not parseable by the latest version (3.1.5). Input file: ```
Correcting name attributes in definition documents.
I am trying to fox #1130 however need some help with this one, for the prettier plugin we want to keep the original intent, and not parse the \n as...
Source of this problem: https://github.com/prettier/plugin-php/issues/2015#issuecomment-1982167227 Unable to parse snippet like this: ```
This property is static in my code, but in the node there is not a single identifying sign that it is static, so I cannot assemble the code correctly.
Handle T_Class as a special case when it comes after T_DOUBLE_COLON in recursive_variable_chain_scan This solves https://github.com/glayzzle/php-parser/issues/1135 ``` $arrayVariable[0]::class; $classVariable->classProp::class ```