Debian Codegraph @

tests/languages/avro-idl/annotation_feature.test

raw
1 record MyRecord {
2 string @order("ascending") myAscendingSortField;
3 string @order("descending") myDescendingField;
4 string @order("ignore") myIgnoredField;
5 }
6
7 @java-class("java.util.ArrayList") array<string> myStrings;
8
9 @namespace("org.apache.avro.firstNamespace")
10
11 union { MD5, null} @aliases(["hash"]) nullableHash;
12
13 ----------------------------------------------------
14
15 [
16 ["keyword", "record"],
17 ["class-name", "MyRecord"],
18 ["punctuation", "{"],
19
20 ["keyword", "string"],
21 ["annotation", "@order"],
22 ["punctuation", "("],
23 ["string", "\"ascending\""],
24 ["punctuation", ")"],
25 " myAscendingSortField",
26 ["punctuation", ";"],
27
28 ["keyword", "string"],
29 ["annotation", "@order"],
30 ["punctuation", "("],
31 ["string", "\"descending\""],
32 ["punctuation", ")"],
33 " myDescendingField",
34 ["punctuation", ";"],
35
36 ["keyword", "string"],
37 ["annotation", "@order"],
38 ["punctuation", "("],
39 ["string", "\"ignore\""],
40 ["punctuation", ")"],
41 " myIgnoredField",
42 ["punctuation", ";"],
43
44 ["punctuation", "}"],
45
46 ["annotation", "@java-class"],
47 ["punctuation", "("],
48 ["string", "\"java.util.ArrayList\""],
49 ["punctuation", ")"],
50 ["keyword", "array"],
51 ["punctuation", "<"],
52 ["keyword", "string"],
53 ["punctuation", ">"],
54 " myStrings",
55 ["punctuation", ";"],
56
57 ["annotation", "@namespace"],
58 ["punctuation", "("],
59 ["string", "\"org.apache.avro.firstNamespace\""],
60 ["punctuation", ")"],
61
62 ["keyword", "union"],
63 ["punctuation", "{"],
64 " MD5",
65 ["punctuation", ","],
66 ["keyword", "null"],
67 ["punctuation", "}"],
68 ["annotation", "@aliases"],
69 ["punctuation", "("],
70 ["punctuation", "["],
71 ["string", "\"hash\""],
72 ["punctuation", "]"],
73 ["punctuation", ")"],
74 " nullableHash",
75 ["punctuation", ";"]
76 ]