Commit Graph

145 Commits

Author SHA1 Message Date
Jan Tvrdik
36e225fe85 improve tests 2017-12-16 16:19:04 +01:00
Jan Tvrdik
dd308d8554 TOKEN_OPEN_PHPDOC (/**) must be always followed by whitespace 2017-12-16 16:04:40 +01:00
Jan Tvrdik
f8a1d21be1 add support for @throws tag value parsing 2017-12-16 15:34:23 +01:00
Jan Tvrdik
72864aad33 typo 2017-12-07 17:17:36 +01:00
Jan Tvrdik
26f3112958 PhpDocParser: tags must be at the beginning of the line 2017-12-03 14:44:57 +01:00
Jan Tvrdik
9232f3f4b0 composer: add branch-alias 2017-12-03 14:44:57 +01:00
Jan Tvrdik
08d714b2f0 simplify and improve whitespace handling 2017-11-22 11:46:07 +01:00
Ondřej Mirtes
3fed7e24cb Integrate PHPStan analysis (#1) 2017-11-20 08:05:03 +01:00
Jan Tvrdik
4e272700b3 PhpDocParser: support variadic parameters in @param tag 2017-11-19 18:08:10 +01:00
Jan Tvrdik
597aa4da36 drop support for @param annotation without parameter name 2017-11-19 15:52:40 +01:00
Jan Tvrdik
c7f7f7bc74 ParserException: improve message formatting 2017-11-19 12:32:51 +01:00
Jan Tvrdik
70f27a2d5e travis: simplify build matrix 2017-11-19 10:40:37 +01:00
Jan Tvrdik
ee0a77bc99 composer: add description 2017-11-19 10:40:13 +01:00
Jan Tvrdik
fd48a33359 TokenIterator: fix possible undefined index in consumeTokenType 2017-11-19 10:40:12 +01:00
Jan Tvrdik
1d80cde655 add tests 2017-11-19 10:40:12 +01:00
Jan Tvrdik
b316443d88 PhpDocParser: change whitespace handling 2017-11-19 10:40:12 +01:00
Jan Tvrdik
2e73ac5f3d unify coding style with phpstan (2) 2017-11-19 10:40:12 +01:00
Jan Tvrdik
687d00224c PhpDocParser: disallow few tokens at the beginning of some descriptions 2017-11-19 10:40:12 +01:00
Jan Tvrdik
5fa9b5a5b2 ParserException: accept error related data instead of message 2017-11-19 10:40:12 +01:00
Jan Tvrdik
17a23f62d7 PhpDocParser: merge adjacent text nodes 2017-11-19 10:40:11 +01:00
Jan Tvrdik
95787df9bf ConstExprParser: fix building ConstFetchNode 2017-11-19 10:40:11 +01:00
Jan Tvrdik
97250e6dcc unify coding style with phpstan 2017-11-19 10:40:09 +01:00
Jan Tvrdik
49c4c4b9ef downgrade to PHP 7.0.x 2017-11-19 10:39:26 +01:00
Jan Tvrdik
61d37ab95e PhpDocParser: do not fail on invalid phpDoc tag value 2017-11-18 16:21:17 +01:00
Jan Tvrdik
c9a91bede2 GeneralTagValueNode -> GenericTagValueNode 2017-11-18 16:19:40 +01:00
Jan Tvrdik
8675f02a56 Lexer: prevent TOKEN_OTHER from eating TOKEN_CLOSE_PHPDOC 2017-11-18 16:16:21 +01:00
Jan Tvrdik
afabfdfe9d TypeParser: ignore unclosed array notation 2017-11-18 16:15:23 +01:00
Jan Tvrdik
3dda8122e1 TokenIterator: add save points 2017-11-18 16:14:05 +01:00
Jan Tvrdik
9983296e35 TokenIterator: add @throws annotations 2017-11-18 16:13:04 +01:00
Jan Tvrdik
8c2c605171 Lexer: disallow multi-line strings 2017-11-18 16:02:33 +01:00
Jan Tvrdik
0b3dbb212f TypeParser: add support for $this type 2017-11-18 16:01:37 +01:00
Jan Tvrdik
85464aa76e composer: change library name to phpstan/phpdoc-parser 2017-11-18 15:56:03 +01:00
Jan Tvrdik
4ec5fe763f change namespace to PHPStan\PhpDocParser 2017-11-18 15:54:32 +01:00
Jan Tvrdik
64d058ef1b PhpDocNode: add more helper methods 2017-11-18 12:25:10 +01:00
Jan Tvrdik
d973733eee support negative numbers 2017-11-17 10:12:33 +01:00
Jan Tvrdik
523d45b7ef add PhpDocParser (major update) 2017-11-13 13:12:08 +01:00
Jan Tvrdik
55ee2a347f Ast -> Ast\Type 2017-10-29 16:28:01 +01:00
Jan Tvrdik
8cc2125e0f refactor Parser to TypeParser and TokenIterator 2017-10-29 16:24:49 +01:00
Jan Tvrdik
e1a08be0eb move grammer files to grammars directory 2017-10-27 21:37:29 +02:00
Jan Tvrdik
14373b25fe fixup! add support for nullable type 2017-10-27 21:35:55 +02:00
Jan Tvrdik
e153c53294 SimpleNode -> IdentifierNode 2017-10-27 21:34:44 +02:00
Jan Tvrdik
b1b9011088 add support for nullable type 2017-10-27 21:33:37 +02:00
Jan Tvrdik
7492b2a16e drop support for complement type 2017-10-27 21:22:33 +02:00
Jan Tvrdik
d23d1c922c Parser: refactor to utilize TOKEN_END 2017-10-27 21:19:40 +02:00
Jan Tvrdik
65d08ecc82 init 2017-07-10 15:16:28 +02:00