diff options
Diffstat (limited to 'tests/snippets/java')
-rw-r--r-- | tests/snippets/java/test_record.txt | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/tests/snippets/java/test_record.txt b/tests/snippets/java/test_record.txt index 48ca6c02..ddae1ddc 100644 --- a/tests/snippets/java/test_record.txt +++ b/tests/snippets/java/test_record.txt @@ -1,15 +1,67 @@ ---input--- public record RecordTest() {} +public static record RecordTest() {} +record Person(String firstName, String lastName) {} +String[] record = csvReader.getValues(); + ---tokens--- 'public' Keyword.Declaration ' ' Text 'record' Keyword.Declaration ' ' Text -'RecordTest' Name.Function +'RecordTest' Name.Class +'(' Punctuation +')' Punctuation +' ' Text +'{' Punctuation +'}' Punctuation +'\n' Text + +'public' Keyword.Declaration +' ' Text +'static' Keyword.Declaration +' ' Text +'record' Keyword.Declaration +' ' Text +'RecordTest' Name.Class +'(' Punctuation +')' Punctuation +' ' Text +'{' Punctuation +'}' Punctuation +'\n' Text + +'record' Keyword.Declaration +' ' Text +'Person' Name.Class '(' Punctuation +'String' Name +' ' Text +'firstName' Name +',' Punctuation +' ' Text +'String' Name +' ' Text +'lastName' Name ')' Punctuation ' ' Text '{' Punctuation '}' Punctuation '\n' Text + +'String' Name +'[' Operator +']' Operator +' ' Text +'record' Name +' ' Text +'=' Operator +' ' Text +'csvReader' Name +'.' Punctuation +'getValues' Name.Attribute +'(' Punctuation +')' Punctuation +';' Punctuation +'\n' Text |