diff options
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/inline/ok/0030_cond.txt')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/ok/0030_cond.txt | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/inline/ok/0030_cond.txt b/crates/ra_syntax/tests/data/parser/inline/ok/0030_cond.txt new file mode 100644 index 000000000..641a09fff --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/inline/ok/0030_cond.txt | |||
@@ -0,0 +1,43 @@ | |||
1 | SOURCE_FILE@[0; 38) | ||
2 | FN_DEF@[0; 37) | ||
3 | FN_KW@[0; 2) | ||
4 | WHITESPACE@[2; 3) | ||
5 | NAME@[3; 6) | ||
6 | IDENT@[3; 6) "foo" | ||
7 | PARAM_LIST@[6; 8) | ||
8 | L_PAREN@[6; 7) | ||
9 | R_PAREN@[7; 8) | ||
10 | WHITESPACE@[8; 9) | ||
11 | BLOCK@[9; 37) | ||
12 | L_CURLY@[9; 10) | ||
13 | WHITESPACE@[10; 11) | ||
14 | IF_EXPR@[11; 35) | ||
15 | IF_KW@[11; 13) | ||
16 | WHITESPACE@[13; 14) | ||
17 | CONDITION@[14; 32) | ||
18 | LET_KW@[14; 17) | ||
19 | WHITESPACE@[17; 18) | ||
20 | TUPLE_STRUCT_PAT@[18; 25) | ||
21 | PATH@[18; 22) | ||
22 | PATH_SEGMENT@[18; 22) | ||
23 | NAME_REF@[18; 22) | ||
24 | IDENT@[18; 22) "Some" | ||
25 | L_PAREN@[22; 23) | ||
26 | PLACEHOLDER_PAT@[23; 24) | ||
27 | UNDERSCORE@[23; 24) | ||
28 | R_PAREN@[24; 25) | ||
29 | WHITESPACE@[25; 26) | ||
30 | EQ@[26; 27) | ||
31 | WHITESPACE@[27; 28) | ||
32 | PATH_EXPR@[28; 32) | ||
33 | PATH@[28; 32) | ||
34 | PATH_SEGMENT@[28; 32) | ||
35 | NAME_REF@[28; 32) | ||
36 | IDENT@[28; 32) "None" | ||
37 | WHITESPACE@[32; 33) | ||
38 | BLOCK@[33; 35) | ||
39 | L_CURLY@[33; 34) | ||
40 | R_CURLY@[34; 35) | ||
41 | WHITESPACE@[35; 36) | ||
42 | R_CURLY@[36; 37) | ||
43 | WHITESPACE@[37; 38) | ||