aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data/parser/ok/0024_const_item.rast
blob: b89ed6f98e05b303da29e15fce7076e26c69b06e (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
SOURCE_FILE@0..39
  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"