1
0
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:
nikic 2012-04-04 14:10:21 +02:00
parent 337da5648c
commit d6d51ec3bf

View File

@ -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
--------------