The available attributes are determined by the 'usedAttributes' option, which can
be specified in the constructor. The following attributes are supported:
* 'comments' => Array of PhpParser\Comment or PhpParser\Comment\Doc instances,
representing all comments that occurred between the previous
non-discarded token and the current one.
* 'startLine' => Line in which the node starts.
* 'endLine' => Line in which the node ends.
* 'startTokenPos' => Offset into the token array of the first token in the node.
* 'endTokenPos' => Offset into the token array of the last token in the node.
* 'startFilePos' => Offset into the code string of the first character that is part of the node.
* 'endFilePos' => Offset into the code string of the last character that is part of the node.
public getNextToken ( mixed &$value = null, mixed &$startAttributes = null, mixed &$endAttributes = null ) : integer | ||
$value | mixed | Variable to store token content in |
$startAttributes | mixed | Variable to store start attributes in |
$endAttributes | mixed | Variable to store end attributes in |
return | integer | Token id |