Debian Codegraph @

tests/languages/stylus/variable-declaration_feature.test

raw
1 foo = 'bar'
2 a = 4
3 bar-baz = 5
4 a += 8
5 url = "http://example.com" // comment
6
7 ----------------------------------------------------
8
9 [
10 ["variable-declaration", [
11 ["variable", "foo"],
12 ["operator", "="],
13 ["string", "'bar'"]
14 ]],
15 ["variable-declaration", [
16 ["variable", "a"],
17 ["operator", "="],
18 ["number", "4"]
19 ]],
20 ["variable-declaration", [
21 ["variable", "bar-baz"],
22 ["operator", "="],
23 ["number", "5"]
24 ]],
25 ["variable-declaration", [
26 ["variable", "a"],
27 ["operator", "+="],
28 ["number", "8"]
29 ]],
30 ["variable-declaration", [
31 ["variable", "url"],
32 ["operator", "="],
33 ["string", "\"http://example.com\""],
34 ["comment", "// comment"]
35 ]]
36 ]
37
38 ----------------------------------------------------
39
40 Checks for variable declarations.