function Node::getStartTokenPos
Gets the token offset of the first token that is part of this node.
The offset is an index into the array returned by Lexer::getTokens().
Requires the 'startTokenPos' attribute to be enabled in the lexer (DISABLED by default).
Return value
int Token start position (or -1 if not available)
1 method overrides Node::getStartTokenPos()
- NodeAbstract::getStartTokenPos in vendor/
nikic/ php-parser/ lib/ PhpParser/ NodeAbstract.php - Gets the token offset of the first token that is part of this node.
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Node.php, line 60
Class
Namespace
PhpParserCode
public function getStartTokenPos() : int;