aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data/parser/ok/0024_const_item.rast
blob: dd1b9c9a0a4215c6138cc5533431e1633ff635ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
SOURCE_FILE@0..64
  CONST@0..17
    CONST_KW@0..5 "const"
    WHITESPACE@5..6 " "
    UNDERSCORE@6..7 "_"
    COLON@7..8 ":"
    WHITESPACE@8..9 " "
    PATH_TYPE@9..12
      PATH@9..12
        PATH_SEGMENT@9..12
          NAME_REF@9..12
            IDENT@9..12 "u32"
    WHITESPACE@12..13 " "
    EQ@13..14 "="
    WHITESPACE@14..15 " "
    LITERAL@15..16
      INT_NUMBER@15..16 "0"
    SEMICOLON@16..17 ";"
  WHITESPACE@17..18 "\n"
  CONST@18..38
    CONST_KW@18..23 "const"
    WHITESPACE@23..24 " "
    NAME@24..27
      IDENT@24..27 "FOO"
    COLON@27..28 ":"
    WHITESPACE@28..29 " "
    PATH_TYPE@29..32
      PATH@29..32
        PATH_SEGMENT@29..32
          NAME_REF@29..32
            IDENT@29..32 "u32"
    WHITESPACE@32..33 " "
    EQ@33..34 "="
    WHITESPACE@34..35 " "
    LITERAL@35..37
      INT_NUMBER@35..37 "92"
    SEMICOLON@37..38 ";"
  WHITESPACE@38..39 "\n"
  CONST@39..63
    CONST_KW@39..44 "const"
    WHITESPACE@44..45 " "
    MUT_KW@45..48 "mut"
    WHITESPACE@48..49 " "
    NAME@49..52
      IDENT@49..52 "BAR"
    COLON@52..53 ":"
    WHITESPACE@53..54 " "
    PATH_TYPE@54..57
      PATH@54..57
        PATH_SEGMENT@54..57
          NAME_REF@54..57
            IDENT@54..57 "u32"
    WHITESPACE@57..58 " "
    EQ@58..59 "="
    WHITESPACE@59..60 " "
    LITERAL@60..62
      INT_NUMBER@60..62 "62"
    SEMICOLON@62..63 ";"
  WHITESPACE@63..64 "\n"