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/0002_use_tree_list.txt | |
parent | 4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff) |
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0002_use_tree_list.txt')
-rw-r--r-- | crates/ra_syntax/test_data/parser/inline/ok/0002_use_tree_list.txt | 135 |
1 files changed, 135 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0002_use_tree_list.txt b/crates/ra_syntax/test_data/parser/inline/ok/0002_use_tree_list.txt new file mode 100644 index 000000000..1b318dfb9 --- /dev/null +++ b/crates/ra_syntax/test_data/parser/inline/ok/0002_use_tree_list.txt | |||
@@ -0,0 +1,135 @@ | |||
1 | SOURCE_FILE@[0; 250) | ||
2 | USE_ITEM@[0; 58) | ||
3 | USE_KW@[0; 3) "use" | ||
4 | WHITESPACE@[3; 4) " " | ||
5 | USE_TREE@[4; 57) | ||
6 | USE_TREE_LIST@[4; 57) | ||
7 | L_CURLY@[4; 5) "{" | ||
8 | USE_TREE@[5; 28) | ||
9 | PATH@[5; 28) | ||
10 | PATH@[5; 22) | ||
11 | PATH@[5; 16) | ||
12 | PATH@[5; 10) | ||
13 | PATH_SEGMENT@[5; 10) | ||
14 | CRATE_KW@[5; 10) "crate" | ||
15 | COLONCOLON@[10; 12) "::" | ||
16 | PATH_SEGMENT@[12; 16) | ||
17 | NAME_REF@[12; 16) | ||
18 | IDENT@[12; 16) "path" | ||
19 | COLONCOLON@[16; 18) "::" | ||
20 | PATH_SEGMENT@[18; 22) | ||
21 | NAME_REF@[18; 22) | ||
22 | IDENT@[18; 22) "from" | ||
23 | COLONCOLON@[22; 24) "::" | ||
24 | PATH_SEGMENT@[24; 28) | ||
25 | NAME_REF@[24; 28) | ||
26 | IDENT@[24; 28) "root" | ||
27 | COMMA@[28; 29) "," | ||
28 | WHITESPACE@[29; 30) " " | ||
29 | USE_TREE@[30; 56) | ||
30 | PATH@[30; 56) | ||
31 | PATH@[30; 44) | ||
32 | PATH@[30; 38) | ||
33 | PATH@[30; 32) | ||
34 | PATH_SEGMENT@[30; 32) | ||
35 | NAME_REF@[30; 32) | ||
36 | IDENT@[30; 32) "or" | ||
37 | COLONCOLON@[32; 34) "::" | ||
38 | PATH_SEGMENT@[34; 38) | ||
39 | NAME_REF@[34; 38) | ||
40 | IDENT@[34; 38) "path" | ||
41 | COLONCOLON@[38; 40) "::" | ||
42 | PATH_SEGMENT@[40; 44) | ||
43 | NAME_REF@[40; 44) | ||
44 | IDENT@[40; 44) "from" | ||
45 | COLONCOLON@[44; 46) "::" | ||
46 | PATH_SEGMENT@[46; 56) | ||
47 | NAME_REF@[46; 56) | ||
48 | IDENT@[46; 56) "crate_name" | ||
49 | R_CURLY@[56; 57) "}" | ||
50 | SEMI@[57; 58) ";" | ||
51 | WHITESPACE@[58; 59) " " | ||
52 | COMMENT@[59; 97) "// Rust 2018 (with a ..." | ||
53 | WHITESPACE@[97; 98) "\n" | ||
54 | USE_ITEM@[98; 121) | ||
55 | USE_KW@[98; 101) "use" | ||
56 | WHITESPACE@[101; 102) " " | ||
57 | USE_TREE@[102; 120) | ||
58 | USE_TREE_LIST@[102; 120) | ||
59 | L_CURLY@[102; 103) "{" | ||
60 | USE_TREE@[103; 119) | ||
61 | PATH@[103; 119) | ||
62 | PATH@[103; 113) | ||
63 | PATH@[103; 107) | ||
64 | PATH_SEGMENT@[103; 107) | ||
65 | NAME_REF@[103; 107) | ||
66 | IDENT@[103; 107) "path" | ||
67 | COLONCOLON@[107; 109) "::" | ||
68 | PATH_SEGMENT@[109; 113) | ||
69 | NAME_REF@[109; 113) | ||
70 | IDENT@[109; 113) "from" | ||
71 | COLONCOLON@[113; 115) "::" | ||
72 | PATH_SEGMENT@[115; 119) | ||
73 | NAME_REF@[115; 119) | ||
74 | IDENT@[115; 119) "root" | ||
75 | R_CURLY@[119; 120) "}" | ||
76 | SEMI@[120; 121) ";" | ||
77 | WHITESPACE@[121; 122) " " | ||
78 | COMMENT@[122; 134) "// Rust 2015" | ||
79 | WHITESPACE@[134; 135) "\n" | ||
80 | USE_ITEM@[135; 166) | ||
81 | USE_KW@[135; 138) "use" | ||
82 | WHITESPACE@[138; 139) " " | ||
83 | USE_TREE@[139; 165) | ||
84 | COLONCOLON@[139; 141) "::" | ||
85 | USE_TREE_LIST@[141; 165) | ||
86 | L_CURLY@[141; 142) "{" | ||
87 | USE_TREE@[142; 164) | ||
88 | PATH@[142; 164) | ||
89 | PATH@[142; 158) | ||
90 | PATH@[142; 146) | ||
91 | PATH_SEGMENT@[142; 146) | ||
92 | NAME_REF@[142; 146) | ||
93 | IDENT@[142; 146) "some" | ||
94 | COLONCOLON@[146; 148) "::" | ||
95 | PATH_SEGMENT@[148; 158) | ||
96 | NAME_REF@[148; 158) | ||
97 | IDENT@[148; 158) "arbritrary" | ||
98 | COLONCOLON@[158; 160) "::" | ||
99 | PATH_SEGMENT@[160; 164) | ||
100 | NAME_REF@[160; 164) | ||
101 | IDENT@[160; 164) "path" | ||
102 | R_CURLY@[164; 165) "}" | ||
103 | SEMI@[165; 166) ";" | ||
104 | WHITESPACE@[166; 167) " " | ||
105 | COMMENT@[167; 179) "// Rust 2015" | ||
106 | WHITESPACE@[179; 180) "\n" | ||
107 | USE_ITEM@[180; 206) | ||
108 | USE_KW@[180; 183) "use" | ||
109 | WHITESPACE@[183; 184) " " | ||
110 | USE_TREE@[184; 205) | ||
111 | COLONCOLON@[184; 186) "::" | ||
112 | USE_TREE_LIST@[186; 205) | ||
113 | L_CURLY@[186; 187) "{" | ||
114 | USE_TREE@[187; 204) | ||
115 | USE_TREE_LIST@[187; 204) | ||
116 | L_CURLY@[187; 188) "{" | ||
117 | USE_TREE@[188; 203) | ||
118 | USE_TREE_LIST@[188; 203) | ||
119 | L_CURLY@[188; 189) "{" | ||
120 | USE_TREE@[189; 202) | ||
121 | PATH@[189; 202) | ||
122 | PATH@[189; 194) | ||
123 | PATH_SEGMENT@[189; 194) | ||
124 | CRATE_KW@[189; 194) "crate" | ||
125 | COLONCOLON@[194; 196) "::" | ||
126 | PATH_SEGMENT@[196; 202) | ||
127 | NAME_REF@[196; 202) | ||
128 | IDENT@[196; 202) "export" | ||
129 | R_CURLY@[202; 203) "}" | ||
130 | R_CURLY@[203; 204) "}" | ||
131 | R_CURLY@[204; 205) "}" | ||
132 | SEMI@[205; 206) ";" | ||
133 | WHITESPACE@[206; 207) " " | ||
134 | COMMENT@[207; 249) "// Nonsensical but pe ..." | ||
135 | WHITESPACE@[249; 250) "\n" | ||