aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data/parser/err/0005_attribute_recover.rast
blob: 4845a6563cb83c9bd4cfe1ff20faebba78091d0a (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..54
  FN@0..31
    ATTR@0..18
      POUND@0..1 "#"
      L_BRACK@1..2 "["
      PATH@2..5
        PATH_SEGMENT@2..5
          NAME_REF@2..5
            IDENT@2..5 "foo"
      TOKEN_TREE@5..17
        L_PAREN@5..6 "("
        IDENT@6..9 "foo"
        COMMA@9..10 ","
        WHITESPACE@10..11 " "
        PLUS@11..12 "+"
        COMMA@12..13 ","
        WHITESPACE@13..14 " "
        INT_NUMBER@14..16 "92"
        R_PAREN@16..17 ")"
      R_BRACK@17..18 "]"
    WHITESPACE@18..19 "\n"
    FN_KW@19..21 "fn"
    WHITESPACE@21..22 " "
    NAME@22..25
      IDENT@22..25 "foo"
    PARAM_LIST@25..27
      L_PAREN@25..26 "("
      R_PAREN@26..27 ")"
    WHITESPACE@27..28 " "
    BLOCK_EXPR@28..31
      L_CURLY@28..29 "{"
      WHITESPACE@29..30 "\n"
      R_CURLY@30..31 "}"
  WHITESPACE@31..34 "\n\n\n"
  ATTR@34..53
    POUND@34..35 "#"
    L_BRACK@35..36 "["
    PATH@36..39
      PATH_SEGMENT@36..39
        NAME_REF@36..39
          IDENT@36..39 "foo"
    TOKEN_TREE@39..53
      L_PAREN@39..40 "("
      WHITESPACE@40..41 "\n"
      FN_KW@41..43 "fn"
      WHITESPACE@43..44 " "
      IDENT@44..47 "foo"
      TOKEN_TREE@47..49
        L_PAREN@47..48 "("
        R_PAREN@48..49 ")"
      WHITESPACE@49..50 " "
      TOKEN_TREE@50..53
        L_CURLY@50..51 "{"
        WHITESPACE@51..52 "\n"
        R_CURLY@52..53 "}"
  WHITESPACE@53..54 "\n"
error 53..53: expected R_PAREN
error 53..53: expected `]`
error 53..53: expected an item