diff options
author | Aleksey Kladov <[email protected]> | 2019-07-24 10:38:21 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-07-24 10:49:19 +0100 |
commit | 459241f272748ff2e57b2c7e84f5a04f78d67edb (patch) | |
tree | 2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.txt | 139 |
1 files changed, 139 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.txt b/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.txt new file mode 100644 index 000000000..a05218118 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0106_lambda_expr.txt | |||
@@ -0,0 +1,139 @@ | |||
1 | SOURCE_FILE@[0; 134) | ||
2 | FN_DEF@[0; 133) | ||
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@[9; 133) | ||
12 | L_CURLY@[9; 10) "{" | ||
13 | WHITESPACE@[10; 15) "\n " | ||
14 | EXPR_STMT@[15; 21) | ||
15 | LAMBDA_EXPR@[15; 20) | ||
16 | PARAM_LIST@[15; 17) | ||
17 | PIPE@[15; 16) "|" | ||
18 | PIPE@[16; 17) "|" | ||
19 | WHITESPACE@[17; 18) " " | ||
20 | TUPLE_EXPR@[18; 20) | ||
21 | L_PAREN@[18; 19) "(" | ||
22 | R_PAREN@[19; 20) ")" | ||
23 | SEMI@[20; 21) ";" | ||
24 | WHITESPACE@[21; 26) "\n " | ||
25 | EXPR_STMT@[26; 43) | ||
26 | LAMBDA_EXPR@[26; 42) | ||
27 | PARAM_LIST@[26; 28) | ||
28 | PIPE@[26; 27) "|" | ||
29 | PIPE@[27; 28) "|" | ||
30 | WHITESPACE@[28; 29) " " | ||
31 | RET_TYPE@[29; 35) | ||
32 | THIN_ARROW@[29; 31) "->" | ||
33 | WHITESPACE@[31; 32) " " | ||
34 | PATH_TYPE@[32; 35) | ||
35 | PATH@[32; 35) | ||
36 | PATH_SEGMENT@[32; 35) | ||
37 | NAME_REF@[32; 35) | ||
38 | IDENT@[32; 35) "i32" | ||
39 | WHITESPACE@[35; 36) " " | ||
40 | BLOCK_EXPR@[36; 42) | ||
41 | BLOCK@[36; 42) | ||
42 | L_CURLY@[36; 37) "{" | ||
43 | WHITESPACE@[37; 38) " " | ||
44 | LITERAL@[38; 40) | ||
45 | INT_NUMBER@[38; 40) "92" | ||
46 | WHITESPACE@[40; 41) " " | ||
47 | R_CURLY@[41; 42) "}" | ||
48 | SEMI@[42; 43) ";" | ||
49 | WHITESPACE@[43; 48) "\n " | ||
50 | EXPR_STMT@[48; 54) | ||
51 | LAMBDA_EXPR@[48; 53) | ||
52 | PARAM_LIST@[48; 51) | ||
53 | PIPE@[48; 49) "|" | ||
54 | PARAM@[49; 50) | ||
55 | BIND_PAT@[49; 50) | ||
56 | NAME@[49; 50) | ||
57 | IDENT@[49; 50) "x" | ||
58 | PIPE@[50; 51) "|" | ||
59 | WHITESPACE@[51; 52) " " | ||
60 | PATH_EXPR@[52; 53) | ||
61 | PATH@[52; 53) | ||
62 | PATH_SEGMENT@[52; 53) | ||
63 | NAME_REF@[52; 53) | ||
64 | IDENT@[52; 53) "x" | ||
65 | SEMI@[53; 54) ";" | ||
66 | WHITESPACE@[54; 59) "\n " | ||
67 | EXPR_STMT@[59; 76) | ||
68 | LAMBDA_EXPR@[59; 75) | ||
69 | MOVE_KW@[59; 63) "move" | ||
70 | WHITESPACE@[63; 64) " " | ||
71 | PARAM_LIST@[64; 73) | ||
72 | PIPE@[64; 65) "|" | ||
73 | PARAM@[65; 71) | ||
74 | BIND_PAT@[65; 66) | ||
75 | NAME@[65; 66) | ||
76 | IDENT@[65; 66) "x" | ||
77 | COLON@[66; 67) ":" | ||
78 | WHITESPACE@[67; 68) " " | ||
79 | PATH_TYPE@[68; 71) | ||
80 | PATH@[68; 71) | ||
81 | PATH_SEGMENT@[68; 71) | ||
82 | NAME_REF@[68; 71) | ||
83 | IDENT@[68; 71) "i32" | ||
84 | COMMA@[71; 72) "," | ||
85 | PIPE@[72; 73) "|" | ||
86 | WHITESPACE@[73; 74) " " | ||
87 | PATH_EXPR@[74; 75) | ||
88 | PATH@[74; 75) | ||
89 | PATH_SEGMENT@[74; 75) | ||
90 | NAME_REF@[74; 75) | ||
91 | IDENT@[74; 75) "x" | ||
92 | SEMI@[75; 76) ";" | ||
93 | WHITESPACE@[76; 81) "\n " | ||
94 | EXPR_STMT@[81; 93) | ||
95 | LAMBDA_EXPR@[81; 92) | ||
96 | ASYNC_KW@[81; 86) "async" | ||
97 | WHITESPACE@[86; 87) " " | ||
98 | PARAM_LIST@[87; 89) | ||
99 | PIPE@[87; 88) "|" | ||
100 | PIPE@[88; 89) "|" | ||
101 | WHITESPACE@[89; 90) " " | ||
102 | BLOCK_EXPR@[90; 92) | ||
103 | BLOCK@[90; 92) | ||
104 | L_CURLY@[90; 91) "{" | ||
105 | R_CURLY@[91; 92) "}" | ||
106 | SEMI@[92; 93) ";" | ||
107 | WHITESPACE@[93; 98) "\n " | ||
108 | EXPR_STMT@[98; 109) | ||
109 | LAMBDA_EXPR@[98; 108) | ||
110 | MOVE_KW@[98; 102) "move" | ||
111 | WHITESPACE@[102; 103) " " | ||
112 | PARAM_LIST@[103; 105) | ||
113 | PIPE@[103; 104) "|" | ||
114 | PIPE@[104; 105) "|" | ||
115 | WHITESPACE@[105; 106) " " | ||
116 | BLOCK_EXPR@[106; 108) | ||
117 | BLOCK@[106; 108) | ||
118 | L_CURLY@[106; 107) "{" | ||
119 | R_CURLY@[107; 108) "}" | ||
120 | SEMI@[108; 109) ";" | ||
121 | WHITESPACE@[109; 114) "\n " | ||
122 | EXPR_STMT@[114; 131) | ||
123 | LAMBDA_EXPR@[114; 130) | ||
124 | ASYNC_KW@[114; 119) "async" | ||
125 | WHITESPACE@[119; 120) " " | ||
126 | MOVE_KW@[120; 124) "move" | ||
127 | WHITESPACE@[124; 125) " " | ||
128 | PARAM_LIST@[125; 127) | ||
129 | PIPE@[125; 126) "|" | ||
130 | PIPE@[126; 127) "|" | ||
131 | WHITESPACE@[127; 128) " " | ||
132 | BLOCK_EXPR@[128; 130) | ||
133 | BLOCK@[128; 130) | ||
134 | L_CURLY@[128; 129) "{" | ||
135 | R_CURLY@[129; 130) "}" | ||
136 | SEMI@[130; 131) ";" | ||
137 | WHITESPACE@[131; 132) "\n" | ||
138 | R_CURLY@[132; 133) "}" | ||
139 | WHITESPACE@[133; 134) "\n" | ||