Debian Codegraph @

tests/snippets/java/test_record.txt

raw
1 ---input---
2 public record RecordTest() {}
3 public static record RecordTest() {}
4 record Person(String firstName, String lastName) {}
5 String[] record = csvReader.getValues();
6
7
8 ---tokens---
9 'public' Keyword.Declaration
10 ' ' Text.Whitespace
11 'record' Keyword.Declaration
12 ' ' Text
13 'RecordTest' Name.Class
14 '(' Punctuation
15 ')' Punctuation
16 ' ' Text.Whitespace
17 '{' Punctuation
18 '}' Punctuation
19 '\n' Text.Whitespace
20
21 'public' Keyword.Declaration
22 ' ' Text.Whitespace
23 'static' Keyword.Declaration
24 ' ' Text.Whitespace
25 'record' Keyword.Declaration
26 ' ' Text
27 'RecordTest' Name.Class
28 '(' Punctuation
29 ')' Punctuation
30 ' ' Text.Whitespace
31 '{' Punctuation
32 '}' Punctuation
33 '\n' Text.Whitespace
34
35 'record' Keyword.Declaration
36 ' ' Text
37 'Person' Name.Class
38 '(' Punctuation
39 'String' Name
40 ' ' Text.Whitespace
41 'firstName' Name
42 ',' Punctuation
43 ' ' Text.Whitespace
44 'String' Name
45 ' ' Text.Whitespace
46 'lastName' Name
47 ')' Punctuation
48 ' ' Text.Whitespace
49 '{' Punctuation
50 '}' Punctuation
51 '\n' Text.Whitespace
52
53 'String' Name
54 '[' Operator
55 ']' Operator
56 ' ' Text.Whitespace
57 'record' Name
58 ' ' Text.Whitespace
59 '=' Operator
60 ' ' Text.Whitespace
61 'csvReader' Name
62 '.' Punctuation
63 'getValues' Name.Attribute
64 '(' Punctuation
65 ')' Punctuation
66 ';' Punctuation
67 '\n' Text.Whitespace