1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-26 20:04:48 +01:00

Document getDocComment and getLine

This commit is contained in:
nikic 2011-07-14 13:21:41 +02:00
parent 962c4dc0f0
commit 06fcef9090

View File

@ -61,6 +61,10 @@ Subnodes are accessed as normal properties:
The subnodes which a certain node can have are documented as `@property` doccomments in the
respective files.
Additionally all nodes have two methods, `getLine()` and `getDocComment()`.
`getLine()` returns the line a node started in.
`getDocComment()` returns the doccomment before the node or `null` if there was none.
NodeDumper
----------