diff options
Diffstat (limited to 'crates/ra_syntax/tests/data/parser')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/0114_use_path.rs | 5 | ||||
-rw-r--r-- | crates/ra_syntax/tests/data/parser/inline/0114_use_path.txt | 71 |
2 files changed, 2 insertions, 74 deletions
diff --git a/crates/ra_syntax/tests/data/parser/inline/0114_use_path.rs b/crates/ra_syntax/tests/data/parser/inline/0114_use_path.rs index 1e436a6bc..328e94736 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0114_use_path.rs +++ b/crates/ra_syntax/tests/data/parser/inline/0114_use_path.rs | |||
@@ -1,8 +1,3 @@ | |||
1 | use ::crate_name; // Rust 2018 - All flavours | 1 | use ::crate_name; // Rust 2018 - All flavours |
2 | use crate_name; // Rust 2018 - Anchored paths | 2 | use crate_name; // Rust 2018 - Anchored paths |
3 | use item_in_scope_or_crate_name; // Rust 2018 - Uniform Paths | 3 | use item_in_scope_or_crate_name; // Rust 2018 - Uniform Paths |
4 | |||
5 | use self::module::Item; | ||
6 | use crate::Item; | ||
7 | use self::some::Struct; | ||
8 | use crate_name::some_item; | ||
diff --git a/crates/ra_syntax/tests/data/parser/inline/0114_use_path.txt b/crates/ra_syntax/tests/data/parser/inline/0114_use_path.txt index 4dc68c3b1..420449e61 100644 --- a/crates/ra_syntax/tests/data/parser/inline/0114_use_path.txt +++ b/crates/ra_syntax/tests/data/parser/inline/0114_use_path.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | SOURCE_FILE@[0; 247) | 1 | SOURCE_FILE@[0; 154) |
2 | USE_ITEM@[0; 17) | 2 | USE_ITEM@[0; 17) |
3 | USE_KW@[0; 3) | 3 | USE_KW@[0; 3) |
4 | WHITESPACE@[3; 4) | 4 | WHITESPACE@[3; 4) |
@@ -35,71 +35,4 @@ SOURCE_FILE@[0; 247) | |||
35 | SEMI@[123; 124) | 35 | SEMI@[123; 124) |
36 | WHITESPACE@[124; 125) | 36 | WHITESPACE@[124; 125) |
37 | COMMENT@[125; 153) | 37 | COMMENT@[125; 153) |
38 | WHITESPACE@[153; 155) | 38 | WHITESPACE@[153; 154) |
39 | USE_ITEM@[155; 178) | ||
40 | USE_KW@[155; 158) | ||
41 | WHITESPACE@[158; 159) | ||
42 | USE_TREE@[159; 177) | ||
43 | PATH@[159; 177) | ||
44 | PATH@[159; 171) | ||
45 | PATH@[159; 163) | ||
46 | PATH_SEGMENT@[159; 163) | ||
47 | SELF_KW@[159; 163) | ||
48 | COLONCOLON@[163; 165) | ||
49 | PATH_SEGMENT@[165; 171) | ||
50 | NAME_REF@[165; 171) | ||
51 | IDENT@[165; 171) "module" | ||
52 | COLONCOLON@[171; 173) | ||
53 | PATH_SEGMENT@[173; 177) | ||
54 | NAME_REF@[173; 177) | ||
55 | IDENT@[173; 177) "Item" | ||
56 | SEMI@[177; 178) | ||
57 | WHITESPACE@[178; 179) | ||
58 | USE_ITEM@[179; 195) | ||
59 | USE_KW@[179; 182) | ||
60 | WHITESPACE@[182; 183) | ||
61 | USE_TREE@[183; 194) | ||
62 | PATH@[183; 194) | ||
63 | PATH@[183; 188) | ||
64 | PATH_SEGMENT@[183; 188) | ||
65 | CRATE_KW@[183; 188) | ||
66 | COLONCOLON@[188; 190) | ||
67 | PATH_SEGMENT@[190; 194) | ||
68 | NAME_REF@[190; 194) | ||
69 | IDENT@[190; 194) "Item" | ||
70 | SEMI@[194; 195) | ||
71 | WHITESPACE@[195; 196) | ||
72 | USE_ITEM@[196; 219) | ||
73 | USE_KW@[196; 199) | ||
74 | WHITESPACE@[199; 200) | ||
75 | USE_TREE@[200; 218) | ||
76 | PATH@[200; 218) | ||
77 | PATH@[200; 210) | ||
78 | PATH@[200; 204) | ||
79 | PATH_SEGMENT@[200; 204) | ||
80 | SELF_KW@[200; 204) | ||
81 | COLONCOLON@[204; 206) | ||
82 | PATH_SEGMENT@[206; 210) | ||
83 | NAME_REF@[206; 210) | ||
84 | IDENT@[206; 210) "some" | ||
85 | COLONCOLON@[210; 212) | ||
86 | PATH_SEGMENT@[212; 218) | ||
87 | NAME_REF@[212; 218) | ||
88 | IDENT@[212; 218) "Struct" | ||
89 | SEMI@[218; 219) | ||
90 | WHITESPACE@[219; 220) | ||
91 | USE_ITEM@[220; 246) | ||
92 | USE_KW@[220; 223) | ||
93 | WHITESPACE@[223; 224) | ||
94 | USE_TREE@[224; 245) | ||
95 | PATH@[224; 245) | ||
96 | PATH@[224; 234) | ||
97 | PATH_SEGMENT@[224; 234) | ||
98 | NAME_REF@[224; 234) | ||
99 | IDENT@[224; 234) "crate_name" | ||
100 | COLONCOLON@[234; 236) | ||
101 | PATH_SEGMENT@[236; 245) | ||
102 | NAME_REF@[236; 245) | ||
103 | IDENT@[236; 245) "some_item" | ||
104 | SEMI@[245; 246) | ||
105 | WHITESPACE@[246; 247) | ||