diff options
160 files changed, 187 insertions, 188 deletions
diff --git a/crates/libeditor/src/lib.rs b/crates/libeditor/src/lib.rs index b2d1dab58..681cca81d 100644 --- a/crates/libeditor/src/lib.rs +++ b/crates/libeditor/src/lib.rs | |||
@@ -10,7 +10,7 @@ mod code_actions; | |||
10 | mod typing; | 10 | mod typing; |
11 | 11 | ||
12 | use libsyntax2::{ | 12 | use libsyntax2::{ |
13 | ast::{self, AstNode, NameOwner}, | 13 | ast::{AstNode, NameOwner}, |
14 | algo::{walk, find_leaf_at_offset}, | 14 | algo::{walk, find_leaf_at_offset}, |
15 | SyntaxKind::{self, *}, | 15 | SyntaxKind::{self, *}, |
16 | }; | 16 | }; |
diff --git a/crates/libeditor/src/typing.rs b/crates/libeditor/src/typing.rs index 8903af177..ebc7c77d2 100644 --- a/crates/libeditor/src/typing.rs +++ b/crates/libeditor/src/typing.rs | |||
@@ -1,6 +1,5 @@ | |||
1 | use libsyntax2::{ | 1 | use libsyntax2::{ |
2 | TextUnit, TextRange, SyntaxNodeRef, ParsedFile, | 2 | TextUnit, TextRange, SyntaxNodeRef, ParsedFile, |
3 | ast, | ||
4 | algo::{ | 3 | algo::{ |
5 | walk::preorder, | 4 | walk::preorder, |
6 | find_covering_node, | 5 | find_covering_node, |
diff --git a/crates/libsyntax2/src/ast/generated.rs b/crates/libsyntax2/src/ast/generated.rs index 8eb91c1df..52668c37b 100644 --- a/crates/libsyntax2/src/ast/generated.rs +++ b/crates/libsyntax2/src/ast/generated.rs | |||
@@ -104,32 +104,6 @@ impl<'a> ast::TypeParamsOwner<'a> for EnumDef<'a> {} | |||
104 | impl<'a> ast::AttrsOwner<'a> for EnumDef<'a> {} | 104 | impl<'a> ast::AttrsOwner<'a> for EnumDef<'a> {} |
105 | impl<'a> EnumDef<'a> {} | 105 | impl<'a> EnumDef<'a> {} |
106 | 106 | ||
107 | // File | ||
108 | #[derive(Debug, Clone, Copy)] | ||
109 | pub struct File<'a> { | ||
110 | syntax: SyntaxNodeRef<'a>, | ||
111 | } | ||
112 | |||
113 | impl<'a> AstNode<'a> for File<'a> { | ||
114 | fn cast(syntax: SyntaxNodeRef<'a>) -> Option<Self> { | ||
115 | match syntax.kind() { | ||
116 | FILE => Some(File { syntax }), | ||
117 | _ => None, | ||
118 | } | ||
119 | } | ||
120 | fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax } | ||
121 | } | ||
122 | |||
123 | impl<'a> File<'a> { | ||
124 | pub fn functions(self) -> impl Iterator<Item = FnDef<'a>> + 'a { | ||
125 | super::children(self) | ||
126 | } | ||
127 | |||
128 | pub fn modules(self) -> impl Iterator<Item = Module<'a>> + 'a { | ||
129 | super::children(self) | ||
130 | } | ||
131 | } | ||
132 | |||
133 | // FnDef | 107 | // FnDef |
134 | #[derive(Debug, Clone, Copy)] | 108 | #[derive(Debug, Clone, Copy)] |
135 | pub struct FnDef<'a> { | 109 | pub struct FnDef<'a> { |
@@ -439,6 +413,32 @@ impl<'a> AstNode<'a> for ReferenceType<'a> { | |||
439 | 413 | ||
440 | impl<'a> ReferenceType<'a> {} | 414 | impl<'a> ReferenceType<'a> {} |
441 | 415 | ||
416 | // Root | ||
417 | #[derive(Debug, Clone, Copy)] | ||
418 | pub struct Root<'a> { | ||
419 | syntax: SyntaxNodeRef<'a>, | ||
420 | } | ||
421 | |||
422 | impl<'a> AstNode<'a> for Root<'a> { | ||
423 | fn cast(syntax: SyntaxNodeRef<'a>) -> Option<Self> { | ||
424 | match syntax.kind() { | ||
425 | ROOT => Some(Root { syntax }), | ||
426 | _ => None, | ||
427 | } | ||
428 | } | ||
429 | fn syntax(self) -> SyntaxNodeRef<'a> { self.syntax } | ||
430 | } | ||
431 | |||
432 | impl<'a> Root<'a> { | ||
433 | pub fn functions(self) -> impl Iterator<Item = FnDef<'a>> + 'a { | ||
434 | super::children(self) | ||
435 | } | ||
436 | |||
437 | pub fn modules(self) -> impl Iterator<Item = Module<'a>> + 'a { | ||
438 | super::children(self) | ||
439 | } | ||
440 | } | ||
441 | |||
442 | // SliceType | 442 | // SliceType |
443 | #[derive(Debug, Clone, Copy)] | 443 | #[derive(Debug, Clone, Copy)] |
444 | pub struct SliceType<'a> { | 444 | pub struct SliceType<'a> { |
diff --git a/crates/libsyntax2/src/grammar.ron b/crates/libsyntax2/src/grammar.ron index f4792df1d..0ea7e8ce1 100644 --- a/crates/libsyntax2/src/grammar.ron +++ b/crates/libsyntax2/src/grammar.ron | |||
@@ -114,7 +114,7 @@ Grammar( | |||
114 | "SHEBANG", | 114 | "SHEBANG", |
115 | ], | 115 | ], |
116 | nodes: [ | 116 | nodes: [ |
117 | "FILE", | 117 | "ROOT", |
118 | 118 | ||
119 | "STRUCT_DEF", | 119 | "STRUCT_DEF", |
120 | "ENUM_DEF", | 120 | "ENUM_DEF", |
@@ -235,7 +235,7 @@ Grammar( | |||
235 | "ARG_LIST", | 235 | "ARG_LIST", |
236 | ], | 236 | ], |
237 | ast: { | 237 | ast: { |
238 | "File": ( | 238 | "Root": ( |
239 | collections: [ | 239 | collections: [ |
240 | ["functions", "FnDef"], | 240 | ["functions", "FnDef"], |
241 | ["modules", "Module"], | 241 | ["modules", "Module"], |
diff --git a/crates/libsyntax2/src/grammar/mod.rs b/crates/libsyntax2/src/grammar/mod.rs index 0f118f12d..e3ca2714c 100644 --- a/crates/libsyntax2/src/grammar/mod.rs +++ b/crates/libsyntax2/src/grammar/mod.rs | |||
@@ -40,7 +40,7 @@ pub(crate) fn file(p: &mut Parser) { | |||
40 | let file = p.start(); | 40 | let file = p.start(); |
41 | p.eat(SHEBANG); | 41 | p.eat(SHEBANG); |
42 | items::mod_contents(p, false); | 42 | items::mod_contents(p, false); |
43 | file.complete(p, FILE); | 43 | file.complete(p, ROOT); |
44 | } | 44 | } |
45 | 45 | ||
46 | 46 | ||
diff --git a/crates/libsyntax2/src/lib.rs b/crates/libsyntax2/src/lib.rs index b3efe2a18..9b45e2575 100644 --- a/crates/libsyntax2/src/lib.rs +++ b/crates/libsyntax2/src/lib.rs | |||
@@ -60,8 +60,8 @@ impl ParsedFile { | |||
60 | let root = ::parse(text); | 60 | let root = ::parse(text); |
61 | ParsedFile { root } | 61 | ParsedFile { root } |
62 | } | 62 | } |
63 | pub fn ast(&self) -> ast::File { | 63 | pub fn ast(&self) -> ast::Root { |
64 | ast::File::cast(self.syntax()).unwrap() | 64 | ast::Root::cast(self.syntax()).unwrap() |
65 | } | 65 | } |
66 | pub fn syntax(&self) -> SyntaxNodeRef { | 66 | pub fn syntax(&self) -> SyntaxNodeRef { |
67 | self.root.borrowed() | 67 | self.root.borrowed() |
diff --git a/crates/libsyntax2/src/syntax_kinds/generated.rs b/crates/libsyntax2/src/syntax_kinds/generated.rs index 6c7f44aee..6a24cb19e 100644 --- a/crates/libsyntax2/src/syntax_kinds/generated.rs +++ b/crates/libsyntax2/src/syntax_kinds/generated.rs | |||
@@ -115,7 +115,7 @@ pub enum SyntaxKind { | |||
115 | COMMENT, | 115 | COMMENT, |
116 | DOC_COMMENT, | 116 | DOC_COMMENT, |
117 | SHEBANG, | 117 | SHEBANG, |
118 | FILE, | 118 | ROOT, |
119 | STRUCT_DEF, | 119 | STRUCT_DEF, |
120 | ENUM_DEF, | 120 | ENUM_DEF, |
121 | FN_DEF, | 121 | FN_DEF, |
@@ -375,7 +375,7 @@ impl SyntaxKind { | |||
375 | COMMENT => &SyntaxInfo { name: "COMMENT" }, | 375 | COMMENT => &SyntaxInfo { name: "COMMENT" }, |
376 | DOC_COMMENT => &SyntaxInfo { name: "DOC_COMMENT" }, | 376 | DOC_COMMENT => &SyntaxInfo { name: "DOC_COMMENT" }, |
377 | SHEBANG => &SyntaxInfo { name: "SHEBANG" }, | 377 | SHEBANG => &SyntaxInfo { name: "SHEBANG" }, |
378 | FILE => &SyntaxInfo { name: "FILE" }, | 378 | ROOT => &SyntaxInfo { name: "ROOT" }, |
379 | STRUCT_DEF => &SyntaxInfo { name: "STRUCT_DEF" }, | 379 | STRUCT_DEF => &SyntaxInfo { name: "STRUCT_DEF" }, |
380 | ENUM_DEF => &SyntaxInfo { name: "ENUM_DEF" }, | 380 | ENUM_DEF => &SyntaxInfo { name: "ENUM_DEF" }, |
381 | FN_DEF => &SyntaxInfo { name: "FN_DEF" }, | 381 | FN_DEF => &SyntaxInfo { name: "FN_DEF" }, |
diff --git a/crates/libsyntax2/tests/data/parser/err/0000_struct_field_missing_comma.txt b/crates/libsyntax2/tests/data/parser/err/0000_struct_field_missing_comma.txt index 8ab435821..aa375fe8a 100644 --- a/crates/libsyntax2/tests/data/parser/err/0000_struct_field_missing_comma.txt +++ b/crates/libsyntax2/tests/data/parser/err/0000_struct_field_missing_comma.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 34) | 1 | ROOT@[0; 34) |
2 | STRUCT_DEF@[0; 34) | 2 | STRUCT_DEF@[0; 34) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0001_item_recovery_in_file.txt b/crates/libsyntax2/tests/data/parser/err/0001_item_recovery_in_file.txt index 9c0394e25..771d6e1ef 100644 --- a/crates/libsyntax2/tests/data/parser/err/0001_item_recovery_in_file.txt +++ b/crates/libsyntax2/tests/data/parser/err/0001_item_recovery_in_file.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 21) | 1 | ROOT@[0; 21) |
2 | ERROR@[0; 2) | 2 | ERROR@[0; 2) |
3 | IF_KW@[0; 2) | 3 | IF_KW@[0; 2) |
4 | err: `expected an item` | 4 | err: `expected an item` |
diff --git a/crates/libsyntax2/tests/data/parser/err/0002_duplicate_shebang.txt b/crates/libsyntax2/tests/data/parser/err/0002_duplicate_shebang.txt index 0b6aa26eb..57fb48420 100644 --- a/crates/libsyntax2/tests/data/parser/err/0002_duplicate_shebang.txt +++ b/crates/libsyntax2/tests/data/parser/err/0002_duplicate_shebang.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 42) | 1 | ROOT@[0; 42) |
2 | SHEBANG@[0; 20) | 2 | SHEBANG@[0; 20) |
3 | WHITESPACE@[20; 21) | 3 | WHITESPACE@[20; 21) |
4 | err: `expected an item` | 4 | err: `expected an item` |
diff --git a/crates/libsyntax2/tests/data/parser/err/0003_C++_semicolon.txt b/crates/libsyntax2/tests/data/parser/err/0003_C++_semicolon.txt index 13558d07e..b51c0573a 100644 --- a/crates/libsyntax2/tests/data/parser/err/0003_C++_semicolon.txt +++ b/crates/libsyntax2/tests/data/parser/err/0003_C++_semicolon.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 40) | 1 | ROOT@[0; 40) |
2 | STRUCT_DEF@[0; 40) | 2 | STRUCT_DEF@[0; 40) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt b/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt index 64aa07801..646c84534 100644 --- a/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt +++ b/crates/libsyntax2/tests/data/parser/err/0004_use_path_bad_segment.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 12) | 1 | ROOT@[0; 12) |
2 | USE_ITEM@[0; 12) | 2 | USE_ITEM@[0; 12) |
3 | USE_KW@[0; 3) | 3 | USE_KW@[0; 3) |
4 | WHITESPACE@[3; 4) | 4 | WHITESPACE@[3; 4) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0005_attribute_recover.txt b/crates/libsyntax2/tests/data/parser/err/0005_attribute_recover.txt index 8843e8372..b3cf9b889 100644 --- a/crates/libsyntax2/tests/data/parser/err/0005_attribute_recover.txt +++ b/crates/libsyntax2/tests/data/parser/err/0005_attribute_recover.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 54) | 1 | ROOT@[0; 54) |
2 | FN_DEF@[0; 31) | 2 | FN_DEF@[0; 31) |
3 | ATTR@[0; 18) | 3 | ATTR@[0; 18) |
4 | POUND@[0; 1) | 4 | POUND@[0; 1) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0006_named_field_recovery.txt b/crates/libsyntax2/tests/data/parser/err/0006_named_field_recovery.txt index e6e33cdbd..9abda7099 100644 --- a/crates/libsyntax2/tests/data/parser/err/0006_named_field_recovery.txt +++ b/crates/libsyntax2/tests/data/parser/err/0006_named_field_recovery.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 74) | 1 | ROOT@[0; 74) |
2 | STRUCT_DEF@[0; 73) | 2 | STRUCT_DEF@[0; 73) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0007_stray_curly_in_file.txt b/crates/libsyntax2/tests/data/parser/err/0007_stray_curly_in_file.txt index 9642ed5bc..81e82f7e2 100644 --- a/crates/libsyntax2/tests/data/parser/err/0007_stray_curly_in_file.txt +++ b/crates/libsyntax2/tests/data/parser/err/0007_stray_curly_in_file.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 31) | 1 | ROOT@[0; 31) |
2 | ERROR@[0; 1) | 2 | ERROR@[0; 1) |
3 | R_CURLY@[0; 1) | 3 | R_CURLY@[0; 1) |
4 | err: `expected an item` | 4 | err: `expected an item` |
diff --git a/crates/libsyntax2/tests/data/parser/err/0008_item_block_recovery.txt b/crates/libsyntax2/tests/data/parser/err/0008_item_block_recovery.txt index 5a062acab..95a34333b 100644 --- a/crates/libsyntax2/tests/data/parser/err/0008_item_block_recovery.txt +++ b/crates/libsyntax2/tests/data/parser/err/0008_item_block_recovery.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 95) | 1 | ROOT@[0; 95) |
2 | FN_DEF@[0; 12) | 2 | FN_DEF@[0; 12) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0009_broken_struct_type_parameter.txt b/crates/libsyntax2/tests/data/parser/err/0009_broken_struct_type_parameter.txt index 0c5b57ee5..fa8adf881 100644 --- a/crates/libsyntax2/tests/data/parser/err/0009_broken_struct_type_parameter.txt +++ b/crates/libsyntax2/tests/data/parser/err/0009_broken_struct_type_parameter.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 43) | 1 | ROOT@[0; 43) |
2 | STRUCT_DEF@[0; 11) | 2 | STRUCT_DEF@[0; 11) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt b/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt index e453c3651..6cda8543f 100644 --- a/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt +++ b/crates/libsyntax2/tests/data/parser/err/0010_unsafe_lambda_block.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 42) | 1 | ROOT@[0; 42) |
2 | FN_DEF@[0; 41) | 2 | FN_DEF@[0; 41) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0011_extern_struct.txt b/crates/libsyntax2/tests/data/parser/err/0011_extern_struct.txt index be63741ae..0cb7447c4 100644 --- a/crates/libsyntax2/tests/data/parser/err/0011_extern_struct.txt +++ b/crates/libsyntax2/tests/data/parser/err/0011_extern_struct.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 19) | 1 | ROOT@[0; 19) |
2 | ERROR@[0; 6) | 2 | ERROR@[0; 6) |
3 | ABI@[0; 6) | 3 | ABI@[0; 6) |
4 | EXTERN_KW@[0; 6) | 4 | EXTERN_KW@[0; 6) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.txt b/crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.txt index f1827d3dc..a03aa05e3 100644 --- a/crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.txt +++ b/crates/libsyntax2/tests/data/parser/err/0012_broken_lambda.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 389) | 1 | ROOT@[0; 389) |
2 | FN_DEF@[0; 389) | 2 | FN_DEF@[0; 389) |
3 | VISIBILITY@[0; 10) | 3 | VISIBILITY@[0; 10) |
4 | PUB_KW@[0; 3) | 4 | PUB_KW@[0; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0013_invalid_type.txt b/crates/libsyntax2/tests/data/parser/err/0013_invalid_type.txt index 7f48502da..f7f6c6bce 100644 --- a/crates/libsyntax2/tests/data/parser/err/0013_invalid_type.txt +++ b/crates/libsyntax2/tests/data/parser/err/0013_invalid_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 86) | 1 | ROOT@[0; 86) |
2 | STRUCT_DEF@[0; 84) | 2 | STRUCT_DEF@[0; 84) |
3 | VISIBILITY@[0; 3) | 3 | VISIBILITY@[0; 3) |
4 | PUB_KW@[0; 3) | 4 | PUB_KW@[0; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0014_where_no_bounds.txt b/crates/libsyntax2/tests/data/parser/err/0014_where_no_bounds.txt index cef20327c..37826ce86 100644 --- a/crates/libsyntax2/tests/data/parser/err/0014_where_no_bounds.txt +++ b/crates/libsyntax2/tests/data/parser/err/0014_where_no_bounds.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 23) | 1 | ROOT@[0; 23) |
2 | FN_DEF@[0; 22) | 2 | FN_DEF@[0; 22) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/err/0015_curly_in_params.txt b/crates/libsyntax2/tests/data/parser/err/0015_curly_in_params.txt index 841379797..bd8356616 100644 --- a/crates/libsyntax2/tests/data/parser/err/0015_curly_in_params.txt +++ b/crates/libsyntax2/tests/data/parser/err/0015_curly_in_params.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 14) | 1 | ROOT@[0; 14) |
2 | FN_DEF@[0; 7) | 2 | FN_DEF@[0; 7) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0001_const_unsafe_fn.txt b/crates/libsyntax2/tests/data/parser/inline/0001_const_unsafe_fn.txt index 29c479f8b..956532981 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0001_const_unsafe_fn.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0001_const_unsafe_fn.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 25) | 1 | ROOT@[0; 25) |
2 | FN_DEF@[0; 24) | 2 | FN_DEF@[0; 24) |
3 | CONST_KW@[0; 5) | 3 | CONST_KW@[0; 5) |
4 | WHITESPACE@[5; 6) | 4 | WHITESPACE@[5; 6) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0002_const_fn.txt b/crates/libsyntax2/tests/data/parser/inline/0002_const_fn.txt index a2f94eb14..bda875fc5 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0002_const_fn.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0002_const_fn.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 18) | 1 | ROOT@[0; 18) |
2 | FN_DEF@[0; 17) | 2 | FN_DEF@[0; 17) |
3 | CONST_KW@[0; 5) | 3 | CONST_KW@[0; 5) |
4 | WHITESPACE@[5; 6) | 4 | WHITESPACE@[5; 6) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0003_extern_block.txt b/crates/libsyntax2/tests/data/parser/inline/0003_extern_block.txt index ab9bc0463..2c2bbd035 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0003_extern_block.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0003_extern_block.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 10) | 1 | ROOT@[0; 10) |
2 | EXTERN_BLOCK@[0; 9) | 2 | EXTERN_BLOCK@[0; 9) |
3 | ABI@[0; 6) | 3 | ABI@[0; 6) |
4 | EXTERN_KW@[0; 6) | 4 | EXTERN_KW@[0; 6) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0004_extern_fn.txt b/crates/libsyntax2/tests/data/parser/inline/0004_extern_fn.txt index 9cf20991a..f6e769475 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0004_extern_fn.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0004_extern_fn.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 19) | 1 | ROOT@[0; 19) |
2 | FN_DEF@[0; 18) | 2 | FN_DEF@[0; 18) |
3 | ABI@[0; 6) | 3 | ABI@[0; 6) |
4 | EXTERN_KW@[0; 6) | 4 | EXTERN_KW@[0; 6) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0005_extern_crate.txt b/crates/libsyntax2/tests/data/parser/inline/0005_extern_crate.txt index eac8656ac..fc025b0f3 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0005_extern_crate.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0005_extern_crate.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 18) | 1 | ROOT@[0; 18) |
2 | EXTERN_CRATE_ITEM@[0; 17) | 2 | EXTERN_CRATE_ITEM@[0; 17) |
3 | EXTERN_KW@[0; 6) | 3 | EXTERN_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0007_unsafe_trait.txt b/crates/libsyntax2/tests/data/parser/inline/0007_unsafe_trait.txt index d7e20db70..fb97cc042 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0007_unsafe_trait.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0007_unsafe_trait.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 18) | 1 | ROOT@[0; 18) |
2 | TRAIT_DEF@[0; 17) | 2 | TRAIT_DEF@[0; 17) |
3 | UNSAFE_KW@[0; 6) | 3 | UNSAFE_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0008_unsafe_impl.txt b/crates/libsyntax2/tests/data/parser/inline/0008_unsafe_impl.txt index 20c0c2de4..fa596394f 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0008_unsafe_impl.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0008_unsafe_impl.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 19) | 1 | ROOT@[0; 19) |
2 | IMPL_ITEM@[0; 18) | 2 | IMPL_ITEM@[0; 18) |
3 | UNSAFE_KW@[0; 6) | 3 | UNSAFE_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0009_unsafe_auto_trait.txt b/crates/libsyntax2/tests/data/parser/inline/0009_unsafe_auto_trait.txt index fe296aef6..e642bbf80 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0009_unsafe_auto_trait.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0009_unsafe_auto_trait.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 23) | 1 | ROOT@[0; 23) |
2 | TRAIT_DEF@[0; 22) | 2 | TRAIT_DEF@[0; 22) |
3 | UNSAFE_KW@[0; 6) | 3 | UNSAFE_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0010_unsafe_default_impl.txt b/crates/libsyntax2/tests/data/parser/inline/0010_unsafe_default_impl.txt index 11e0041f5..99d33a902 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0010_unsafe_default_impl.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0010_unsafe_default_impl.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 27) | 1 | ROOT@[0; 27) |
2 | IMPL_ITEM@[0; 26) | 2 | IMPL_ITEM@[0; 26) |
3 | UNSAFE_KW@[0; 6) | 3 | UNSAFE_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0011_unsafe_fn.txt b/crates/libsyntax2/tests/data/parser/inline/0011_unsafe_fn.txt index 54d444182..39ec53b26 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0011_unsafe_fn.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0011_unsafe_fn.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 19) | 1 | ROOT@[0; 19) |
2 | FN_DEF@[0; 18) | 2 | FN_DEF@[0; 18) |
3 | UNSAFE_KW@[0; 6) | 3 | UNSAFE_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0012_unsafe_extern_fn.txt b/crates/libsyntax2/tests/data/parser/inline/0012_unsafe_extern_fn.txt index e71a86d64..54e296ed6 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0012_unsafe_extern_fn.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0012_unsafe_extern_fn.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 30) | 1 | ROOT@[0; 30) |
2 | FN_DEF@[0; 29) | 2 | FN_DEF@[0; 29) |
3 | UNSAFE_KW@[0; 6) | 3 | UNSAFE_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0013_unsafe_block_in_mod.txt b/crates/libsyntax2/tests/data/parser/inline/0013_unsafe_block_in_mod.txt index 3718caba5..9825e5ace 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0013_unsafe_block_in_mod.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0013_unsafe_block_in_mod.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 33) | 1 | ROOT@[0; 33) |
2 | FN_DEF@[0; 10) | 2 | FN_DEF@[0; 10) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0014_type_item_type_params.txt b/crates/libsyntax2/tests/data/parser/inline/0014_type_item_type_params.txt index be4f7d17d..bf65e8a37 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0014_type_item_type_params.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0014_type_item_type_params.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 21) | 1 | ROOT@[0; 21) |
2 | TYPE_DEF@[0; 20) | 2 | TYPE_DEF@[0; 20) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0015_type_item.txt b/crates/libsyntax2/tests/data/parser/inline/0015_type_item.txt index a6c63b030..71048bcc5 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0015_type_item.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0015_type_item.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 16) | 1 | ROOT@[0; 16) |
2 | TYPE_DEF@[0; 15) | 2 | TYPE_DEF@[0; 15) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0016_type_item_where_clause.txt b/crates/libsyntax2/tests/data/parser/inline/0016_type_item_where_clause.txt index 6df40a6e4..5309b9a7b 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0016_type_item_where_clause.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0016_type_item_where_clause.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 31) | 1 | ROOT@[0; 31) |
2 | TYPE_DEF@[0; 30) | 2 | TYPE_DEF@[0; 30) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0017_paren_type.txt b/crates/libsyntax2/tests/data/parser/inline/0017_paren_type.txt index 9858ff955..97e73fea1 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0017_paren_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0017_paren_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 16) | 1 | ROOT@[0; 16) |
2 | TYPE_DEF@[0; 15) | 2 | TYPE_DEF@[0; 15) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0018_unit_type.txt b/crates/libsyntax2/tests/data/parser/inline/0018_unit_type.txt index 83e06de45..5d04d42fc 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0018_unit_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0018_unit_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 13) | 1 | ROOT@[0; 13) |
2 | TYPE_DEF@[0; 12) | 2 | TYPE_DEF@[0; 12) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0019_singleton_tuple_type.txt b/crates/libsyntax2/tests/data/parser/inline/0019_singleton_tuple_type.txt index 662fa4fd8..2cd8be9ab 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0019_singleton_tuple_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0019_singleton_tuple_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 17) | 1 | ROOT@[0; 17) |
2 | TYPE_DEF@[0; 16) | 2 | TYPE_DEF@[0; 16) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0020_never_type.txt b/crates/libsyntax2/tests/data/parser/inline/0020_never_type.txt index 3ce4f08a9..6205d9669 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0020_never_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0020_never_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 16) | 1 | ROOT@[0; 16) |
2 | TYPE_DEF@[0; 15) | 2 | TYPE_DEF@[0; 15) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0021_pointer_type_no_mutability.txt b/crates/libsyntax2/tests/data/parser/inline/0021_pointer_type_no_mutability.txt index 7bbb18a7f..23e68557a 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0021_pointer_type_no_mutability.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0021_pointer_type_no_mutability.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 14) | 1 | ROOT@[0; 14) |
2 | TYPE_DEF@[0; 13) | 2 | TYPE_DEF@[0; 13) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0022_pointer_type_mut.txt b/crates/libsyntax2/tests/data/parser/inline/0022_pointer_type_mut.txt index 169e2b922..33f5ad8b4 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0022_pointer_type_mut.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0022_pointer_type_mut.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 36) | 1 | ROOT@[0; 36) |
2 | TYPE_DEF@[0; 17) | 2 | TYPE_DEF@[0; 17) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0023_array_type_missing_semi.txt b/crates/libsyntax2/tests/data/parser/inline/0023_array_type_missing_semi.txt index 140ff1320..90bdc5d2e 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0023_array_type_missing_semi.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0023_array_type_missing_semi.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 18) | 1 | ROOT@[0; 18) |
2 | TYPE_DEF@[0; 12) | 2 | TYPE_DEF@[0; 12) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0024_array_type.txt b/crates/libsyntax2/tests/data/parser/inline/0024_array_type.txt index 835a0dba8..809c86974 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0024_array_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0024_array_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 19) | 1 | ROOT@[0; 19) |
2 | TYPE_DEF@[0; 18) | 2 | TYPE_DEF@[0; 18) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0025_slice_type.txt b/crates/libsyntax2/tests/data/parser/inline/0025_slice_type.txt index 83cf530c3..978530a6a 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0025_slice_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0025_slice_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 15) | 1 | ROOT@[0; 15) |
2 | TYPE_DEF@[0; 14) | 2 | TYPE_DEF@[0; 14) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0026_reference_type;.txt b/crates/libsyntax2/tests/data/parser/inline/0026_reference_type;.txt index 02c5aa26c..ff27ce5dd 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0026_reference_type;.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0026_reference_type;.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 54) | 1 | ROOT@[0; 54) |
2 | TYPE_DEF@[0; 13) | 2 | TYPE_DEF@[0; 13) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0027_placeholder_type.txt b/crates/libsyntax2/tests/data/parser/inline/0027_placeholder_type.txt index 9583c94b6..538e4e69c 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0027_placeholder_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0027_placeholder_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 22) | 1 | ROOT@[0; 22) |
2 | TYPE_DEF@[0; 21) | 2 | TYPE_DEF@[0; 21) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0028_fn_pointer_type.txt b/crates/libsyntax2/tests/data/parser/inline/0028_fn_pointer_type.txt index 1e0526531..4dba83eb5 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0028_fn_pointer_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0028_fn_pointer_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 70) | 1 | ROOT@[0; 70) |
2 | TYPE_DEF@[0; 14) | 2 | TYPE_DEF@[0; 14) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.txt b/crates/libsyntax2/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.txt index 5c83654cc..fa0771ab1 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0029_fn_pointer_type_missing_fn.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 20) | 1 | ROOT@[0; 20) |
2 | TYPE_DEF@[0; 15) | 2 | TYPE_DEF@[0; 15) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0030_fn_pointer_type_with_ret.txt b/crates/libsyntax2/tests/data/parser/inline/0030_fn_pointer_type_with_ret.txt index 5ac307fd0..7d0ecfbd1 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0030_fn_pointer_type_with_ret.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0030_fn_pointer_type_with_ret.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 21) | 1 | ROOT@[0; 21) |
2 | TYPE_DEF@[0; 20) | 2 | TYPE_DEF@[0; 20) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0031_for_type.txt b/crates/libsyntax2/tests/data/parser/inline/0031_for_type.txt index a46356777..41461f2a6 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0031_for_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0031_for_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 29) | 1 | ROOT@[0; 29) |
2 | TYPE_DEF@[0; 28) | 2 | TYPE_DEF@[0; 28) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0032_path_type.txt b/crates/libsyntax2/tests/data/parser/inline/0032_path_type.txt index b07bea075..b0a110a2c 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0032_path_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0032_path_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 71) | 1 | ROOT@[0; 71) |
2 | TYPE_DEF@[0; 13) | 2 | TYPE_DEF@[0; 13) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0034_bind_pat.txt b/crates/libsyntax2/tests/data/parser/inline/0034_bind_pat.txt index d9fd29cca..9adc89b7c 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0034_bind_pat.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0034_bind_pat.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 146) | 1 | ROOT@[0; 146) |
2 | FN_DEF@[0; 145) | 2 | FN_DEF@[0; 145) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0035_ref_pat.txt b/crates/libsyntax2/tests/data/parser/inline/0035_ref_pat.txt index 01187c363..a625637cd 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0035_ref_pat.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0035_ref_pat.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 52) | 1 | ROOT@[0; 52) |
2 | FN_DEF@[0; 51) | 2 | FN_DEF@[0; 51) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0036_placeholder_pat.txt b/crates/libsyntax2/tests/data/parser/inline/0036_placeholder_pat.txt index 4fff927b5..e89ff4e7c 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0036_placeholder_pat.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0036_placeholder_pat.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 26) | 1 | ROOT@[0; 26) |
2 | FN_DEF@[0; 25) | 2 | FN_DEF@[0; 25) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0037_crate_visibility.txt b/crates/libsyntax2/tests/data/parser/inline/0037_crate_visibility.txt index fb6c2d7cf..3b5fbf95d 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0037_crate_visibility.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0037_crate_visibility.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 81) | 1 | ROOT@[0; 81) |
2 | STRUCT_DEF@[0; 20) | 2 | STRUCT_DEF@[0; 20) |
3 | VISIBILITY@[0; 10) | 3 | VISIBILITY@[0; 10) |
4 | PUB_KW@[0; 3) | 4 | PUB_KW@[0; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0038_function_ret_type.txt b/crates/libsyntax2/tests/data/parser/inline/0038_function_ret_type.txt index 73e91856d..0df6c8f51 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0038_function_ret_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0038_function_ret_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 30) | 1 | ROOT@[0; 30) |
2 | FN_DEF@[0; 11) | 2 | FN_DEF@[0; 11) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0039_path_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0039_path_expr.txt index 98b4bebd8..618afc0a9 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0039_path_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0039_path_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 91) | 1 | ROOT@[0; 91) |
2 | FN_DEF@[0; 90) | 2 | FN_DEF@[0; 90) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0040_expr_literals.txt b/crates/libsyntax2/tests/data/parser/inline/0040_expr_literals.txt index 3948c8fdc..8105ee25a 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0040_expr_literals.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0040_expr_literals.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 189) | 1 | ROOT@[0; 189) |
2 | FN_DEF@[0; 188) | 2 | FN_DEF@[0; 188) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0041_type_param_bounds.txt b/crates/libsyntax2/tests/data/parser/inline/0041_type_param_bounds.txt index ea05ad0a6..ef9d1f31e 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0041_type_param_bounds.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0041_type_param_bounds.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 35) | 1 | ROOT@[0; 35) |
2 | STRUCT_DEF@[0; 34) | 2 | STRUCT_DEF@[0; 34) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0042_type_param_default.txt b/crates/libsyntax2/tests/data/parser/inline/0042_type_param_default.txt index 0792dbfc0..a75b7ed0a 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0042_type_param_default.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0042_type_param_default.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 19) | 1 | ROOT@[0; 19) |
2 | STRUCT_DEF@[0; 18) | 2 | STRUCT_DEF@[0; 18) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0043_call_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0043_call_expr.txt index 0dedcc0d1..f8e31045a 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0043_call_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0043_call_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 57) | 1 | ROOT@[0; 57) |
2 | FN_DEF@[0; 56) | 2 | FN_DEF@[0; 56) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0044_ref_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0044_ref_expr.txt index b762f8f18..77f2ca22c 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0044_ref_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0044_ref_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 52) | 1 | ROOT@[0; 52) |
2 | FN_DEF@[0; 51) | 2 | FN_DEF@[0; 51) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0045_block.txt b/crates/libsyntax2/tests/data/parser/inline/0045_block.txt index b2fe68f5d..e6c841f21 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0045_block.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0045_block.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 65) | 1 | ROOT@[0; 65) |
2 | FN_DEF@[0; 9) | 2 | FN_DEF@[0; 9) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0046_default_impl.txt b/crates/libsyntax2/tests/data/parser/inline/0046_default_impl.txt index 12584a528..19fe5ca85 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0046_default_impl.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0046_default_impl.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 20) | 1 | ROOT@[0; 20) |
2 | IMPL_ITEM@[0; 19) | 2 | IMPL_ITEM@[0; 19) |
3 | DEFAULT_KW@[0; 7) | 3 | DEFAULT_KW@[0; 7) |
4 | WHITESPACE@[7; 8) | 4 | WHITESPACE@[7; 8) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0047_impl_item.txt b/crates/libsyntax2/tests/data/parser/inline/0047_impl_item.txt index 0850b299e..6419243e2 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0047_impl_item.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0047_impl_item.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 12) | 1 | ROOT@[0; 12) |
2 | IMPL_ITEM@[0; 11) | 2 | IMPL_ITEM@[0; 11) |
3 | IMPL_KW@[0; 4) | 3 | IMPL_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0048_impl_item_neg.txt b/crates/libsyntax2/tests/data/parser/inline/0048_impl_item_neg.txt index b90a0d133..6739f9c55 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0048_impl_item_neg.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0048_impl_item_neg.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 20) | 1 | ROOT@[0; 20) |
2 | IMPL_ITEM@[0; 19) | 2 | IMPL_ITEM@[0; 19) |
3 | IMPL_KW@[0; 4) | 3 | IMPL_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0049_trait_item_list.txt b/crates/libsyntax2/tests/data/parser/inline/0049_trait_item_list.txt index 92ac51781..e18c166f6 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0049_trait_item_list.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0049_trait_item_list.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 83) | 1 | ROOT@[0; 83) |
2 | IMPL_ITEM@[0; 82) | 2 | IMPL_ITEM@[0; 82) |
3 | IMPL_KW@[0; 4) | 3 | IMPL_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0050_let_stmt;.txt b/crates/libsyntax2/tests/data/parser/inline/0050_let_stmt;.txt index 7f99ecb13..30dc83454 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0050_let_stmt;.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0050_let_stmt;.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 77) | 1 | ROOT@[0; 77) |
2 | FN_DEF@[0; 76) | 2 | FN_DEF@[0; 76) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0051_method_call_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0051_method_call_expr.txt index 25a61e848..530c80fa8 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0051_method_call_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0051_method_call_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 49) | 1 | ROOT@[0; 49) |
2 | FN_DEF@[0; 48) | 2 | FN_DEF@[0; 48) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0052_field_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0052_field_expr.txt index 096ed3211..9086219ca 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0052_field_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0052_field_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 37) | 1 | ROOT@[0; 37) |
2 | FN_DEF@[0; 36) | 2 | FN_DEF@[0; 36) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0053_block_items.txt b/crates/libsyntax2/tests/data/parser/inline/0053_block_items.txt index ff432e1d3..20122d763 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0053_block_items.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0053_block_items.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 21) | 1 | ROOT@[0; 21) |
2 | FN_DEF@[0; 20) | 2 | FN_DEF@[0; 20) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0054_field_pat_list.txt b/crates/libsyntax2/tests/data/parser/inline/0054_field_pat_list.txt index cfe37a15a..4df4ca35b 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0054_field_pat_list.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0054_field_pat_list.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 119) | 1 | ROOT@[0; 119) |
2 | FN_DEF@[0; 118) | 2 | FN_DEF@[0; 118) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0055_self_param.txt b/crates/libsyntax2/tests/data/parser/inline/0055_self_param.txt index 99a9f63ac..f0e47c2dc 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0055_self_param.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0055_self_param.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 128) | 1 | ROOT@[0; 128) |
2 | IMPL_ITEM@[0; 127) | 2 | IMPL_ITEM@[0; 127) |
3 | IMPL_KW@[0; 4) | 3 | IMPL_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0056_trait_item.txt b/crates/libsyntax2/tests/data/parser/inline/0056_trait_item.txt index 5f89a144a..6e9ddcfb4 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0056_trait_item.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0056_trait_item.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 42) | 1 | ROOT@[0; 42) |
2 | TRAIT_DEF@[0; 41) | 2 | TRAIT_DEF@[0; 41) |
3 | TRAIT_KW@[0; 5) | 3 | TRAIT_KW@[0; 5) |
4 | WHITESPACE@[5; 6) | 4 | WHITESPACE@[5; 6) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0057_auto_trait.txt b/crates/libsyntax2/tests/data/parser/inline/0057_auto_trait.txt index ede098260..0303d76bd 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0057_auto_trait.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0057_auto_trait.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 16) | 1 | ROOT@[0; 16) |
2 | TRAIT_DEF@[0; 15) | 2 | TRAIT_DEF@[0; 15) |
3 | AUTO_KW@[0; 4) | 3 | AUTO_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0058_type_arg.txt b/crates/libsyntax2/tests/data/parser/inline/0058_type_arg.txt index 297456ec4..aaf2924ba 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0058_type_arg.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0058_type_arg.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 35) | 1 | ROOT@[0; 35) |
2 | TYPE_DEF@[0; 34) | 2 | TYPE_DEF@[0; 34) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0059_function_where_clause.txt b/crates/libsyntax2/tests/data/parser/inline/0059_function_where_clause.txt index 1eea49e34..dc90bfc28 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0059_function_where_clause.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0059_function_where_clause.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 29) | 1 | ROOT@[0; 29) |
2 | FN_DEF@[0; 28) | 2 | FN_DEF@[0; 28) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0060_function_type_params.txt b/crates/libsyntax2/tests/data/parser/inline/0060_function_type_params.txt index 94987753a..640a84355 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0060_function_type_params.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0060_function_type_params.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 28) | 1 | ROOT@[0; 28) |
2 | FN_DEF@[0; 27) | 2 | FN_DEF@[0; 27) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0061_struct_lit.txt b/crates/libsyntax2/tests/data/parser/inline/0061_struct_lit.txt index 35b5d28b4..cf6e881b2 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0061_struct_lit.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0061_struct_lit.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 86) | 1 | ROOT@[0; 86) |
2 | FN_DEF@[0; 85) | 2 | FN_DEF@[0; 85) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0063_impl_trait_type.txt b/crates/libsyntax2/tests/data/parser/inline/0063_impl_trait_type.txt index aa9981ba6..4d54204f8 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0063_impl_trait_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0063_impl_trait_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 43) | 1 | ROOT@[0; 43) |
2 | TYPE_DEF@[0; 42) | 2 | TYPE_DEF@[0; 42) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0063_lambda_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0063_lambda_expr.txt index 98db37cb6..93f6285ac 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0063_lambda_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0063_lambda_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 74) | 1 | ROOT@[0; 74) |
2 | FN_DEF@[0; 74) | 2 | FN_DEF@[0; 74) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | NAME@[2; 6) | 4 | NAME@[2; 6) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0064_param_list.txt b/crates/libsyntax2/tests/data/parser/inline/0064_param_list.txt index 50c14ceec..de547d699 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0064_param_list.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0064_param_list.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 67) | 1 | ROOT@[0; 67) |
2 | FN_DEF@[0; 9) | 2 | FN_DEF@[0; 9) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0065_if_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0065_if_expr.txt index c353a330a..290b11d33 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0065_if_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0065_if_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 107) | 1 | ROOT@[0; 107) |
2 | FN_DEF@[0; 106) | 2 | FN_DEF@[0; 106) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.txt index 0e95f84c4..6b34bc302 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0066_lambda_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 79) | 1 | ROOT@[0; 79) |
2 | FN_DEF@[0; 78) | 2 | FN_DEF@[0; 78) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0067_block_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0067_block_expr.txt index e1ad36165..94104e746 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0067_block_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0067_block_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 36) | 1 | ROOT@[0; 36) |
2 | FN_DEF@[0; 35) | 2 | FN_DEF@[0; 35) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0068_pub_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0068_pub_expr.txt index 7f475745d..5f179c3ca 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0068_pub_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0068_pub_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 29) | 1 | ROOT@[0; 29) |
2 | FN_DEF@[0; 20) | 2 | FN_DEF@[0; 20) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0068_return_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0068_return_expr.txt index 8832d2cff..ead1ada96 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0068_return_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0068_return_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 40) | 1 | ROOT@[0; 40) |
2 | FN_DEF@[0; 39) | 2 | FN_DEF@[0; 39) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0069_match_arm.txt b/crates/libsyntax2/tests/data/parser/inline/0069_match_arm.txt index 1fffec7b1..013d1716a 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0069_match_arm.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0069_match_arm.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 78) | 1 | ROOT@[0; 78) |
2 | FN_DEF@[0; 77) | 2 | FN_DEF@[0; 77) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0070_match_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0070_match_expr.txt index 2ffe99c0e..d7740e3cc 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0070_match_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0070_match_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 47) | 1 | ROOT@[0; 47) |
2 | FN_DEF@[0; 46) | 2 | FN_DEF@[0; 46) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0071_tuple_pat_fields.txt b/crates/libsyntax2/tests/data/parser/inline/0071_tuple_pat_fields.txt index dad7d3e87..734e0726c 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0071_tuple_pat_fields.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0071_tuple_pat_fields.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 97) | 1 | ROOT@[0; 97) |
2 | FN_DEF@[0; 96) | 2 | FN_DEF@[0; 96) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0072_path_part.txt b/crates/libsyntax2/tests/data/parser/inline/0072_path_part.txt index ae5296580..1a8d1546d 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0072_path_part.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0072_path_part.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 103) | 1 | ROOT@[0; 103) |
2 | FN_DEF@[0; 102) | 2 | FN_DEF@[0; 102) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0073_impl_item_list.txt b/crates/libsyntax2/tests/data/parser/inline/0073_impl_item_list.txt index e0d5e0107..1f524f34a 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0073_impl_item_list.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0073_impl_item_list.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 89) | 1 | ROOT@[0; 89) |
2 | IMPL_ITEM@[0; 88) | 2 | IMPL_ITEM@[0; 88) |
3 | IMPL_KW@[0; 4) | 3 | IMPL_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0074_unary_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0074_unary_expr.txt index 3daf1d777..4d77c8c11 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0074_unary_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0074_unary_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 44) | 1 | ROOT@[0; 44) |
2 | FN_DEF@[0; 43) | 2 | FN_DEF@[0; 43) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0075_try_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0075_try_expr.txt index 104847c82..b80235146 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0075_try_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0075_try_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 21) | 1 | ROOT@[0; 21) |
2 | FN_DEF@[0; 20) | 2 | FN_DEF@[0; 20) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0076_cond.txt b/crates/libsyntax2/tests/data/parser/inline/0076_cond.txt index 6f26b7c0f..547d66fb3 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0076_cond.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0076_cond.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 38) | 1 | ROOT@[0; 38) |
2 | FN_DEF@[0; 37) | 2 | FN_DEF@[0; 37) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0077_while_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0077_while_expr.txt index 399dbd278..0ce157710 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0077_while_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0077_while_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 70) | 1 | ROOT@[0; 70) |
2 | FN_DEF@[0; 69) | 2 | FN_DEF@[0; 69) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0078_mod_contents.txt b/crates/libsyntax2/tests/data/parser/inline/0078_mod_contents.txt index 9324f2278..57b2b9372 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0078_mod_contents.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0078_mod_contents.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 70) | 1 | ROOT@[0; 70) |
2 | FN_DEF@[0; 11) | 2 | FN_DEF@[0; 11) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0079_cast_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0079_cast_expr.txt index 817f7b36e..6d57078b3 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0079_cast_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0079_cast_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 28) | 1 | ROOT@[0; 28) |
2 | FN_DEF@[0; 27) | 2 | FN_DEF@[0; 27) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0080_tuple_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0080_tuple_expr.txt index 5e1dd1a62..cf541411f 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0080_tuple_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0080_tuple_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 40) | 1 | ROOT@[0; 40) |
2 | FN_DEF@[0; 39) | 2 | FN_DEF@[0; 39) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0081_index_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0081_index_expr.txt index 4ebd0e172..4624aab23 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0081_index_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0081_index_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 26) | 1 | ROOT@[0; 26) |
2 | FN_DEF@[0; 25) | 2 | FN_DEF@[0; 25) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0082_tuple_pat.txt b/crates/libsyntax2/tests/data/parser/inline/0082_tuple_pat.txt index c498f4fc5..2d68a5ff2 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0082_tuple_pat.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0082_tuple_pat.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 39) | 1 | ROOT@[0; 39) |
2 | FN_DEF@[0; 38) | 2 | FN_DEF@[0; 38) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0083_postfix_range.txt b/crates/libsyntax2/tests/data/parser/inline/0083_postfix_range.txt index b4794e3e3..475251ea7 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0083_postfix_range.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0083_postfix_range.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 26) | 1 | ROOT@[0; 26) |
2 | FN_DEF@[0; 25) | 2 | FN_DEF@[0; 25) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0084_loop_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0084_loop_expr.txt index ce0dfe7a4..5321fade9 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0084_loop_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0084_loop_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 26) | 1 | ROOT@[0; 26) |
2 | FN_DEF@[0; 25) | 2 | FN_DEF@[0; 25) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0085_for_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0085_for_expr.txt index 9fb0c63c2..7ddf8122f 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0085_for_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0085_for_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 33) | 1 | ROOT@[0; 33) |
2 | FN_DEF@[0; 32) | 2 | FN_DEF@[0; 32) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0085_match_arms_commas.txt b/crates/libsyntax2/tests/data/parser/inline/0085_match_arms_commas.txt index 361c3d6ac..560931645 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0085_match_arms_commas.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0085_match_arms_commas.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 83) | 1 | ROOT@[0; 83) |
2 | FN_DEF@[0; 82) | 2 | FN_DEF@[0; 82) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0086_array_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0086_array_expr.txt index b954f575d..dcdeff609 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0086_array_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0086_array_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 55) | 1 | ROOT@[0; 55) |
2 | FN_DEF@[0; 54) | 2 | FN_DEF@[0; 54) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0086_no_semi_after_block.txt b/crates/libsyntax2/tests/data/parser/inline/0086_no_semi_after_block.txt index 34ec269e6..e3164f9cc 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0086_no_semi_after_block.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0086_no_semi_after_block.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 107) | 1 | ROOT@[0; 107) |
2 | FN_DEF@[0; 106) | 2 | FN_DEF@[0; 106) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt b/crates/libsyntax2/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt index 1451cdfbc..91edf3f84 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0087_stmt_postfix_expr_ambiguity.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 84) | 1 | ROOT@[0; 84) |
2 | FN_DEF@[0; 83) | 2 | FN_DEF@[0; 83) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt b/crates/libsyntax2/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt index 71e55f570..ff1298acb 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0088_stmt_bin_expr_ambiguity.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 46) | 1 | ROOT@[0; 46) |
2 | FN_DEF@[0; 45) | 2 | FN_DEF@[0; 45) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0089_slice_pat.txt b/crates/libsyntax2/tests/data/parser/inline/0089_slice_pat.txt index b092a4ac4..99e8dd427 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0089_slice_pat.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0089_slice_pat.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 39) | 1 | ROOT@[0; 39) |
2 | FN_DEF@[0; 38) | 2 | FN_DEF@[0; 38) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0091_fn_decl.txt b/crates/libsyntax2/tests/data/parser/inline/0091_fn_decl.txt index 6b6d70150..c35bc8428 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0091_fn_decl.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0091_fn_decl.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 22) | 1 | ROOT@[0; 22) |
2 | TRAIT_DEF@[0; 21) | 2 | TRAIT_DEF@[0; 21) |
3 | TRAIT_KW@[0; 5) | 3 | TRAIT_KW@[0; 5) |
4 | WHITESPACE@[5; 6) | 4 | WHITESPACE@[5; 6) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0092_literal_pattern.txt b/crates/libsyntax2/tests/data/parser/inline/0092_literal_pattern.txt index e472f1d8f..3128bfd7d 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0092_literal_pattern.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0092_literal_pattern.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 95) | 1 | ROOT@[0; 95) |
2 | FN_DEF@[0; 94) | 2 | FN_DEF@[0; 94) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0093_path_fn_trait_args.txt b/crates/libsyntax2/tests/data/parser/inline/0093_path_fn_trait_args.txt index a98702f8f..1b1a8a9e2 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0093_path_fn_trait_args.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0093_path_fn_trait_args.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 32) | 1 | ROOT@[0; 32) |
2 | TYPE_DEF@[0; 31) | 2 | TYPE_DEF@[0; 31) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0094_range_pat.txt b/crates/libsyntax2/tests/data/parser/inline/0094_range_pat.txt index 4a008e2f7..4f14d5431 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0094_range_pat.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0094_range_pat.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 47) | 1 | ROOT@[0; 47) |
2 | FN_DEF@[0; 46) | 2 | FN_DEF@[0; 46) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0095_path_type_with_bounds.txt b/crates/libsyntax2/tests/data/parser/inline/0095_path_type_with_bounds.txt index 0e3041e38..0703d1da2 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0095_path_type_with_bounds.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0095_path_type_with_bounds.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 27) | 1 | ROOT@[0; 27) |
2 | FN_DEF@[0; 26) | 2 | FN_DEF@[0; 26) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0096_value_parameters_no_patterns.txt b/crates/libsyntax2/tests/data/parser/inline/0096_value_parameters_no_patterns.txt index 402770112..3c8352067 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0096_value_parameters_no_patterns.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0096_value_parameters_no_patterns.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 54) | 1 | ROOT@[0; 54) |
2 | TYPE_DEF@[0; 53) | 2 | TYPE_DEF@[0; 53) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0097_param_list_opt_patterns.txt b/crates/libsyntax2/tests/data/parser/inline/0097_param_list_opt_patterns.txt index 5f296504d..289a899a9 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0097_param_list_opt_patterns.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0097_param_list_opt_patterns.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 35) | 1 | ROOT@[0; 35) |
2 | FN_DEF@[0; 34) | 2 | FN_DEF@[0; 34) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0098_where_clause.txt b/crates/libsyntax2/tests/data/parser/inline/0098_where_clause.txt index 983545ca2..7642c0704 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0098_where_clause.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0098_where_clause.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 87) | 1 | ROOT@[0; 87) |
2 | FN_DEF@[0; 86) | 2 | FN_DEF@[0; 86) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0099_crate_keyword_vis.txt b/crates/libsyntax2/tests/data/parser/inline/0099_crate_keyword_vis.txt index 39b9409fe..96a4e9162 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0099_crate_keyword_vis.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0099_crate_keyword_vis.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 20) | 1 | ROOT@[0; 20) |
2 | FN_DEF@[0; 19) | 2 | FN_DEF@[0; 19) |
3 | VISIBILITY@[0; 5) | 3 | VISIBILITY@[0; 5) |
4 | CRATE_KW@[0; 5) | 4 | CRATE_KW@[0; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.txt b/crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.txt index 7cf0f3aba..ca53c0b52 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0100_dyn_trait_type.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 42) | 1 | ROOT@[0; 42) |
2 | TYPE_DEF@[0; 41) | 2 | TYPE_DEF@[0; 41) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.txt b/crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.txt index 3be8ce9de..99516bf15 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0101_qual_paths.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 71) | 1 | ROOT@[0; 71) |
2 | TYPE_DEF@[0; 26) | 2 | TYPE_DEF@[0; 26) |
3 | TYPE_KW@[0; 4) | 3 | TYPE_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0102_full_range_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0102_full_range_expr.txt index 7ffa0e0f7..19f77fb73 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0102_full_range_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0102_full_range_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 21) | 1 | ROOT@[0; 21) |
2 | FN_DEF@[0; 20) | 2 | FN_DEF@[0; 20) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0103_field_attrs.txt b/crates/libsyntax2/tests/data/parser/inline/0103_field_attrs.txt index 0834a408f..420712e89 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0103_field_attrs.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0103_field_attrs.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 64) | 1 | ROOT@[0; 64) |
2 | STRUCT_DEF@[0; 63) | 2 | STRUCT_DEF@[0; 63) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0104_arb_self_types.txt b/crates/libsyntax2/tests/data/parser/inline/0104_arb_self_types.txt index da5c0100b..9a306921e 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0104_arb_self_types.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0104_arb_self_types.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 69) | 1 | ROOT@[0; 69) |
2 | IMPL_ITEM@[0; 68) | 2 | IMPL_ITEM@[0; 68) |
3 | IMPL_KW@[0; 4) | 3 | IMPL_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0105_continue_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0105_continue_expr.txt index 7185ee1b4..1c78704fa 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0105_continue_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0105_continue_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 69) | 1 | ROOT@[0; 69) |
2 | FN_DEF@[0; 68) | 2 | FN_DEF@[0; 68) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0106_break_expr.txt b/crates/libsyntax2/tests/data/parser/inline/0106_break_expr.txt index 0b82c468f..92b6b8bea 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0106_break_expr.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0106_break_expr.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 102) | 1 | ROOT@[0; 102) |
2 | FN_DEF@[0; 101) | 2 | FN_DEF@[0; 101) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/inline/0107_label.txt b/crates/libsyntax2/tests/data/parser/inline/0107_label.txt index 5761e80ea..ccf22d8df 100644 --- a/crates/libsyntax2/tests/data/parser/inline/0107_label.txt +++ b/crates/libsyntax2/tests/data/parser/inline/0107_label.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 74) | 1 | ROOT@[0; 74) |
2 | FN_DEF@[0; 73) | 2 | FN_DEF@[0; 73) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0000_empty.txt b/crates/libsyntax2/tests/data/parser/ok/0000_empty.txt index 54be3e7bc..9f505ee96 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0000_empty.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0000_empty.txt | |||
@@ -1 +1 @@ | |||
FILE@[0; 0) | ROOT@[0; 0) | ||
diff --git a/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt b/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt index bc74d52b2..90df3416a 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0001_struct_item.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 32) | 1 | ROOT@[0; 32) |
2 | STRUCT_DEF@[0; 31) | 2 | STRUCT_DEF@[0; 31) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.txt b/crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.txt index 69da10900..0b65387ef 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0002_struct_item_field.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 25) | 1 | ROOT@[0; 25) |
2 | STRUCT_DEF@[0; 25) | 2 | STRUCT_DEF@[0; 25) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.txt b/crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.txt index 33055cf3d..bb8874ead 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0004_file_shebang.txt | |||
@@ -1,2 +1,2 @@ | |||
1 | FILE@[0; 20) | 1 | ROOT@[0; 20) |
2 | SHEBANG@[0; 20) | 2 | SHEBANG@[0; 20) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0005_fn_item.txt b/crates/libsyntax2/tests/data/parser/ok/0005_fn_item.txt index 2dc8c85d6..8ed92f2a4 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0005_fn_item.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0005_fn_item.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 13) | 1 | ROOT@[0; 13) |
2 | FN_DEF@[0; 12) | 2 | FN_DEF@[0; 12) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.txt b/crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.txt index d5a170144..2b64c497f 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0006_inner_attributes.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 236) | 1 | ROOT@[0; 236) |
2 | ATTR@[0; 8) | 2 | ATTR@[0; 8) |
3 | POUND@[0; 1) | 3 | POUND@[0; 1) |
4 | EXCL@[1; 2) | 4 | EXCL@[1; 2) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.txt b/crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.txt index 533af33c4..12193397e 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0007_extern_crate.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 43) | 1 | ROOT@[0; 43) |
2 | EXTERN_CRATE_ITEM@[0; 17) | 2 | EXTERN_CRATE_ITEM@[0; 17) |
3 | EXTERN_KW@[0; 6) | 3 | EXTERN_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0008_mod_item.txt b/crates/libsyntax2/tests/data/parser/ok/0008_mod_item.txt index a2b4f6495..c790f8431 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0008_mod_item.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0008_mod_item.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 118) | 1 | ROOT@[0; 118) |
2 | MODULE@[0; 6) | 2 | MODULE@[0; 6) |
3 | MOD_KW@[0; 3) | 3 | MOD_KW@[0; 3) |
4 | WHITESPACE@[3; 4) | 4 | WHITESPACE@[3; 4) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0009_use_item.txt b/crates/libsyntax2/tests/data/parser/ok/0009_use_item.txt index 8f850cd1c..4bcd15357 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0009_use_item.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0009_use_item.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 19) | 1 | ROOT@[0; 19) |
2 | USE_ITEM@[0; 8) | 2 | USE_ITEM@[0; 8) |
3 | USE_KW@[0; 3) | 3 | USE_KW@[0; 3) |
4 | WHITESPACE@[3; 4) | 4 | WHITESPACE@[3; 4) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.txt b/crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.txt index 03ec342c2..f76ea1a35 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0010_use_path_segments.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 40) | 1 | ROOT@[0; 40) |
2 | USE_ITEM@[0; 20) | 2 | USE_ITEM@[0; 20) |
3 | USE_KW@[0; 3) | 3 | USE_KW@[0; 3) |
4 | WHITESPACE@[3; 4) | 4 | WHITESPACE@[3; 4) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.txt b/crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.txt index af4b55aed..203a07193 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0011_outer_attribute.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 35) | 1 | ROOT@[0; 35) |
2 | FN_DEF@[0; 34) | 2 | FN_DEF@[0; 34) |
3 | ATTR@[0; 12) | 3 | ATTR@[0; 12) |
4 | POUND@[0; 1) | 4 | POUND@[0; 1) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0012_visibility.txt b/crates/libsyntax2/tests/data/parser/ok/0012_visibility.txt index 940721f8b..66901af54 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0012_visibility.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0012_visibility.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 98) | 1 | ROOT@[0; 98) |
2 | FN_DEF@[0; 9) | 2 | FN_DEF@[0; 9) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.txt b/crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.txt index 5ed27ca37..95be4f75d 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0013_use_path_self_super.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 65) | 1 | ROOT@[0; 65) |
2 | USE_ITEM@[0; 14) | 2 | USE_ITEM@[0; 14) |
3 | USE_KW@[0; 3) | 3 | USE_KW@[0; 3) |
4 | WHITESPACE@[3; 4) | 4 | WHITESPACE@[3; 4) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0014_use_tree.txt b/crates/libsyntax2/tests/data/parser/ok/0014_use_tree.txt index 86bafc853..4aa539159 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0014_use_tree.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0014_use_tree.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 81) | 1 | ROOT@[0; 81) |
2 | USE_ITEM@[0; 6) | 2 | USE_ITEM@[0; 6) |
3 | USE_KW@[0; 3) | 3 | USE_KW@[0; 3) |
4 | WHITESPACE@[3; 4) | 4 | WHITESPACE@[3; 4) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0015_use_tree.txt b/crates/libsyntax2/tests/data/parser/ok/0015_use_tree.txt index 2e39766cf..aa4ef3715 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0015_use_tree.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0015_use_tree.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 55) | 1 | ROOT@[0; 55) |
2 | USE_ITEM@[0; 15) | 2 | USE_ITEM@[0; 15) |
3 | USE_KW@[0; 3) | 3 | USE_KW@[0; 3) |
4 | WHITESPACE@[3; 4) | 4 | WHITESPACE@[3; 4) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.txt b/crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.txt index 5bf3a1794..349481157 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0016_struct_flavors.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 97) | 1 | ROOT@[0; 97) |
2 | STRUCT_DEF@[0; 9) | 2 | STRUCT_DEF@[0; 9) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.txt b/crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.txt index 02e64c0d5..8cfd77256 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0017_attr_trailing_comma.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 23) | 1 | ROOT@[0; 23) |
2 | FN_DEF@[0; 22) | 2 | FN_DEF@[0; 22) |
3 | ATTR@[0; 10) | 3 | ATTR@[0; 10) |
4 | POUND@[0; 1) | 4 | POUND@[0; 1) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.txt b/crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.txt index fb61096f6..a98e823f6 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0018_struct_type_params.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 290) | 1 | ROOT@[0; 290) |
2 | STRUCT_DEF@[0; 13) | 2 | STRUCT_DEF@[0; 13) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0019_enums.txt b/crates/libsyntax2/tests/data/parser/ok/0019_enums.txt index 0eca75cd8..6333e47c5 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0019_enums.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0019_enums.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 182) | 1 | ROOT@[0; 182) |
2 | ENUM_DEF@[0; 11) | 2 | ENUM_DEF@[0; 11) |
3 | ENUM_KW@[0; 4) | 3 | ENUM_KW@[0; 4) |
4 | WHITESPACE@[4; 5) | 4 | WHITESPACE@[4; 5) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.txt b/crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.txt index 62632d19a..eb01dc8f1 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0020_type_param_bounds.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 200) | 1 | ROOT@[0; 200) |
2 | STRUCT_DEF@[0; 12) | 2 | STRUCT_DEF@[0; 12) |
3 | STRUCT_KW@[0; 6) | 3 | STRUCT_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.txt b/crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.txt index c3f377857..5ceef46e0 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0021_extern_fn.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 71) | 1 | ROOT@[0; 71) |
2 | FN_DEF@[0; 19) | 2 | FN_DEF@[0; 19) |
3 | ABI@[0; 6) | 3 | ABI@[0; 6) |
4 | EXTERN_KW@[0; 6) | 4 | EXTERN_KW@[0; 6) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.txt b/crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.txt index 075055bfe..2099e2433 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0022_empty_extern_block.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 27) | 1 | ROOT@[0; 27) |
2 | EXTERN_BLOCK@[0; 10) | 2 | EXTERN_BLOCK@[0; 10) |
3 | ABI@[0; 6) | 3 | ABI@[0; 6) |
4 | EXTERN_KW@[0; 6) | 4 | EXTERN_KW@[0; 6) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0023_static_items.txt b/crates/libsyntax2/tests/data/parser/ok/0023_static_items.txt index dfe957fd8..5c1a3a7a5 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0023_static_items.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0023_static_items.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 47) | 1 | ROOT@[0; 47) |
2 | STATIC_DEF@[0; 20) | 2 | STATIC_DEF@[0; 20) |
3 | STATIC_KW@[0; 6) | 3 | STATIC_KW@[0; 6) |
4 | WHITESPACE@[6; 7) | 4 | WHITESPACE@[6; 7) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0024_const_item.txt b/crates/libsyntax2/tests/data/parser/ok/0024_const_item.txt index 413bb3084..d0e5842da 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0024_const_item.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0024_const_item.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 46) | 1 | ROOT@[0; 46) |
2 | CONST_DEF@[0; 20) | 2 | CONST_DEF@[0; 20) |
3 | CONST_KW@[0; 5) | 3 | CONST_KW@[0; 5) |
4 | WHITESPACE@[5; 6) | 4 | WHITESPACE@[5; 6) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.txt b/crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.txt index 088c6b54c..363b3576e 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0025_extern_fn_in_block.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 35) | 1 | ROOT@[0; 35) |
2 | FN_DEF@[0; 34) | 2 | FN_DEF@[0; 34) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.txt b/crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.txt index 246ea583f..d45fc2559 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0026_const_fn_in_block.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 34) | 1 | ROOT@[0; 34) |
2 | FN_DEF@[0; 33) | 2 | FN_DEF@[0; 33) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.txt b/crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.txt index 03acfd891..5a39fa98c 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0027_unsafe_fn_in_block.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 53) | 1 | ROOT@[0; 53) |
2 | FN_DEF@[0; 52) | 2 | FN_DEF@[0; 52) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.txt b/crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.txt index aa1fa0a81..27efd180f 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0028_operator_binding_power.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 248) | 1 | ROOT@[0; 248) |
2 | FN_DEF@[0; 247) | 2 | FN_DEF@[0; 247) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0029_range_forms.txt b/crates/libsyntax2/tests/data/parser/ok/0029_range_forms.txt index 28fd89ca4..6d6d2f4d0 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0029_range_forms.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0029_range_forms.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 79) | 1 | ROOT@[0; 79) |
2 | FN_DEF@[0; 78) | 2 | FN_DEF@[0; 78) |
3 | FN_KW@[0; 2) | 3 | FN_KW@[0; 2) |
4 | WHITESPACE@[2; 3) | 4 | WHITESPACE@[2; 3) |
diff --git a/crates/libsyntax2/tests/data/parser/ok/0030_traits.txt b/crates/libsyntax2/tests/data/parser/ok/0030_traits.txt index ab87864fc..ddd666407 100644 --- a/crates/libsyntax2/tests/data/parser/ok/0030_traits.txt +++ b/crates/libsyntax2/tests/data/parser/ok/0030_traits.txt | |||
@@ -1,4 +1,4 @@ | |||
1 | FILE@[0; 164) | 1 | ROOT@[0; 164) |
2 | TRAIT_DEF@[0; 66) | 2 | TRAIT_DEF@[0; 66) |
3 | VISIBILITY@[0; 3) | 3 | VISIBILITY@[0; 3) |
4 | PUB_KW@[0; 3) | 4 | PUB_KW@[0; 3) |