Commit Graph

120 Commits

Author SHA1 Message Date
z7zmey
bfc346ebab #40 reduce memory allocations for position.Position by using sync.Pool 2018-06-12 21:14:11 +03:00
z7zmey
2737e98559 #27 reduce memory allocations for scanner.Token by using sync.Pool 2018-06-12 19:37:22 +03:00
z7zmey
af379a61dd Merge branch 'comments3' 2018-06-07 15:06:54 +03:00
z7zmey
a488f43496 remove nodesWithEndToken type 2018-06-03 09:35:44 +03:00
z7zmey
b383fe98fe create token name constants in comment package 2018-05-27 22:15:27 +03:00
z7zmey
435dc5c706 scanner.NewToken returns pointer, and scanner.Token saves position as position.Position 2018-04-15 22:59:06 +03:00
z7zmey
bc15825663 rename PositionBuilder 2018-04-15 22:06:02 +03:00
z7zmey
56127a4a2c move Positions and Comments into parser package 2018-04-15 22:02:07 +03:00
z7zmey
781a55659b save comment position 2018-04-15 21:39:26 +03:00
z7zmey
8d6affdd68 move Parser interface to parser package 2018-04-10 23:59:57 +03:00
z7zmey
1a045403db refactor php7parser 2018-01-25 17:42:15 +02:00
z7zmey
b93d24f95f split scanner and parser 2018-01-24 18:42:23 +02:00
z7zmey
f6911a76b1 rename php7 parser 2018-01-17 19:16:06 +02:00
z7zmey
76df2ba69b walker pakage 2018-01-17 19:01:28 +02:00
z7zmey
e97b018b72 create position builder 2018-01-11 20:19:02 +02:00
z7zmey
068716a66d fix bugs: multibyte chars, null pointer in a list 2018-01-10 14:35:08 +02:00
z7zmey
2078a6cde6 extract positions package 2018-01-09 15:51:32 +02:00
z7zmey
99856ae32f extract comments package 2018-01-09 00:30:28 +02:00
z7zmey
b7b859edaa fix comments pointers 2018-01-08 21:50:39 +02:00
z7zmey
4ecb9edbd8 fix poiner receiver at nodes 2018-01-08 21:32:57 +02:00
z7zmey
855665b565 node constructors return concrete type 2018-01-08 21:18:09 +02:00
z7zmey
f2cf2061ee use Token.File to handle new lines 2018-01-08 17:02:56 +02:00
z7zmey
f58537742d fix token endPos 2018-01-06 15:04:34 +02:00
z7zmey
065e6ad203 fix comments pointers 2018-01-06 14:04:02 +02:00
vadim
21c0c7c86e handle comments 2018-01-05 17:09:04 +02:00
vadim
c99f15a646 handle node position in file 2018-01-05 13:01:52 +02:00
z7zmey
17bca8d1dc remove unused attributes fields 2018-01-05 00:12:01 +02:00
z7zmey
e8655c5f4c add comment struct 2018-01-03 00:12:28 +02:00
vadim
2051e3a23d handle php doc comments 2018-01-02 13:58:22 +02:00
z7zmey
30187b1db1 handle nodes positions 2017-12-31 20:53:55 +02:00
vadim
70a4ef18ab node attributes 2017-12-29 17:20:24 +02:00
vadim
e83ab79344 fix class modifiers and boolean types 2017-12-27 16:55:09 +02:00
vadim
b9d686eca1 rename const_list and class_const_list 2017-12-27 16:44:19 +02:00
vadim
06a15be7a2 argument nullable parameter nodes 2017-12-27 16:26:36 +02:00
vadim
84887c66c3 remove SimpleNodes and handle num strings in encaps_var_offset 2017-12-27 15:53:46 +02:00
vadim
9f48ca2968 fix break and foreach nodes 2017-12-22 14:07:38 +02:00
vadim
ae6fe52005 error_suppress node 2017-12-22 13:28:58 +02:00
vadim
ba71b6e7fa modifiers list 2017-12-22 13:20:34 +02:00
vadim
d235a58abc class implements list 2017-12-22 12:58:37 +02:00
vadim
940e551b0e interface extends list 2017-12-22 12:55:49 +02:00
vadim
16e83cee21 fix class_method node 2017-12-20 19:54:38 +02:00
z7zmey
dbe1e56e2e alt_if nodes and refactor lists 2017-12-19 00:55:57 +02:00
z7zmey
5b54987ddc ctor_arguments argument_list returns []node.Node 2017-12-18 21:43:53 +02:00
z7zmey
2c6664bdc9 assign_ref node 2017-12-18 21:34:11 +02:00
z7zmey
3ec45dc334 yield yield_from nodes 2017-12-18 20:45:18 +02:00
z7zmey
92b9453de7 variable node 2017-12-18 20:35:29 +02:00
z7zmey
ef39b9111e ternanry node 2017-12-18 20:17:32 +02:00
z7zmey
0751859395 static_call node 2017-12-18 20:09:34 +02:00
z7zmey
f0e3206c18 shell_exec node 2017-12-18 20:00:19 +02:00
z7zmey
40a27c6131 property_fetch static_property_fetch nodes 2017-12-18 19:52:41 +02:00