diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast b/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast new file mode 100644 index 000000000..bfc793dc1 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/ok/0044_let_attrs.rast | |||
@@ -0,0 +1,76 @@ | |||
1 | SOURCE_FILE@[0; 166) | ||
2 | FN_DEF@[0; 165) | ||
3 | COMMENT@[0; 60) "// https://github.com ..." | ||
4 | WHITESPACE@[60; 61) "\n" | ||
5 | FN_KW@[61; 63) "fn" | ||
6 | WHITESPACE@[63; 64) " " | ||
7 | NAME@[64; 68) | ||
8 | IDENT@[64; 68) "main" | ||
9 | PARAM_LIST@[68; 70) | ||
10 | L_PAREN@[68; 69) "(" | ||
11 | R_PAREN@[69; 70) ")" | ||
12 | WHITESPACE@[70; 71) " " | ||
13 | BLOCK_EXPR@[71; 165) | ||
14 | BLOCK@[71; 165) | ||
15 | L_CURLY@[71; 72) "{" | ||
16 | WHITESPACE@[72; 77) "\n " | ||
17 | LET_STMT@[77; 163) | ||
18 | ATTR@[77; 106) | ||
19 | POUND@[77; 78) "#" | ||
20 | L_BRACK@[78; 79) "[" | ||
21 | PATH@[79; 82) | ||
22 | PATH_SEGMENT@[79; 82) | ||
23 | NAME_REF@[79; 82) | ||
24 | IDENT@[79; 82) "cfg" | ||
25 | TOKEN_TREE@[82; 105) | ||
26 | L_PAREN@[82; 83) "(" | ||
27 | IDENT@[83; 90) "feature" | ||
28 | WHITESPACE@[90; 91) " " | ||
29 | EQ@[91; 92) "=" | ||
30 | WHITESPACE@[92; 93) " " | ||
31 | STRING@[93; 104) "\"backtrace\"" | ||
32 | R_PAREN@[104; 105) ")" | ||
33 | R_BRACK@[105; 106) "]" | ||
34 | WHITESPACE@[106; 111) "\n " | ||
35 | LET_KW@[111; 114) "let" | ||
36 | WHITESPACE@[114; 115) " " | ||
37 | BIND_PAT@[115; 124) | ||
38 | NAME@[115; 124) | ||
39 | IDENT@[115; 124) "exit_code" | ||
40 | WHITESPACE@[124; 125) " " | ||
41 | EQ@[125; 126) "=" | ||
42 | WHITESPACE@[126; 127) " " | ||
43 | CALL_EXPR@[127; 162) | ||
44 | PATH_EXPR@[127; 146) | ||
45 | PATH@[127; 146) | ||
46 | PATH@[127; 132) | ||
47 | PATH_SEGMENT@[127; 132) | ||
48 | NAME_REF@[127; 132) | ||
49 | IDENT@[127; 132) "panic" | ||
50 | COLONCOLON@[132; 134) "::" | ||
51 | PATH_SEGMENT@[134; 146) | ||
52 | NAME_REF@[134; 146) | ||
53 | IDENT@[134; 146) "catch_unwind" | ||
54 | ARG_LIST@[146; 162) | ||
55 | L_PAREN@[146; 147) "(" | ||
56 | LAMBDA_EXPR@[147; 161) | ||
57 | MOVE_KW@[147; 151) "move" | ||
58 | WHITESPACE@[151; 152) " " | ||
59 | PARAM_LIST@[152; 154) | ||
60 | PIPE@[152; 153) "|" | ||
61 | PIPE@[153; 154) "|" | ||
62 | WHITESPACE@[154; 155) " " | ||
63 | CALL_EXPR@[155; 161) | ||
64 | PATH_EXPR@[155; 159) | ||
65 | PATH@[155; 159) | ||
66 | PATH_SEGMENT@[155; 159) | ||
67 | NAME_REF@[155; 159) | ||
68 | IDENT@[155; 159) "main" | ||
69 | ARG_LIST@[159; 161) | ||
70 | L_PAREN@[159; 160) "(" | ||
71 | R_PAREN@[160; 161) ")" | ||
72 | R_PAREN@[161; 162) ")" | ||
73 | SEMI@[162; 163) ";" | ||
74 | WHITESPACE@[163; 164) "\n" | ||
75 | R_CURLY@[164; 165) "}" | ||
76 | WHITESPACE@[165; 166) "\n" | ||