diff options
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.rast')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.rast | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.rast b/crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.rast new file mode 100644 index 000000000..a6e14a114 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0031_while_expr.rast | |||
@@ -0,0 +1,89 @@ | |||
1 | SOURCE_FILE@[0; 93) | ||
2 | FN_DEF@[0; 92) | ||
3 | FN_KW@[0; 2) "fn" | ||
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_EXPR@[9; 92) | ||
12 | BLOCK@[9; 92) | ||
13 | L_CURLY@[9; 10) "{" | ||
14 | WHITESPACE@[10; 15) "\n " | ||
15 | EXPR_STMT@[15; 29) | ||
16 | WHILE_EXPR@[15; 28) | ||
17 | WHILE_KW@[15; 20) "while" | ||
18 | WHITESPACE@[20; 21) " " | ||
19 | CONDITION@[21; 25) | ||
20 | LITERAL@[21; 25) | ||
21 | TRUE_KW@[21; 25) "true" | ||
22 | WHITESPACE@[25; 26) " " | ||
23 | BLOCK_EXPR@[26; 28) | ||
24 | BLOCK@[26; 28) | ||
25 | L_CURLY@[26; 27) "{" | ||
26 | R_CURLY@[27; 28) "}" | ||
27 | SEMI@[28; 29) ";" | ||
28 | WHITESPACE@[29; 34) "\n " | ||
29 | EXPR_STMT@[34; 67) | ||
30 | WHILE_EXPR@[34; 66) | ||
31 | WHILE_KW@[34; 39) "while" | ||
32 | WHITESPACE@[39; 40) " " | ||
33 | CONDITION@[40; 63) | ||
34 | LET_KW@[40; 43) "let" | ||
35 | WHITESPACE@[43; 44) " " | ||
36 | TUPLE_STRUCT_PAT@[44; 51) | ||
37 | PATH@[44; 48) | ||
38 | PATH_SEGMENT@[44; 48) | ||
39 | NAME_REF@[44; 48) | ||
40 | IDENT@[44; 48) "Some" | ||
41 | L_PAREN@[48; 49) "(" | ||
42 | BIND_PAT@[49; 50) | ||
43 | NAME@[49; 50) | ||
44 | IDENT@[49; 50) "x" | ||
45 | R_PAREN@[50; 51) ")" | ||
46 | WHITESPACE@[51; 52) " " | ||
47 | EQ@[52; 53) "=" | ||
48 | WHITESPACE@[53; 54) " " | ||
49 | METHOD_CALL_EXPR@[54; 63) | ||
50 | PATH_EXPR@[54; 56) | ||
51 | PATH@[54; 56) | ||
52 | PATH_SEGMENT@[54; 56) | ||
53 | NAME_REF@[54; 56) | ||
54 | IDENT@[54; 56) "it" | ||
55 | DOT@[56; 57) "." | ||
56 | NAME_REF@[57; 61) | ||
57 | IDENT@[57; 61) "next" | ||
58 | ARG_LIST@[61; 63) | ||
59 | L_PAREN@[61; 62) "(" | ||
60 | R_PAREN@[62; 63) ")" | ||
61 | WHITESPACE@[63; 64) " " | ||
62 | BLOCK_EXPR@[64; 66) | ||
63 | BLOCK@[64; 66) | ||
64 | L_CURLY@[64; 65) "{" | ||
65 | R_CURLY@[65; 66) "}" | ||
66 | SEMI@[66; 67) ";" | ||
67 | WHITESPACE@[67; 72) "\n " | ||
68 | EXPR_STMT@[72; 90) | ||
69 | WHILE_EXPR@[72; 89) | ||
70 | WHILE_KW@[72; 77) "while" | ||
71 | WHITESPACE@[77; 78) " " | ||
72 | CONDITION@[78; 86) | ||
73 | BLOCK_EXPR@[78; 86) | ||
74 | BLOCK@[78; 86) | ||
75 | L_CURLY@[78; 79) "{" | ||
76 | WHITESPACE@[79; 80) " " | ||
77 | LITERAL@[80; 84) | ||
78 | TRUE_KW@[80; 84) "true" | ||
79 | WHITESPACE@[84; 85) " " | ||
80 | R_CURLY@[85; 86) "}" | ||
81 | WHITESPACE@[86; 87) " " | ||
82 | BLOCK_EXPR@[87; 89) | ||
83 | BLOCK@[87; 89) | ||
84 | L_CURLY@[87; 88) "{" | ||
85 | R_CURLY@[88; 89) "}" | ||
86 | SEMI@[89; 90) ";" | ||
87 | WHITESPACE@[90; 91) "\n" | ||
88 | R_CURLY@[91; 92) "}" | ||
89 | WHITESPACE@[92; 93) "\n" | ||