mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-30 04:19:30 +01:00
Document getDocComment and getLine
This commit is contained in:
parent
962c4dc0f0
commit
06fcef9090
@ -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
|
The subnodes which a certain node can have are documented as `@property` doccomments in the
|
||||||
respective files.
|
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
|
NodeDumper
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user