aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r--crates/ra_syntax/src/ast.rs2
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs42
-rw-r--r--crates/ra_syntax/src/ast/node_ext.rs4
-rw-r--r--crates/ra_syntax/src/parsing/text_tree_sink.rs4
-rw-r--r--crates/ra_syntax/test_data/parser/err/0000_struct_field_missing_comma.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/err/0006_named_field_recovery.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/err/0011_extern_struct.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/err/0013_invalid_type.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/err/0022_bad_exprs.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0007_type_param_bounds.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0022_crate_visibility.rast8
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.rast10
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0090_type_param_default.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.rast4
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0147_const_param.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0001_struct_item.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0002_struct_item_field.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0008_mod_item.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0016_struct_flavors.rast10
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0018_struct_type_params.rast30
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0020_type_param_bounds.rast20
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0040_raw_struct_item_field.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0042_ufcs_call_list.rast2
-rw-r--r--crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.rast2
33 files changed, 92 insertions, 92 deletions
diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs
index 452e67c70..b69b6e85e 100644
--- a/crates/ra_syntax/src/ast.rs
+++ b/crates/ra_syntax/src/ast.rs
@@ -235,7 +235,7 @@ fn test_comments_preserve_trailing_whitespace() {
235 ) 235 )
236 .ok() 236 .ok()
237 .unwrap(); 237 .unwrap();
238 let def = file.syntax().descendants().find_map(StructDef::cast).unwrap(); 238 let def = file.syntax().descendants().find_map(Struct::cast).unwrap();
239 assert_eq!( 239 assert_eq!(
240 "Representation of a Realm. \nIn the specification these are called Realm Records.", 240 "Representation of a Realm. \nIn the specification these are called Realm Records.",
241 def.doc_comment_text().unwrap() 241 def.doc_comment_text().unwrap()
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index d153e8528..0fd3d4f1b 100644
--- a/crates/ra_syntax/src/ast/generated/nodes.rs
+++ b/crates/ra_syntax/src/ast/generated/nodes.rs
@@ -155,14 +155,14 @@ impl StaticDef {
155 pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![;]) } 155 pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![;]) }
156} 156}
157#[derive(Debug, Clone, PartialEq, Eq, Hash)] 157#[derive(Debug, Clone, PartialEq, Eq, Hash)]
158pub struct StructDef { 158pub struct Struct {
159 pub(crate) syntax: SyntaxNode, 159 pub(crate) syntax: SyntaxNode,
160} 160}
161impl ast::AttrsOwner for StructDef {} 161impl ast::AttrsOwner for Struct {}
162impl ast::NameOwner for StructDef {} 162impl ast::NameOwner for Struct {}
163impl ast::VisibilityOwner for StructDef {} 163impl ast::VisibilityOwner for Struct {}
164impl ast::GenericParamsOwner for StructDef {} 164impl ast::GenericParamsOwner for Struct {}
165impl StructDef { 165impl Struct {
166 pub fn struct_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![struct]) } 166 pub fn struct_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![struct]) }
167 pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![;]) } 167 pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![;]) }
168 pub fn field_list(&self) -> Option<FieldList> { support::child(&self.syntax) } 168 pub fn field_list(&self) -> Option<FieldList> { support::child(&self.syntax) }
@@ -1281,7 +1281,7 @@ pub enum Item {
1281 MacroCall(MacroCall), 1281 MacroCall(MacroCall),
1282 Module(Module), 1282 Module(Module),
1283 StaticDef(StaticDef), 1283 StaticDef(StaticDef),
1284 StructDef(StructDef), 1284 Struct(Struct),
1285 TraitDef(TraitDef), 1285 TraitDef(TraitDef),
1286 TypeAlias(TypeAlias), 1286 TypeAlias(TypeAlias),
1287 Union(Union), 1287 Union(Union),
@@ -1391,7 +1391,7 @@ impl ast::NameOwner for ExternItem {}
1391impl ast::VisibilityOwner for ExternItem {} 1391impl ast::VisibilityOwner for ExternItem {}
1392#[derive(Debug, Clone, PartialEq, Eq, Hash)] 1392#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1393pub enum AdtDef { 1393pub enum AdtDef {
1394 StructDef(StructDef), 1394 Struct(Struct),
1395 EnumDef(EnumDef), 1395 EnumDef(EnumDef),
1396 Union(Union), 1396 Union(Union),
1397} 1397}
@@ -1520,8 +1520,8 @@ impl AstNode for StaticDef {
1520 } 1520 }
1521 fn syntax(&self) -> &SyntaxNode { &self.syntax } 1521 fn syntax(&self) -> &SyntaxNode { &self.syntax }
1522} 1522}
1523impl AstNode for StructDef { 1523impl AstNode for Struct {
1524 fn can_cast(kind: SyntaxKind) -> bool { kind == STRUCT_DEF } 1524 fn can_cast(kind: SyntaxKind) -> bool { kind == STRUCT }
1525 fn cast(syntax: SyntaxNode) -> Option<Self> { 1525 fn cast(syntax: SyntaxNode) -> Option<Self> {
1526 if Self::can_cast(syntax.kind()) { 1526 if Self::can_cast(syntax.kind()) {
1527 Some(Self { syntax }) 1527 Some(Self { syntax })
@@ -2801,8 +2801,8 @@ impl From<Module> for Item {
2801impl From<StaticDef> for Item { 2801impl From<StaticDef> for Item {
2802 fn from(node: StaticDef) -> Item { Item::StaticDef(node) } 2802 fn from(node: StaticDef) -> Item { Item::StaticDef(node) }
2803} 2803}
2804impl From<StructDef> for Item { 2804impl From<Struct> for Item {
2805 fn from(node: StructDef) -> Item { Item::StructDef(node) } 2805 fn from(node: Struct) -> Item { Item::Struct(node) }
2806} 2806}
2807impl From<TraitDef> for Item { 2807impl From<TraitDef> for Item {
2808 fn from(node: TraitDef) -> Item { Item::TraitDef(node) } 2808 fn from(node: TraitDef) -> Item { Item::TraitDef(node) }
@@ -2820,7 +2820,7 @@ impl AstNode for Item {
2820 fn can_cast(kind: SyntaxKind) -> bool { 2820 fn can_cast(kind: SyntaxKind) -> bool {
2821 match kind { 2821 match kind {
2822 CONST_DEF | ENUM_DEF | EXTERN_BLOCK | EXTERN_CRATE | FN | IMPL_DEF | MACRO_CALL 2822 CONST_DEF | ENUM_DEF | EXTERN_BLOCK | EXTERN_CRATE | FN | IMPL_DEF | MACRO_CALL
2823 | MODULE | STATIC_DEF | STRUCT_DEF | TRAIT_DEF | TYPE_ALIAS | UNION | USE => true, 2823 | MODULE | STATIC_DEF | STRUCT | TRAIT_DEF | TYPE_ALIAS | UNION | USE => true,
2824 _ => false, 2824 _ => false,
2825 } 2825 }
2826 } 2826 }
@@ -2835,7 +2835,7 @@ impl AstNode for Item {
2835 MACRO_CALL => Item::MacroCall(MacroCall { syntax }), 2835 MACRO_CALL => Item::MacroCall(MacroCall { syntax }),
2836 MODULE => Item::Module(Module { syntax }), 2836 MODULE => Item::Module(Module { syntax }),
2837 STATIC_DEF => Item::StaticDef(StaticDef { syntax }), 2837 STATIC_DEF => Item::StaticDef(StaticDef { syntax }),
2838 STRUCT_DEF => Item::StructDef(StructDef { syntax }), 2838 STRUCT => Item::Struct(Struct { syntax }),
2839 TRAIT_DEF => Item::TraitDef(TraitDef { syntax }), 2839 TRAIT_DEF => Item::TraitDef(TraitDef { syntax }),
2840 TYPE_ALIAS => Item::TypeAlias(TypeAlias { syntax }), 2840 TYPE_ALIAS => Item::TypeAlias(TypeAlias { syntax }),
2841 UNION => Item::Union(Union { syntax }), 2841 UNION => Item::Union(Union { syntax }),
@@ -2855,7 +2855,7 @@ impl AstNode for Item {
2855 Item::MacroCall(it) => &it.syntax, 2855 Item::MacroCall(it) => &it.syntax,
2856 Item::Module(it) => &it.syntax, 2856 Item::Module(it) => &it.syntax,
2857 Item::StaticDef(it) => &it.syntax, 2857 Item::StaticDef(it) => &it.syntax,
2858 Item::StructDef(it) => &it.syntax, 2858 Item::Struct(it) => &it.syntax,
2859 Item::TraitDef(it) => &it.syntax, 2859 Item::TraitDef(it) => &it.syntax,
2860 Item::TypeAlias(it) => &it.syntax, 2860 Item::TypeAlias(it) => &it.syntax,
2861 Item::Union(it) => &it.syntax, 2861 Item::Union(it) => &it.syntax,
@@ -3372,8 +3372,8 @@ impl AstNode for ExternItem {
3372 } 3372 }
3373 } 3373 }
3374} 3374}
3375impl From<StructDef> for AdtDef { 3375impl From<Struct> for AdtDef {
3376 fn from(node: StructDef) -> AdtDef { AdtDef::StructDef(node) } 3376 fn from(node: Struct) -> AdtDef { AdtDef::Struct(node) }
3377} 3377}
3378impl From<EnumDef> for AdtDef { 3378impl From<EnumDef> for AdtDef {
3379 fn from(node: EnumDef) -> AdtDef { AdtDef::EnumDef(node) } 3379 fn from(node: EnumDef) -> AdtDef { AdtDef::EnumDef(node) }
@@ -3384,13 +3384,13 @@ impl From<Union> for AdtDef {
3384impl AstNode for AdtDef { 3384impl AstNode for AdtDef {
3385 fn can_cast(kind: SyntaxKind) -> bool { 3385 fn can_cast(kind: SyntaxKind) -> bool {
3386 match kind { 3386 match kind {
3387 STRUCT_DEF | ENUM_DEF | UNION => true, 3387 STRUCT | ENUM_DEF | UNION => true,
3388 _ => false, 3388 _ => false,
3389 } 3389 }
3390 } 3390 }
3391 fn cast(syntax: SyntaxNode) -> Option<Self> { 3391 fn cast(syntax: SyntaxNode) -> Option<Self> {
3392 let res = match syntax.kind() { 3392 let res = match syntax.kind() {
3393 STRUCT_DEF => AdtDef::StructDef(StructDef { syntax }), 3393 STRUCT => AdtDef::Struct(Struct { syntax }),
3394 ENUM_DEF => AdtDef::EnumDef(EnumDef { syntax }), 3394 ENUM_DEF => AdtDef::EnumDef(EnumDef { syntax }),
3395 UNION => AdtDef::Union(Union { syntax }), 3395 UNION => AdtDef::Union(Union { syntax }),
3396 _ => return None, 3396 _ => return None,
@@ -3399,7 +3399,7 @@ impl AstNode for AdtDef {
3399 } 3399 }
3400 fn syntax(&self) -> &SyntaxNode { 3400 fn syntax(&self) -> &SyntaxNode {
3401 match self { 3401 match self {
3402 AdtDef::StructDef(it) => &it.syntax, 3402 AdtDef::Struct(it) => &it.syntax,
3403 AdtDef::EnumDef(it) => &it.syntax, 3403 AdtDef::EnumDef(it) => &it.syntax,
3404 AdtDef::Union(it) => &it.syntax, 3404 AdtDef::Union(it) => &it.syntax,
3405 } 3405 }
@@ -3510,7 +3510,7 @@ impl std::fmt::Display for StaticDef {
3510 std::fmt::Display::fmt(self.syntax(), f) 3510 std::fmt::Display::fmt(self.syntax(), f)
3511 } 3511 }
3512} 3512}
3513impl std::fmt::Display for StructDef { 3513impl std::fmt::Display for Struct {
3514 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { 3514 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
3515 std::fmt::Display::fmt(self.syntax(), f) 3515 std::fmt::Display::fmt(self.syntax(), f)
3516 } 3516 }
diff --git a/crates/ra_syntax/src/ast/node_ext.rs b/crates/ra_syntax/src/ast/node_ext.rs
index ce11a7513..2299988ce 100644
--- a/crates/ra_syntax/src/ast/node_ext.rs
+++ b/crates/ra_syntax/src/ast/node_ext.rs
@@ -183,7 +183,7 @@ impl StructKind {
183 } 183 }
184} 184}
185 185
186impl ast::StructDef { 186impl ast::Struct {
187 pub fn kind(&self) -> StructKind { 187 pub fn kind(&self) -> StructKind {
188 StructKind::from_node(self) 188 StructKind::from_node(self)
189 } 189 }
@@ -475,7 +475,7 @@ impl ast::TokenTree {
475 475
476impl ast::DocCommentsOwner for ast::SourceFile {} 476impl ast::DocCommentsOwner for ast::SourceFile {}
477impl ast::DocCommentsOwner for ast::Fn {} 477impl ast::DocCommentsOwner for ast::Fn {}
478impl ast::DocCommentsOwner for ast::StructDef {} 478impl ast::DocCommentsOwner for ast::Struct {}
479impl ast::DocCommentsOwner for ast::Union {} 479impl ast::DocCommentsOwner for ast::Union {}
480impl ast::DocCommentsOwner for ast::RecordField {} 480impl ast::DocCommentsOwner for ast::RecordField {}
481impl ast::DocCommentsOwner for ast::TupleField {} 481impl ast::DocCommentsOwner for ast::TupleField {}
diff --git a/crates/ra_syntax/src/parsing/text_tree_sink.rs b/crates/ra_syntax/src/parsing/text_tree_sink.rs
index 0a1246c59..ef260ea59 100644
--- a/crates/ra_syntax/src/parsing/text_tree_sink.rs
+++ b/crates/ra_syntax/src/parsing/text_tree_sink.rs
@@ -146,8 +146,8 @@ fn n_attached_trivias<'a>(
146 trivias: impl Iterator<Item = (SyntaxKind, &'a str)>, 146 trivias: impl Iterator<Item = (SyntaxKind, &'a str)>,
147) -> usize { 147) -> usize {
148 match kind { 148 match kind {
149 MACRO_CALL | CONST_DEF | TYPE_ALIAS | STRUCT_DEF | ENUM_DEF | ENUM_VARIANT | FN 149 MACRO_CALL | CONST_DEF | TYPE_ALIAS | STRUCT | ENUM_DEF | ENUM_VARIANT | FN | TRAIT_DEF
150 | TRAIT_DEF | MODULE | RECORD_FIELD | STATIC_DEF => { 150 | MODULE | RECORD_FIELD | STATIC_DEF => {
151 let mut res = 0; 151 let mut res = 0;
152 let mut trivias = trivias.enumerate().peekable(); 152 let mut trivias = trivias.enumerate().peekable();
153 153
diff --git a/crates/ra_syntax/test_data/parser/err/0000_struct_field_missing_comma.rast b/crates/ra_syntax/test_data/parser/err/0000_struct_field_missing_comma.rast
index 93f6060ed..bbbf496c8 100644
--- a/crates/ra_syntax/test_data/parser/err/0000_struct_field_missing_comma.rast
+++ b/crates/ra_syntax/test_data/parser/err/0000_struct_field_missing_comma.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..34 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.rast b/crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.rast
index 7e2f429e1..6dc73bfdb 100644
--- a/crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.rast
+++ b/crates/ra_syntax/test_data/parser/err/0001_item_recovery_in_file.rast
@@ -5,7 +5,7 @@ [email protected]
5 [email protected] 5 [email protected]
6 [email protected] "match" 6 [email protected] "match"
7 [email protected] "\n\n" 7 [email protected] "\n\n"
8 STRUCT_DEF@10..21 8 [email protected]
9 [email protected] "struct" 9 [email protected] "struct"
10 [email protected] " " 10 [email protected] " "
11 [email protected] 11 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.rast b/crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.rast
index e0f3916b3..7763fad84 100644
--- a/crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.rast
+++ b/crates/ra_syntax/test_data/parser/err/0003_C++_semicolon.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..39 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/err/0006_named_field_recovery.rast b/crates/ra_syntax/test_data/parser/err/0006_named_field_recovery.rast
index ad9447761..5f85c3943 100644
--- a/crates/ra_syntax/test_data/parser/err/0006_named_field_recovery.rast
+++ b/crates/ra_syntax/test_data/parser/err/0006_named_field_recovery.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..73 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast b/crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast
index 2ae5bacea..560bfd751 100644
--- a/crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast
+++ b/crates/ra_syntax/test_data/parser/err/0007_stray_curly_in_file.rast
@@ -2,7 +2,7 @@ [email protected]
2 [email protected] 2 [email protected]
3 [email protected] "}" 3 [email protected] "}"
4 [email protected] "\n\n" 4 [email protected] "\n\n"
5 STRUCT_DEF@3..12 5 [email protected]
6 [email protected] "struct" 6 [email protected] "struct"
7 [email protected] " " 7 [email protected] " "
8 [email protected] 8 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.rast b/crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.rast
index 10081a870..dacf71aa1 100644
--- a/crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.rast
+++ b/crates/ra_syntax/test_data/parser/err/0009_broken_struct_type_parameter.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..11 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
@@ -38,7 +38,7 @@ [email protected]
38 [email protected] "\n" 38 [email protected] "\n"
39 [email protected] "}" 39 [email protected] "}"
40 [email protected] "\n\n" 40 [email protected] "\n\n"
41 STRUCT_DEF@33..42 41 [email protected]
42 [email protected] "struct" 42 [email protected] "struct"
43 [email protected] " " 43 [email protected] " "
44 [email protected] 44 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/err/0011_extern_struct.rast b/crates/ra_syntax/test_data/parser/err/0011_extern_struct.rast
index 87c54c32c..b02d390af 100644
--- a/crates/ra_syntax/test_data/parser/err/0011_extern_struct.rast
+++ b/crates/ra_syntax/test_data/parser/err/0011_extern_struct.rast
@@ -3,7 +3,7 @@ [email protected]
3 [email protected] 3 [email protected]
4 [email protected] "extern" 4 [email protected] "extern"
5 [email protected] " " 5 [email protected] " "
6 STRUCT_DEF@7..18 6 [email protected]
7 [email protected] "struct" 7 [email protected] "struct"
8 [email protected] " " 8 [email protected] " "
9 [email protected] 9 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/err/0013_invalid_type.rast b/crates/ra_syntax/test_data/parser/err/0013_invalid_type.rast
index c3591d25c..3eef848fc 100644
--- a/crates/ra_syntax/test_data/parser/err/0013_invalid_type.rast
+++ b/crates/ra_syntax/test_data/parser/err/0013_invalid_type.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..72 2 [email protected]
3 [email protected] 3 [email protected]
4 [email protected] "pub" 4 [email protected] "pub"
5 [email protected] " " 5 [email protected] " "
diff --git a/crates/ra_syntax/test_data/parser/err/0022_bad_exprs.rast b/crates/ra_syntax/test_data/parser/err/0022_bad_exprs.rast
index 866f61113..02339d035 100644
--- a/crates/ra_syntax/test_data/parser/err/0022_bad_exprs.rast
+++ b/crates/ra_syntax/test_data/parser/err/0022_bad_exprs.rast
@@ -28,7 +28,7 @@ [email protected]
28 [email protected] 28 [email protected]
29 [email protected] "," 29 [email protected] ","
30 [email protected] " " 30 [email protected] " "
31 STRUCT_DEF@19..26 31 [email protected]
32 [email protected] "struct" 32 [email protected] "struct"
33 [email protected] 33 [email protected]
34 [email protected] "," 34 [email protected] ","
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0007_type_param_bounds.rast b/crates/ra_syntax/test_data/parser/inline/ok/0007_type_param_bounds.rast
index 49aca06b0..e95688f56 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0007_type_param_bounds.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0007_type_param_bounds.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..34 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0022_crate_visibility.rast b/crates/ra_syntax/test_data/parser/inline/ok/0022_crate_visibility.rast
index 1b810607e..50742cbcf 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0022_crate_visibility.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0022_crate_visibility.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..20 2 [email protected]
3 [email protected] 3 [email protected]
4 [email protected] "pub" 4 [email protected] "pub"
5 [email protected] "(" 5 [email protected] "("
@@ -12,7 +12,7 @@ [email protected]
12 [email protected] "S" 12 [email protected] "S"
13 [email protected] ";" 13 [email protected] ";"
14 [email protected] "\n" 14 [email protected] "\n"
15 STRUCT_DEF@21..40 15 [email protected]
16 [email protected] 16 [email protected]
17 [email protected] "pub" 17 [email protected] "pub"
18 [email protected] "(" 18 [email protected] "("
@@ -25,7 +25,7 @@ [email protected]
25 [email protected] "S" 25 [email protected] "S"
26 [email protected] ";" 26 [email protected] ";"
27 [email protected] "\n" 27 [email protected] "\n"
28 STRUCT_DEF@41..60 28 [email protected]
29 [email protected] 29 [email protected]
30 [email protected] "pub" 30 [email protected] "pub"
31 [email protected] "(" 31 [email protected] "("
@@ -38,7 +38,7 @@ [email protected]
38 [email protected] "S" 38 [email protected] "S"
39 [email protected] ";" 39 [email protected] ";"
40 [email protected] "\n" 40 [email protected] "\n"
41 STRUCT_DEF@61..80 41 [email protected]
42 [email protected] 42 [email protected]
43 [email protected] "pub" 43 [email protected] "pub"
44 [email protected] "(" 44 [email protected] "("
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.rast b/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.rast
index a0ad07807..db5bd2849 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0040_crate_keyword_vis.rast
@@ -16,7 +16,7 @@ [email protected]
16 [email protected] " " 16 [email protected] " "
17 [email protected] "}" 17 [email protected] "}"
18 [email protected] "\n" 18 [email protected] "\n"
19 STRUCT_DEF@20..49 19 [email protected]
20 [email protected] "struct" 20 [email protected] "struct"
21 [email protected] " " 21 [email protected] " "
22 [email protected] 22 [email protected]
@@ -41,7 +41,7 @@ [email protected]
41 [email protected] " " 41 [email protected] " "
42 [email protected] "}" 42 [email protected] "}"
43 [email protected] "\n" 43 [email protected] "\n"
44 STRUCT_DEF@50..70 44 [email protected]
45 [email protected] "struct" 45 [email protected] "struct"
46 [email protected] " " 46 [email protected] " "
47 [email protected] 47 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.rast b/crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.rast
index 775bc2869..9ae271817 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0054_record_field_attrs.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..63 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.rast b/crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.rast
index f6417ab13..de8217064 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0062_mod_contents.rast
@@ -57,7 +57,7 @@ [email protected]
57 [email protected] "{" 57 [email protected] "{"
58 [email protected] "}" 58 [email protected] "}"
59 [email protected] "\n" 59 [email protected] "\n"
60 STRUCT_DEF@60..69 60 [email protected]
61 [email protected] "struct" 61 [email protected] "struct"
62 [email protected] " " 62 [email protected] " "
63 [email protected] 63 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.rast b/crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.rast
index 0d9a36618..cdbc40fe0 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0083_struct_items.rast
@@ -1,12 +1,12 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..11 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
6 [email protected] "Foo" 6 [email protected] "Foo"
7 [email protected] ";" 7 [email protected] ";"
8 [email protected] "\n" 8 [email protected] "\n"
9 STRUCT_DEF@12..25 9 [email protected]
10 [email protected] "struct" 10 [email protected] "struct"
11 [email protected] " " 11 [email protected] " "
12 [email protected] 12 [email protected]
@@ -16,7 +16,7 @@ [email protected]
16 [email protected] "{" 16 [email protected] "{"
17 [email protected] "}" 17 [email protected] "}"
18 [email protected] "\n" 18 [email protected] "\n"
19 STRUCT_DEF@26..39 19 [email protected]
20 [email protected] "struct" 20 [email protected] "struct"
21 [email protected] " " 21 [email protected] " "
22 [email protected] 22 [email protected]
@@ -26,7 +26,7 @@ [email protected]
26 [email protected] ")" 26 [email protected] ")"
27 [email protected] ";" 27 [email protected] ";"
28 [email protected] "\n" 28 [email protected] "\n"
29 STRUCT_DEF@40..66 29 [email protected]
30 [email protected] "struct" 30 [email protected] "struct"
31 [email protected] " " 31 [email protected] " "
32 [email protected] 32 [email protected]
@@ -50,7 +50,7 @@ [email protected]
50 [email protected] ")" 50 [email protected] ")"
51 [email protected] ";" 51 [email protected] ";"
52 [email protected] "\n" 52 [email protected] "\n"
53 STRUCT_DEF@67..105 53 [email protected]
54 [email protected] "struct" 54 [email protected] "struct"
55 [email protected] " " 55 [email protected] " "
56 [email protected] 56 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0090_type_param_default.rast b/crates/ra_syntax/test_data/parser/inline/ok/0090_type_param_default.rast
index 1d24619c3..2ef026e37 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0090_type_param_default.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0090_type_param_default.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..18 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.rast b/crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.rast
index 3c9af3d1f..0e1594dc4 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0114_tuple_struct_where.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..33 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
@@ -40,7 +40,7 @@ [email protected]
40 [email protected] "Clone" 40 [email protected] "Clone"
41 [email protected] ";" 41 [email protected] ";"
42 [email protected] "\n" 42 [email protected] "\n"
43 STRUCT_DEF@34..52 43 [email protected]
44 [email protected] "struct" 44 [email protected] "struct"
45 [email protected] " " 45 [email protected] " "
46 [email protected] 46 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rast b/crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rast
index 51812a4f2..4d09c9f50 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0115_tuple_field_attrs.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..59 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.rast b/crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.rast
index d92bf84f4..280f947ce 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0134_nocontentexpr_after_item.rast
@@ -47,7 +47,7 @@ [email protected]
47 [email protected] "}" 47 [email protected] "}"
48 [email protected] ";" 48 [email protected] ";"
49 [email protected] "\n " 49 [email protected] "\n "
50 STRUCT_DEF@96..107 50 [email protected]
51 [email protected] "struct" 51 [email protected] "struct"
52 [email protected] " " 52 [email protected] " "
53 [email protected] 53 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0147_const_param.rast b/crates/ra_syntax/test_data/parser/inline/ok/0147_const_param.rast
index 6981ef971..9312eab65 100644
--- a/crates/ra_syntax/test_data/parser/inline/ok/0147_const_param.rast
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0147_const_param.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..23 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/ok/0001_struct_item.rast b/crates/ra_syntax/test_data/parser/ok/0001_struct_item.rast
index c9d1af92f..a171fe7a8 100644
--- a/crates/ra_syntax/test_data/parser/ok/0001_struct_item.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0001_struct_item.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..31 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/ok/0002_struct_item_field.rast b/crates/ra_syntax/test_data/parser/ok/0002_struct_item_field.rast
index 57fb7a329..362892b91 100644
--- a/crates/ra_syntax/test_data/parser/ok/0002_struct_item_field.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0002_struct_item_field.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..25 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/ok/0008_mod_item.rast b/crates/ra_syntax/test_data/parser/ok/0008_mod_item.rast
index 60ded78d5..b2c1d791f 100644
--- a/crates/ra_syntax/test_data/parser/ok/0008_mod_item.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0008_mod_item.rast
@@ -40,7 +40,7 @@ [email protected]
40 [email protected] "\n " 40 [email protected] "\n "
41 [email protected] "}" 41 [email protected] "}"
42 [email protected] "\n " 42 [email protected] "\n "
43 STRUCT_DEF@52..63 43 [email protected]
44 [email protected] "struct" 44 [email protected] "struct"
45 [email protected] " " 45 [email protected] " "
46 [email protected] 46 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/ok/0016_struct_flavors.rast b/crates/ra_syntax/test_data/parser/ok/0016_struct_flavors.rast
index 00b1b65be..b15f41dd7 100644
--- a/crates/ra_syntax/test_data/parser/ok/0016_struct_flavors.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0016_struct_flavors.rast
@@ -1,12 +1,12 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..9 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
6 [email protected] "A" 6 [email protected] "A"
7 [email protected] ";" 7 [email protected] ";"
8 [email protected] "\n" 8 [email protected] "\n"
9 STRUCT_DEF@10..21 9 [email protected]
10 [email protected] "struct" 10 [email protected] "struct"
11 [email protected] " " 11 [email protected] " "
12 [email protected] 12 [email protected]
@@ -16,7 +16,7 @@ [email protected]
16 [email protected] "{" 16 [email protected] "{"
17 [email protected] "}" 17 [email protected] "}"
18 [email protected] "\n" 18 [email protected] "\n"
19 STRUCT_DEF@22..33 19 [email protected]
20 [email protected] "struct" 20 [email protected] "struct"
21 [email protected] " " 21 [email protected] " "
22 [email protected] 22 [email protected]
@@ -26,7 +26,7 @@ [email protected]
26 [email protected] ")" 26 [email protected] ")"
27 [email protected] ";" 27 [email protected] ";"
28 [email protected] "\n\n" 28 [email protected] "\n\n"
29 STRUCT_DEF@35..74 29 [email protected]
30 [email protected] "struct" 30 [email protected] "struct"
31 [email protected] " " 31 [email protected] " "
32 [email protected] 32 [email protected]
@@ -63,7 +63,7 @@ [email protected]
63 [email protected] "\n" 63 [email protected] "\n"
64 [email protected] "}" 64 [email protected] "}"
65 [email protected] "\n\n" 65 [email protected] "\n\n"
66 STRUCT_DEF@76..96 66 [email protected]
67 [email protected] "struct" 67 [email protected] "struct"
68 [email protected] " " 68 [email protected] " "
69 [email protected] 69 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/ok/0018_struct_type_params.rast b/crates/ra_syntax/test_data/parser/ok/0018_struct_type_params.rast
index b757bd16d..630aa0708 100644
--- a/crates/ra_syntax/test_data/parser/ok/0018_struct_type_params.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0018_struct_type_params.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..13 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
@@ -12,7 +12,7 @@ [email protected]
12 [email protected] ">" 12 [email protected] ">"
13 [email protected] ";" 13 [email protected] ";"
14 [email protected] "\n" 14 [email protected] "\n"
15 STRUCT_DEF@14..32 15 [email protected]
16 [email protected] "struct" 16 [email protected] "struct"
17 [email protected] " " 17 [email protected] " "
18 [email protected] 18 [email protected]
@@ -34,7 +34,7 @@ [email protected]
34 [email protected] ")" 34 [email protected] ")"
35 [email protected] ";" 35 [email protected] ";"
36 [email protected] "\n" 36 [email protected] "\n"
37 STRUCT_DEF@33..56 37 [email protected]
38 [email protected] "struct" 38 [email protected] "struct"
39 [email protected] " " 39 [email protected] " "
40 [email protected] 40 [email protected]
@@ -62,7 +62,7 @@ [email protected]
62 [email protected] " " 62 [email protected] " "
63 [email protected] "}" 63 [email protected] "}"
64 [email protected] "\n\n" 64 [email protected] "\n\n"
65 STRUCT_DEF@58..70 65 [email protected]
66 [email protected] "struct" 66 [email protected] "struct"
67 [email protected] " " 67 [email protected] " "
68 [email protected] 68 [email protected]
@@ -72,7 +72,7 @@ [email protected]
72 [email protected] ">" 72 [email protected] ">"
73 [email protected] ";" 73 [email protected] ";"
74 [email protected] "\n" 74 [email protected] "\n"
75 STRUCT_DEF@71..85 75 [email protected]
76 [email protected] "struct" 76 [email protected] "struct"
77 [email protected] " " 77 [email protected] " "
78 [email protected] 78 [email protected]
@@ -84,7 +84,7 @@ [email protected]
84 [email protected] ">" 84 [email protected] ">"
85 [email protected] ";" 85 [email protected] ";"
86 [email protected] "\n" 86 [email protected] "\n"
87 STRUCT_DEF@86..101 87 [email protected]
88 [email protected] "struct" 88 [email protected] "struct"
89 [email protected] " " 89 [email protected] " "
90 [email protected] 90 [email protected]
@@ -97,7 +97,7 @@ [email protected]
97 [email protected] ">" 97 [email protected] ">"
98 [email protected] ";" 98 [email protected] ";"
99 [email protected] "\n" 99 [email protected] "\n"
100 STRUCT_DEF@102..120 100 [email protected]
101 [email protected] "struct" 101 [email protected] "struct"
102 [email protected] " " 102 [email protected] " "
103 [email protected] 103 [email protected]
@@ -112,7 +112,7 @@ [email protected]
112 [email protected] ">" 112 [email protected] ">"
113 [email protected] ";" 113 [email protected] ";"
114 [email protected] "\n" 114 [email protected] "\n"
115 STRUCT_DEF@121..142 115 [email protected]
116 [email protected] "struct" 116 [email protected] "struct"
117 [email protected] " " 117 [email protected] " "
118 [email protected] 118 [email protected]
@@ -130,7 +130,7 @@ [email protected]
130 [email protected] ">" 130 [email protected] ">"
131 [email protected] ";" 131 [email protected] ";"
132 [email protected] "\n" 132 [email protected] "\n"
133 STRUCT_DEF@143..166 133 [email protected]
134 [email protected] "struct" 134 [email protected] "struct"
135 [email protected] " " 135 [email protected] " "
136 [email protected] 136 [email protected]
@@ -149,7 +149,7 @@ [email protected]
149 [email protected] ">" 149 [email protected] ">"
150 [email protected] ";" 150 [email protected] ";"
151 [email protected] "\n" 151 [email protected] "\n"
152 STRUCT_DEF@167..183 152 [email protected]
153 [email protected] "struct" 153 [email protected] "struct"
154 [email protected] " " 154 [email protected] " "
155 [email protected] 155 [email protected]
@@ -162,7 +162,7 @@ [email protected]
162 [email protected] ">" 162 [email protected] ">"
163 [email protected] ";" 163 [email protected] ";"
164 [email protected] "\n" 164 [email protected] "\n"
165 STRUCT_DEF@184..203 165 [email protected]
166 [email protected] "struct" 166 [email protected] "struct"
167 [email protected] " " 167 [email protected] " "
168 [email protected] 168 [email protected]
@@ -178,7 +178,7 @@ [email protected]
178 [email protected] ">" 178 [email protected] ">"
179 [email protected] ";" 179 [email protected] ";"
180 [email protected] "\n" 180 [email protected] "\n"
181 STRUCT_DEF@204..233 181 [email protected]
182 [email protected] "struct" 182 [email protected] "struct"
183 [email protected] " " 183 [email protected] " "
184 [email protected] 184 [email protected]
@@ -202,7 +202,7 @@ [email protected]
202 [email protected] ">" 202 [email protected] ">"
203 [email protected] ";" 203 [email protected] ";"
204 [email protected] "\n\n" 204 [email protected] "\n\n"
205 STRUCT_DEF@235..249 205 [email protected]
206 [email protected] "struct" 206 [email protected] "struct"
207 [email protected] " " 207 [email protected] " "
208 [email protected] 208 [email protected]
@@ -215,7 +215,7 @@ [email protected]
215 [email protected] ">" 215 [email protected] ">"
216 [email protected] ";" 216 [email protected] ";"
217 [email protected] "\n" 217 [email protected] "\n"
218 STRUCT_DEF@250..267 218 [email protected]
219 [email protected] "struct" 219 [email protected] "struct"
220 [email protected] " " 220 [email protected] " "
221 [email protected] 221 [email protected]
@@ -233,7 +233,7 @@ [email protected]
233 [email protected] ">" 233 [email protected] ">"
234 [email protected] ";" 234 [email protected] ";"
235 [email protected] "\n" 235 [email protected] "\n"
236 STRUCT_DEF@268..289 236 [email protected]
237 [email protected] "struct" 237 [email protected] "struct"
238 [email protected] " " 238 [email protected] " "
239 [email protected] 239 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/ok/0020_type_param_bounds.rast b/crates/ra_syntax/test_data/parser/ok/0020_type_param_bounds.rast
index 5100e6a48..9bdc50e1e 100644
--- a/crates/ra_syntax/test_data/parser/ok/0020_type_param_bounds.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0020_type_param_bounds.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..12 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
@@ -12,7 +12,7 @@ [email protected]
12 [email protected] ">" 12 [email protected] ">"
13 [email protected] ";" 13 [email protected] ";"
14 [email protected] "\n" 14 [email protected] "\n"
15 STRUCT_DEF@13..26 15 [email protected]
16 [email protected] "struct" 16 [email protected] "struct"
17 [email protected] " " 17 [email protected] " "
18 [email protected] 18 [email protected]
@@ -27,7 +27,7 @@ [email protected]
27 [email protected] ">" 27 [email protected] ">"
28 [email protected] ";" 28 [email protected] ";"
29 [email protected] "\n" 29 [email protected] "\n"
30 STRUCT_DEF@27..43 30 [email protected]
31 [email protected] "struct" 31 [email protected] "struct"
32 [email protected] " " 32 [email protected] " "
33 [email protected] 33 [email protected]
@@ -45,7 +45,7 @@ [email protected]
45 [email protected] ">" 45 [email protected] ">"
46 [email protected] ";" 46 [email protected] ";"
47 [email protected] "\n" 47 [email protected] "\n"
48 STRUCT_DEF@44..63 48 [email protected]
49 [email protected] "struct" 49 [email protected] "struct"
50 [email protected] " " 50 [email protected] " "
51 [email protected] 51 [email protected]
@@ -66,7 +66,7 @@ [email protected]
66 [email protected] ">" 66 [email protected] ">"
67 [email protected] ";" 67 [email protected] ";"
68 [email protected] "\n" 68 [email protected] "\n"
69 STRUCT_DEF@64..86 69 [email protected]
70 [email protected] "struct" 70 [email protected] "struct"
71 [email protected] " " 71 [email protected] " "
72 [email protected] 72 [email protected]
@@ -90,7 +90,7 @@ [email protected]
90 [email protected] ">" 90 [email protected] ">"
91 [email protected] ";" 91 [email protected] ";"
92 [email protected] "\n" 92 [email protected] "\n"
93 STRUCT_DEF@87..116 93 [email protected]
94 [email protected] "struct" 94 [email protected] "struct"
95 [email protected] " " 95 [email protected] " "
96 [email protected] 96 [email protected]
@@ -122,7 +122,7 @@ [email protected]
122 [email protected] ">" 122 [email protected] ">"
123 [email protected] ";" 123 [email protected] ";"
124 [email protected] "\n" 124 [email protected] "\n"
125 STRUCT_DEF@117..143 125 [email protected]
126 [email protected] "struct" 126 [email protected] "struct"
127 [email protected] " " 127 [email protected] " "
128 [email protected] 128 [email protected]
@@ -153,7 +153,7 @@ [email protected]
153 [email protected] ">" 153 [email protected] ">"
154 [email protected] ";" 154 [email protected] ";"
155 [email protected] "\n" 155 [email protected] "\n"
156 STRUCT_DEF@144..180 156 [email protected]
157 [email protected] "struct" 157 [email protected] "struct"
158 [email protected] " " 158 [email protected] " "
159 [email protected] 159 [email protected]
@@ -194,7 +194,7 @@ [email protected]
194 [email protected] ">" 194 [email protected] ">"
195 [email protected] ";" 195 [email protected] ";"
196 [email protected] "\n" 196 [email protected] "\n"
197 STRUCT_DEF@181..199 197 [email protected]
198 [email protected] "struct" 198 [email protected] "struct"
199 [email protected] " " 199 [email protected] " "
200 [email protected] 200 [email protected]
@@ -217,7 +217,7 @@ [email protected]
217 [email protected] ">" 217 [email protected] ">"
218 [email protected] ";" 218 [email protected] ";"
219 [email protected] "\n" 219 [email protected] "\n"
220 STRUCT_DEF@200..250 220 [email protected]
221 [email protected] "struct" 221 [email protected] "struct"
222 [email protected] " " 222 [email protected] " "
223 [email protected] 223 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/ok/0040_raw_struct_item_field.rast b/crates/ra_syntax/test_data/parser/ok/0040_raw_struct_item_field.rast
index 0f0138c86..8cfc14f49 100644
--- a/crates/ra_syntax/test_data/parser/ok/0040_raw_struct_item_field.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0040_raw_struct_item_field.rast
@@ -1,5 +1,5 @@
1[email protected] 1[email protected]
2 STRUCT_DEF@0..27 2 [email protected]
3 [email protected] "struct" 3 [email protected] "struct"
4 [email protected] " " 4 [email protected] " "
5 [email protected] 5 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/ok/0042_ufcs_call_list.rast b/crates/ra_syntax/test_data/parser/ok/0042_ufcs_call_list.rast
index 4f0c68822..c4ffc0a3d 100644
--- a/crates/ra_syntax/test_data/parser/ok/0042_ufcs_call_list.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0042_ufcs_call_list.rast
@@ -1,7 +1,7 @@
1[email protected] 1[email protected]
2 [email protected] "// https://github.com ..." 2 [email protected] "// https://github.com ..."
3 [email protected] "\n\n" 3 [email protected] "\n\n"
4 STRUCT_DEF@62..73 4 [email protected]
5 [email protected] "struct" 5 [email protected] "struct"
6 [email protected] " " 6 [email protected] " "
7 [email protected] 7 [email protected]
diff --git a/crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.rast b/crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.rast
index 9c2ea3754..adc4a22e9 100644
--- a/crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.rast
+++ b/crates/ra_syntax/test_data/parser/ok/0043_complex_assignment.rast
@@ -1,7 +1,7 @@
1[email protected] 1[email protected]
2 [email protected] "// https://github.com ..." 2 [email protected] "// https://github.com ..."
3 [email protected] "\n\n" 3 [email protected] "\n\n"
4 STRUCT_DEF@62..90 4 [email protected]
5 [email protected] "struct" 5 [email protected] "struct"
6 [email protected] " " 6 [email protected] " "
7 [email protected] 7 [email protected]