Debian Codegraph @

tests/languages/wren/attribute_feature.test

raw
1 #hidden = true
2 class Example {}
3
4 #key
5 #key = value
6 #group(
7 multiple,
8 lines = true,
9 lines = 0
10 )
11 class Example {
12 #test(skip = true, iterations = 32)
13 doStuff() {}
14 }
15
16 #doc = "not runtime data"
17 #!runtimeAccess = true
18 #!maxIterations = 16
19
20 ----------------------------------------------------
21
22 [
23 ["attribute", "#hidden"],
24 ["operator", "="],
25 ["boolean", "true"],
26
27 ["keyword", "class"],
28 ["class-name", "Example"],
29 ["punctuation", "{"],
30 ["punctuation", "}"],
31
32 ["attribute", "#key"],
33
34 ["attribute", "#key"],
35 ["operator", "="],
36 " value\r\n",
37
38 ["attribute", "#group"],
39 ["punctuation", "("],
40
41 "\r\n multiple",
42 ["punctuation", ","],
43
44 "\r\n lines ",
45 ["operator", "="],
46 ["boolean", "true"],
47 ["punctuation", ","],
48
49 "\r\n lines ",
50 ["operator", "="],
51 ["number", "0"],
52
53 ["punctuation", ")"],
54
55 ["keyword", "class"],
56 ["class-name", "Example"],
57 ["punctuation", "{"],
58
59 ["attribute", "#test"],
60 ["punctuation", "("],
61 "skip ",
62 ["operator", "="],
63 ["boolean", "true"],
64 ["punctuation", ","],
65 " iterations ",
66 ["operator", "="],
67 ["number", "32"],
68 ["punctuation", ")"],
69
70 ["function", "doStuff"],
71 ["punctuation", "("],
72 ["punctuation", ")"],
73 ["punctuation", "{"],
74 ["punctuation", "}"],
75
76 ["punctuation", "}"],
77
78 ["attribute", "#doc"],
79 ["operator", "="],
80 ["string-literal", [
81 ["string", "\"not runtime data\""]
82 ]],
83
84 ["attribute", "#!runtimeAccess"],
85 ["operator", "="],
86 ["boolean", "true"],
87
88 ["attribute", "#!maxIterations"],
89 ["operator", "="],
90 ["number", "16"]
91 ]