diff options
Diffstat (limited to 'crates/syntax/test_data/parser')
-rw-r--r-- | crates/syntax/test_data/parser/inline/ok/0002_use_tree_list.rast | 98 | ||||
-rw-r--r-- | crates/syntax/test_data/parser/inline/ok/0002_use_tree_list.rs | 2 |
2 files changed, 50 insertions, 50 deletions
diff --git a/crates/syntax/test_data/parser/inline/ok/0002_use_tree_list.rast b/crates/syntax/test_data/parser/inline/ok/0002_use_tree_list.rast index b1fb75ed1..f40500e38 100644 --- a/crates/syntax/test_data/parser/inline/ok/0002_use_tree_list.rast +++ b/crates/syntax/test_data/parser/inline/ok/0002_use_tree_list.rast | |||
@@ -1,4 +1,4 @@ | |||
1 | SOURCE_FILE@0..249 | 1 | SOURCE_FILE@0..248 |
2 | USE@0..58 | 2 | USE@0..58 |
3 | USE_KW@0..3 "use" | 3 | USE_KW@0..3 "use" |
4 | WHITESPACE@3..4 " " | 4 | WHITESPACE@3..4 " " |
@@ -75,62 +75,62 @@ SOURCE_FILE@0..249 | |||
75 | R_CURLY@119..120 "}" | 75 | R_CURLY@119..120 "}" |
76 | SEMICOLON@120..121 ";" | 76 | SEMICOLON@120..121 ";" |
77 | WHITESPACE@121..122 " " | 77 | WHITESPACE@121..122 " " |
78 | USE@122..166 | 78 | USE@122..165 |
79 | COMMENT@122..134 "// Rust 2015" | 79 | COMMENT@122..134 "// Rust 2015" |
80 | WHITESPACE@134..135 "\n" | 80 | WHITESPACE@134..135 "\n" |
81 | USE_KW@135..138 "use" | 81 | USE_KW@135..138 "use" |
82 | WHITESPACE@138..139 " " | 82 | WHITESPACE@138..139 " " |
83 | USE_TREE@139..165 | 83 | USE_TREE@139..164 |
84 | COLON2@139..141 "::" | 84 | COLON2@139..141 "::" |
85 | USE_TREE_LIST@141..165 | 85 | USE_TREE_LIST@141..164 |
86 | L_CURLY@141..142 "{" | 86 | L_CURLY@141..142 "{" |
87 | USE_TREE@142..164 | 87 | USE_TREE@142..163 |
88 | PATH@142..164 | 88 | PATH@142..163 |
89 | PATH@142..158 | 89 | PATH@142..157 |
90 | PATH@142..146 | 90 | PATH@142..146 |
91 | PATH_SEGMENT@142..146 | 91 | PATH_SEGMENT@142..146 |
92 | NAME_REF@142..146 | 92 | NAME_REF@142..146 |
93 | IDENT@142..146 "some" | 93 | IDENT@142..146 "some" |
94 | COLON2@146..148 "::" | 94 | COLON2@146..148 "::" |
95 | PATH_SEGMENT@148..158 | 95 | PATH_SEGMENT@148..157 |
96 | NAME_REF@148..158 | 96 | NAME_REF@148..157 |
97 | IDENT@148..158 "arbritrary" | 97 | IDENT@148..157 "arbitrary" |
98 | COLON2@158..160 "::" | 98 | COLON2@157..159 "::" |
99 | PATH_SEGMENT@160..164 | 99 | PATH_SEGMENT@159..163 |
100 | NAME_REF@160..164 | 100 | NAME_REF@159..163 |
101 | IDENT@160..164 "path" | 101 | IDENT@159..163 "path" |
102 | R_CURLY@164..165 "}" | 102 | R_CURLY@163..164 "}" |
103 | SEMICOLON@165..166 ";" | 103 | SEMICOLON@164..165 ";" |
104 | WHITESPACE@166..167 " " | 104 | WHITESPACE@165..166 " " |
105 | USE@167..205 | 105 | USE@166..204 |
106 | COMMENT@167..179 "// Rust 2015" | 106 | COMMENT@166..178 "// Rust 2015" |
107 | WHITESPACE@179..180 "\n" | 107 | WHITESPACE@178..179 "\n" |
108 | USE_KW@180..183 "use" | 108 | USE_KW@179..182 "use" |
109 | WHITESPACE@183..184 " " | 109 | WHITESPACE@182..183 " " |
110 | USE_TREE@184..204 | 110 | USE_TREE@183..203 |
111 | COLON2@184..186 "::" | 111 | COLON2@183..185 "::" |
112 | USE_TREE_LIST@186..204 | 112 | USE_TREE_LIST@185..203 |
113 | L_CURLY@186..187 "{" | 113 | L_CURLY@185..186 "{" |
114 | USE_TREE@187..203 | 114 | USE_TREE@186..202 |
115 | USE_TREE_LIST@187..203 | 115 | USE_TREE_LIST@186..202 |
116 | L_CURLY@187..188 "{" | 116 | L_CURLY@186..187 "{" |
117 | USE_TREE@188..202 | 117 | USE_TREE@187..201 |
118 | USE_TREE_LIST@188..202 | 118 | USE_TREE_LIST@187..201 |
119 | L_CURLY@188..189 "{" | 119 | L_CURLY@187..188 "{" |
120 | USE_TREE@189..201 | 120 | USE_TREE@188..200 |
121 | PATH@189..201 | 121 | PATH@188..200 |
122 | PATH@189..193 | 122 | PATH@188..192 |
123 | PATH_SEGMENT@189..193 | 123 | PATH_SEGMENT@188..192 |
124 | NAME_REF@189..193 | 124 | NAME_REF@188..192 |
125 | IDENT@189..193 "root" | 125 | IDENT@188..192 "root" |
126 | COLON2@193..195 "::" | 126 | COLON2@192..194 "::" |
127 | PATH_SEGMENT@195..201 | 127 | PATH_SEGMENT@194..200 |
128 | NAME_REF@195..201 | 128 | NAME_REF@194..200 |
129 | IDENT@195..201 "export" | 129 | IDENT@194..200 "export" |
130 | R_CURLY@201..202 "}" | 130 | R_CURLY@200..201 "}" |
131 | R_CURLY@202..203 "}" | 131 | R_CURLY@201..202 "}" |
132 | R_CURLY@203..204 "}" | 132 | R_CURLY@202..203 "}" |
133 | SEMICOLON@204..205 ";" | 133 | SEMICOLON@203..204 ";" |
134 | WHITESPACE@205..206 " " | 134 | WHITESPACE@204..205 " " |
135 | COMMENT@206..248 "// Nonsensical but pe ..." | 135 | COMMENT@205..247 "// Nonsensical but pe ..." |
136 | WHITESPACE@248..249 "\n" | 136 | WHITESPACE@247..248 "\n" |
diff --git a/crates/syntax/test_data/parser/inline/ok/0002_use_tree_list.rs b/crates/syntax/test_data/parser/inline/ok/0002_use_tree_list.rs index 381cba1e2..02af4b446 100644 --- a/crates/syntax/test_data/parser/inline/ok/0002_use_tree_list.rs +++ b/crates/syntax/test_data/parser/inline/ok/0002_use_tree_list.rs | |||
@@ -1,4 +1,4 @@ | |||
1 | use {crate::path::from::root, or::path::from::crate_name}; // Rust 2018 (with a crate named `or`) | 1 | use {crate::path::from::root, or::path::from::crate_name}; // Rust 2018 (with a crate named `or`) |
2 | use {path::from::root}; // Rust 2015 | 2 | use {path::from::root}; // Rust 2015 |
3 | use ::{some::arbritrary::path}; // Rust 2015 | 3 | use ::{some::arbitrary::path}; // Rust 2015 |
4 | use ::{{{root::export}}}; // Nonsensical but perfectly legal nesting | 4 | use ::{{{root::export}}}; // Nonsensical but perfectly legal nesting |