mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-27 04:14:44 +01:00
d774dbc1b7
The lexer can now optionally add startFilePos and endFilePos attributes, which are offsets in to the lexed code string. The end offset currently points one past the last character of the token - this is pending further discussion. The attributes are not added by default and have to be enabled using the new 'usedAttributes' lexer option: $lexer = new Lexer([ 'usedAttributes' => [ 'comments', 'startLine', 'endLine', 'startFilePos', 'endFilePos' ] ]); |
||
---|---|---|
.. | ||
Builder | ||
Lexer | ||
Node | ||
NodeVisitor | ||
Serializer | ||
Unserializer | ||
AutoloaderTest.php | ||
BuilderFactoryTest.php | ||
CodeTestAbstract.php | ||
CommentTest.php | ||
ErrorTest.php | ||
LexerTest.php | ||
NodeAbstractTest.php | ||
NodeDumperTest.php | ||
NodeTraverserTest.php | ||
ParserTest.php | ||
PrettyPrinterTest.php |