php-ast-inspector
php-ast-inspector copied to clipboard
Kind of a step-debugger for your Abstract Syntax Tree
- [ ] Actually navigate (guess a,s,d,w or extract from output?) - [ ] Provide a script with lots of variation to check if rendering doesn't trigger any errors
This requires the use of the `PHPStanNodeScopeResolver`, Tomas provided a few hints: - https://github.com/rectorphp/rector-src/blob/efc31c044beef561349e7b0ac9f8b4fbb112fa71/packages/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php#L198 - https://github.com/rectorphp/rector-src/blob/efc31c044beef561349e7b0ac9f8b4fbb112fa71/packages/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php#L111 - https://github.com/rectorphp/rector-src/blob/efc31c044beef561349e7b0ac9f8b4fbb112fa71/packages/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php#L123
To limit the number of lines of code on screen, it would be useful to cut off lines from the beginning and end of the file.