1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-27 04:14:44 +01:00
PHP-Parser/test/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 Use stricter assertions where possible 2014-09-30 20:38:09 +02:00
Lexer Use stricter assertions where possible 2014-09-30 20:38:09 +02:00
Node Use "public" visibility when not explicitly given 2014-11-13 20:21:21 +01:00
NodeVisitor Fix whitespace when printing trait alias modifiers 2014-11-03 16:16:15 +01:00
Serializer Fix coverage annotations 2014-09-28 12:49:12 +02:00
Unserializer Very that node type is valid in XML unserializer 2014-09-12 00:39:59 +02:00
AutoloaderTest.php Add Autoloader tests 2014-09-12 13:45:34 +02:00
BuilderFactoryTest.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
CodeTestAbstract.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
CommentTest.php Use stricter assertions where possible 2014-09-30 20:38:09 +02:00
ErrorTest.php Use stricter assertions where possible 2014-09-30 20:38:09 +02:00
LexerTest.php Add optional startFilePos and endFilePos attributes 2014-11-27 20:38:29 +01:00
NodeAbstractTest.php Use stricter assertions where possible 2014-09-30 20:38:09 +02:00
NodeDumperTest.php Use stricter assertions where possible 2014-09-30 20:38:09 +02:00
NodeTraverserTest.php Port library to use namespaces, with BC for old names 2014-02-06 20:29:35 +01:00
ParserTest.php Use stricter assertions where possible 2014-09-30 20:38:09 +02:00
PrettyPrinterTest.php Use stricter assertions where possible 2014-09-30 20:38:09 +02:00