Nikita Popov
54275ad181
Merge pull request #167 from GrahamCampbell/patch-1
...
Fixed branch alias
2015-01-18 12:54:05 +01:00
Graham Campbell
21ca7eaf1b
Fixed branch alias
2015-01-18 11:46:36 +00:00
Nikita Popov
a86779198f
Fix branch alias (maybe?)
2015-01-18 12:41:16 +01:00
Nikita Popov
ac05ef6f95
Release PHP-Parser 1.1
2015-01-18 12:29:59 +01:00
Nikita Popov
74251fca9f
Update changelog
2015-01-18 00:11:19 +01:00
Nikita Popov
0a445c7656
Test lexer returning invalid token
2015-01-18 00:11:10 +01:00
Nikita Popov
a710f32a6a
Make Node\Expr\BinOp an abstract class
...
Only the children should be used ...
2015-01-18 00:10:02 +01:00
Nikita Popov
9689763e20
Cover both DONT_TRAVERSE_CHILDREN cases
2015-01-18 00:10:01 +01:00
Nikita Popov
1a63a915f2
Merge pull request #163 from rmruano/gitattributes
...
Create .gitattributes with basic export-ignores
2015-01-11 22:34:05 +01:00
Nikita Popov
4071c4645d
Add NodeTraverser::DONT_TRAVERSE_CHILDREN support
2015-01-11 22:13:58 +01:00
Nikita Popov
f56db26d8b
Doc fixes
2015-01-11 21:39:02 +01:00
Rubén Moraleda
0dd2b9a74c
Create .gitattributes with basic export-ignores
2015-01-09 21:19:19 +01:00
Nikita Popov
4cd2b95a23
Fix 5.3 build and some small cleanups
2014-12-19 18:54:56 +01:00
Nikita Popov
7ab88416ac
Enforce Name|string for names in builders
...
While array (with name components) could technically be allowed (as
they are supported by the Name node itself), more likely than not
an array would due to incorrect usage of the API (e.g. array instead
of variadics).
2014-12-19 18:50:16 +01:00
Nikita Popov
ba625063e7
Support fully-qualified and ns-relative names in builders
2014-12-19 18:48:21 +01:00
Nikita Popov
b4b93ccb21
Add integration test for builders
2014-12-19 18:35:19 +01:00
Stepan Anchugov
01643e06d3
Add namespace builder
2014-12-19 18:19:33 +01:00
Nikita Popov
4387454fe0
Add trait builder (for completeness...)
2014-12-19 17:59:23 +01:00
Nikita Popov
55fdbc6dbc
Extract common builder methods to abstract classes
...
Declaration for fns/classes in general and FunctionLike for
functions/methods in particular.
2014-12-19 17:47:51 +01:00
Nikita Popov
e69c9ee38c
Fix attribute assigment test with crlf newlines
2014-12-19 17:28:22 +01:00
Nikita Popov
894c3f787d
Add test for attribute assignment by parser
...
Weird that this wasn't tested yet...
2014-12-19 00:37:38 +01:00
Nikita Popov
a7797918b8
Update lexer docs for attribute options
2014-12-19 00:37:37 +01:00
Nikita Popov
46975107a7
Support token position attributes in lexer
...
Also change endFilePos semantics to refer to the last character that
is *included* in the token, rather than one past the last character.
This ensures that all end* attributes have the same semantics.
2014-12-19 00:37:36 +01:00
Nikita Popov
e0f3e8a492
Merge pull request #160 from jamiehannaford/patch-1
...
Fix apostrophe
2014-12-15 14:23:36 +01:00
Jamie Hannaford
158322e1e4
Fix apostrophe
2014-12-15 10:05:52 +00:00
Nikita Popov
2438848487
Add support for doc comments in builders
2014-12-13 13:44:40 +01:00
Stepan Anchugov
f5432a76b6
Add a a reference to PrettyPrinter to code generation doc
...
The `$prettyPrinter` variable was undefined in the doc.
Also, the PrettyPrinter was mentioned as `default`, but it's `Standard`, actually.
2014-12-13 13:06:36 +01:00
Nikita Popov
800d278369
Merge pull request #152 from Fullmetal5/master
...
Add line returns in php-parse help message
2014-11-27 21:30:29 +01:00
nikic
8507af6f4a
Add missing require in tests
...
Test files aren't autoloaded, so this was order-dependent.
2014-11-27 21:01:56 +01:00
nikic
7c98ad6f9b
Support file offsets in emulative lexer as well
...
Also run normal lexer tests against emulative lexer and fix a bug
in __halt_compiler() handling found as a result.
2014-11-27 20:57:38 +01:00
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
Dexter Gerig
1a93cc3b9d
Add line returns
...
Add line returns to the help message so that the terminal won't end up on the same line.
2014-11-25 19:03:35 -06:00
nikic
e26e63e9b0
Error on final or abstract properties
2014-11-13 20:25:52 +01:00
nikic
0f69f12b94
Use "public" visibility when not explicitly given
...
Fixes issue #143
2014-11-13 20:21:21 +01:00
nikic
a8ffc6fcfc
Release PHP-Parser 1.0.2
2014-11-04 23:12:46 +01:00
nikic
7fbdb79a08
Fix whitespace when printing trait alias modifiers
2014-11-03 16:16:15 +01:00
Arne Blankerts
6fad8ff32a
Make NameResolver resolve trait alias and precedence names
2014-11-03 16:06:43 +01:00
nikic
b9a60372f2
Release version 1.0.1
2014-10-14 21:40:07 +02:00
nikic
eb20e32914
Update changelog
2014-10-14 21:37:04 +02:00
nikic
f41a4c9acb
Fix wrong function name in docs
2014-10-14 21:31:29 +02:00
nikic
767f23c3a9
Update lexer docs
...
Remove some very questionable examples for changing startLexing()
to accept a file name.
Add token offset lexer implementation and usage example.
2014-10-11 21:47:11 +02:00
Nikita Popov
f8678ad7e9
Merge pull request #138 from jbrooksuk/patch-1
...
Fixed a spelling mistake
2014-10-01 12:18:18 +02:00
James Brooks
63c18b29e4
Fixed a spelling mistake
2014-10-01 09:18:01 +01:00
nikic
99df8b86ae
Support HHVM T_ONUMBER token
2014-09-30 20:55:58 +02:00
nikic
66fd29cb58
Use stricter assertions where possible
2014-09-30 20:38:09 +02:00
nikic
3d40e2217d
Annotate some APIs as @internal
2014-09-30 20:26:06 +02:00
nikic
16dff7c2e6
Add ability to pass code directly to php-parse.php
2014-09-28 13:14:37 +02:00
nikic
88e2d42ba4
Fix var_dump truncation with xdebug in php-parse.php
2014-09-28 13:08:59 +02:00
nikic
69701430c1
Cover remaining constant scalar expressions
2014-09-28 13:05:23 +02:00
nikic
6dc24fa9f5
Fix coverage annotations
2014-09-28 12:49:12 +02:00