This website works better with JavaScript
Startsida
Utforska
Hjälp
Logga in
gitgod
/
store
Bevaka
1
Stjärnmärk
0
Fork
0
Filer
Ärenden
0
Pull-förfrågningar
0
Wiki
Gren:
dev
Grenar
Taggar
dev
master
store
/
vendor
/
nikic
/
php-parser
/
doc
Gleb
66078cb367
test
5 år sedan
..
component
66078cb367
test
5 år sedan
0_Introduction.markdown
66078cb367
test
5 år sedan
2_Usage_of_basic_components.markdown
66078cb367
test
5 år sedan
README.md
66078cb367
test
5 år sedan
README.md
Table of Contents
Guide
Introduction
Usage of basic components
Component documentation
Walking the AST
Node visitors
Modifying the AST from a visitor
Short-circuiting traversals
Interleaved visitors
Simple node finding API
Parent and sibling references
Name resolution
Name resolver options
Name resolution context
Pretty printing
Converting AST back to PHP code
Customizing formatting
Formatting-preserving code transformations
AST builders
Fluent builders for AST nodes
Lexer
Lexer options
Token and file positions for nodes
Custom attributes
Error handling
Column information for errors
Error recovery (parsing of syntactically incorrect code)
Constant expression evaluation
Evaluating constant/property/etc initializers
Handling errors and unsupported expressions
JSON representation
JSON encoding and decoding of ASTs
Performance
Disabling XDebug
Reusing objects
Garbage collection impact
Frequently asked questions
Parent and sibling references