mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-30 04:19:30 +01:00
Add docs for node attributes
This commit is contained in:
parent
337da5648c
commit
d6d51ec3bf
@ -108,6 +108,9 @@ without the `PHPParser_Node_` prefix). Additionally there are `getLine()`, which
|
||||
the node startet in, and `getDocComment()`, which returns the doc comment above the node (if there
|
||||
is any), and the respective setters `setLine()` and `setDocComment()`.
|
||||
|
||||
It is possible to associate custom metadata with a node using the `setAttribute()` method. This data
|
||||
can then be retrieved using `hasAttribute()`, `getAttribute()` and `getAttributes()`.
|
||||
|
||||
Pretty printer
|
||||
--------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user