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/0099_param_list.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.txt | 99 |
1 files changed, 99 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.txt b/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.txt new file mode 100644 index 000000000..80d636819 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0099_param_list.txt | |||
@@ -0,0 +1,99 @@ | |||
1 | SOURCE_FILE@[0; 67) | ||
2 | FN_DEF@[0; 9) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 4) | ||
6 | IDENT@[3; 4) "a" | ||
7 | PARAM_LIST@[4; 6) | ||
8 | L_PAREN@[4; 5) "(" | ||
9 | R_PAREN@[5; 6) ")" | ||
10 | WHITESPACE@[6; 7) " " | ||
11 | BLOCK@[7; 9) | ||
12 | L_CURLY@[7; 8) "{" | ||
13 | R_CURLY@[8; 9) "}" | ||
14 | WHITESPACE@[9; 10) "\n" | ||
15 | FN_DEF@[10; 25) | ||
16 | FN_KW@[10; 12) "fn" | ||
17 | WHITESPACE@[12; 13) " " | ||
18 | NAME@[13; 14) | ||
19 | IDENT@[13; 14) "b" | ||
20 | PARAM_LIST@[14; 22) | ||
21 | L_PAREN@[14; 15) "(" | ||
22 | PARAM@[15; 21) | ||
23 | BIND_PAT@[15; 16) | ||
24 | NAME@[15; 16) | ||
25 | IDENT@[15; 16) "x" | ||
26 | COLON@[16; 17) ":" | ||
27 | WHITESPACE@[17; 18) " " | ||
28 | PATH_TYPE@[18; 21) | ||
29 | PATH@[18; 21) | ||
30 | PATH_SEGMENT@[18; 21) | ||
31 | NAME_REF@[18; 21) | ||
32 | IDENT@[18; 21) "i32" | ||
33 | R_PAREN@[21; 22) ")" | ||
34 | WHITESPACE@[22; 23) " " | ||
35 | BLOCK@[23; 25) | ||
36 | L_CURLY@[23; 24) "{" | ||
37 | R_CURLY@[24; 25) "}" | ||
38 | WHITESPACE@[25; 26) "\n" | ||
39 | FN_DEF@[26; 43) | ||
40 | FN_KW@[26; 28) "fn" | ||
41 | WHITESPACE@[28; 29) " " | ||
42 | NAME@[29; 30) | ||
43 | IDENT@[29; 30) "c" | ||
44 | PARAM_LIST@[30; 40) | ||
45 | L_PAREN@[30; 31) "(" | ||
46 | PARAM@[31; 37) | ||
47 | BIND_PAT@[31; 32) | ||
48 | NAME@[31; 32) | ||
49 | IDENT@[31; 32) "x" | ||
50 | COLON@[32; 33) ":" | ||
51 | WHITESPACE@[33; 34) " " | ||
52 | PATH_TYPE@[34; 37) | ||
53 | PATH@[34; 37) | ||
54 | PATH_SEGMENT@[34; 37) | ||
55 | NAME_REF@[34; 37) | ||
56 | IDENT@[34; 37) "i32" | ||
57 | COMMA@[37; 38) "," | ||
58 | WHITESPACE@[38; 39) " " | ||
59 | R_PAREN@[39; 40) ")" | ||
60 | WHITESPACE@[40; 41) " " | ||
61 | BLOCK@[41; 43) | ||
62 | L_CURLY@[41; 42) "{" | ||
63 | R_CURLY@[42; 43) "}" | ||
64 | WHITESPACE@[43; 44) "\n" | ||
65 | FN_DEF@[44; 66) | ||
66 | FN_KW@[44; 46) "fn" | ||
67 | WHITESPACE@[46; 47) " " | ||
68 | NAME@[47; 48) | ||
69 | IDENT@[47; 48) "d" | ||
70 | PARAM_LIST@[48; 63) | ||
71 | L_PAREN@[48; 49) "(" | ||
72 | PARAM@[49; 55) | ||
73 | BIND_PAT@[49; 50) | ||
74 | NAME@[49; 50) | ||
75 | IDENT@[49; 50) "x" | ||
76 | COLON@[50; 51) ":" | ||
77 | WHITESPACE@[51; 52) " " | ||
78 | PATH_TYPE@[52; 55) | ||
79 | PATH@[52; 55) | ||
80 | PATH_SEGMENT@[52; 55) | ||
81 | NAME_REF@[52; 55) | ||
82 | IDENT@[52; 55) "i32" | ||
83 | COMMA@[55; 56) "," | ||
84 | WHITESPACE@[56; 57) " " | ||
85 | PARAM@[57; 62) | ||
86 | BIND_PAT@[57; 58) | ||
87 | NAME@[57; 58) | ||
88 | IDENT@[57; 58) "y" | ||
89 | COLON@[58; 59) ":" | ||
90 | WHITESPACE@[59; 60) " " | ||
91 | TUPLE_TYPE@[60; 62) | ||
92 | L_PAREN@[60; 61) "(" | ||
93 | R_PAREN@[61; 62) ")" | ||
94 | R_PAREN@[62; 63) ")" | ||
95 | WHITESPACE@[63; 64) " " | ||
96 | BLOCK@[64; 66) | ||
97 | L_CURLY@[64; 65) "{" | ||
98 | R_CURLY@[65; 66) "}" | ||
99 | WHITESPACE@[66; 67) "\n" | ||