-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parser support for null coalescing, generics defaults, and static loc…
…al vars
- Loading branch information
Showing
4 changed files
with
73 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/test/resources/testData/parsing/haxe/declarations/module/Simple.hx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
function main() { | ||
trace("Module method ); | ||
trace("Module method"); | ||
} |
40 changes: 21 additions & 19 deletions
40
src/test/resources/testData/parsing/haxe/declarations/module/Simple.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,26 @@ | ||
Haxe File | ||
MODULE_DECLARATION | ||
MODULE_BODY | ||
MODULE_METHOD_DECLARATION | ||
HaxePsiToken:function('function') | ||
COMPONENT_NAME | ||
IDENTIFIER | ||
HaxePsiToken:ID('main') | ||
HaxePsiToken:(('(') | ||
PARAMETER_LIST | ||
<empty list> | ||
HaxePsiToken:)(')') | ||
BLOCK_STATEMENT | ||
HaxePsiToken:{('{') | ||
MODULE_BODY | ||
MODULE_METHOD_DECLARATION | ||
HaxePsiToken:function('function') | ||
COMPONENT_NAME | ||
IDENTIFIER | ||
HaxePsiToken:ID('main') | ||
HaxePsiToken:(('(') | ||
PARAMETER_LIST | ||
<empty list> | ||
HaxePsiToken:)(')') | ||
BLOCK_STATEMENT | ||
HaxePsiToken:{('{') | ||
CALL_EXPRESSION | ||
REFERENCE_EXPRESSION | ||
IDENTIFIER | ||
HaxePsiToken:ID('trace') | ||
PsiErrorElement:Missing semicolon. | ||
<empty list> | ||
HaxePsiToken:(('(') | ||
HaxePsiToken:OPEN_QUOTE('"') | ||
HaxePsiToken:REGULAR_STRING_PART('Module method );\n}') | ||
PsiErrorElement:')', '.', <operation>, <operator>, CLOSING_QUOTE, LONG_TEMPLATE_ENTRY_START, REGULAR_STRING_PART, SHORT_TEMPLATE_ENTRY_START or is expected | ||
<empty list> | ||
EXPRESSION_LIST | ||
STRING_LITERAL_EXPRESSION | ||
HaxePsiToken:OPEN_QUOTE('"') | ||
HaxePsiToken:REGULAR_STRING_PART('Module method') | ||
HaxePsiToken:CLOSING_QUOTE('"') | ||
HaxePsiToken:)(')') | ||
HaxePsiToken:;(';') | ||
HaxePsiToken:}('}') |