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