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