Alex Hoppen
a137e0da7d
[libSyntax] Omit unknown nodes if they do not have any children
2018-05-22 08:52:40 -07:00
Alex Hoppen
e1a99efd57
[incrParse] Fix parsing of nodes covering no source text
2018-05-22 08:52:39 -07:00
Alex Hoppen
60d11d24f8
[incrParse] Reparse a node if the next leaf node has been modified
2018-05-22 08:52:33 -07:00
Dexin Li
e0f8b27117
[Syntax]Add a deserializer that convert json to libSyntax tree ( #15203 )
2018-03-16 15:22:04 -07:00
Rintaro Ishizaki
0780c529c4
[Syntax] Unify RawSyntax and RawTokenSyntax using union and TrailingObjects
...
It better matches with SwiftSyntax model.
Using TrailingObjects reduces the number of heap allocation which
gains 18% performance improvement.
2018-01-18 14:49:46 +09:00
Rintaro Ishizaki
79e224c8da
[Syntax] Use SyntaxKind APIs for getUnknownKind() ( #13429 )
2017-12-14 08:11:57 -08:00
Xi Ge
57b077f971
libSyntax: Add convenient APIs to check the category of SyntaxKind. NFC ( #12627 )
2017-10-25 18:52:43 -07:00
Xi Ge
e0dfa6119f
libSyntax: add a test to ensure the generated syntax kinds from parser are expected.
2017-10-21 14:12:59 -07:00
Harlan
a5098e6b69
Generate libSyntax API ( #10926 )
...
* Generate libSyntax API
This patch removes the hand-rolled libSyntax API and replaces it with an
API that's entirely automatically generated. This means the API is
guaranteed to be internally stylistically and functionally consistent.
2017-07-25 18:19:58 -07:00