1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-26 20:04:48 +01:00
PHP-Parser/lib/PhpParser
Máximo Cuadros Ortiz d774dbc1b7 Add optional startFilePos and endFilePos attributes
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'
		]
	]);
2014-11-27 20:38:29 +01:00
..
Builder Make autoloader for new names PSR-0 compliant 2014-04-02 09:44:45 +02:00
Comment Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
Lexer Use emulative lexer for < 5.6RC1 2014-08-31 16:33:41 +02:00
Node Error on final or abstract properties 2014-11-13 20:25:52 +01:00
NodeVisitor Make NameResolver resolve trait alias and precedence names 2014-11-03 16:06:43 +01:00
PrettyPrinter Fix whitespace when printing trait alias modifiers 2014-11-03 16:16:15 +01:00
Serializer Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
Unserializer Very that node type is valid in XML unserializer 2014-09-12 00:39:59 +02:00
Autoloader.php Remove deprecated Template and TemplateLoader 2014-09-12 00:25:30 +02:00
Builder.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
BuilderAbstract.php Fix a number of other typos 2014-02-12 17:47:34 +01:00
BuilderFactory.php Fix classname of Class_ in docblock of BuilderFactory 2014-08-11 20:53:18 +02:00
Comment.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
Error.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
Lexer.php Add optional startFilePos and endFilePos attributes 2014-11-27 20:38:29 +01:00
Node.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
NodeAbstract.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
NodeDumper.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
NodeTraverser.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
NodeTraverserInterface.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
NodeVisitor.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
NodeVisitorAbstract.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
Parser.php Disallow new without a class name 2014-09-28 12:41:35 +02:00
ParserAbstract.php Add optional startFilePos and endFilePos attributes 2014-11-27 20:38:29 +01:00
PrettyPrinterAbstract.php Make sure that pretty printer preserves whitespace after <?php 2014-04-21 11:15:33 +02:00
Serializer.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
Unserializer.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00