Debian Codegraph @

tests/languages/avro-idl/class-name_feature.test

raw
1 protocol MyProto {
2 @namespace("org.apache.avro.someOtherNamespace")
3 record Foo {}
4
5 record Bar {}
6
7 enum Kind {
8 FOO,
9 BAR, // the bar enum value
10 BAZ
11 }
12
13 error TestError {
14 string message;
15 }
16
17 }
18
19 ----------------------------------------------------
20
21 [
22 ["keyword", "protocol"],
23 ["class-name", "MyProto"],
24 ["punctuation", "{"],
25
26 ["annotation", "@namespace"],
27 ["punctuation", "("],
28 ["string", "\"org.apache.avro.someOtherNamespace\""],
29 ["punctuation", ")"],
30
31 ["keyword", "record"],
32 ["class-name", "Foo"],
33 ["punctuation", "{"],
34 ["punctuation", "}"],
35
36 ["keyword", "record"],
37 ["class-name", "Bar"],
38 ["punctuation", "{"],
39 ["punctuation", "}"],
40
41 ["keyword", "enum"], ["class-name", "Kind"], ["punctuation", "{"],
42 "\r\n FOO", ["punctuation", ","],
43 "\r\n BAR", ["punctuation", ","], ["comment", "// the bar enum value"],
44 "\r\n BAZ\r\n ",
45 ["punctuation", "}"],
46
47 ["keyword", "error"], ["class-name", "TestError"], ["punctuation", "{"],
48 ["keyword", "string"], " message", ["punctuation", ";"],
49 ["punctuation", "}"],
50
51 ["punctuation", "}"]
52 ]