aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data/parser/err/0020_fn_recover.rast
blob: 6f6feba5a833e02c96a34bb7d3ba52d5013696fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SOURCE_FILE@0..16
  FN@0..2
    FN_KW@0..2 "fn"
  WHITESPACE@2..4 "\n\n"
  FN@4..15
    FN_KW@4..6 "fn"
    WHITESPACE@6..7 " "
    NAME@7..10
      IDENT@7..10 "foo"
    PARAM_LIST@10..12
      L_PAREN@10..11 "("
      R_PAREN@11..12 ")"
    WHITESPACE@12..13 " "
    BLOCK_EXPR@13..15
      L_CURLY@13..14 "{"
      R_CURLY@14..15 "}"
  WHITESPACE@15..16 "\n"
error 2..2: expected a name
error 2..2: expected function arguments
error 2..2: expected a block