diff options
| author | Aleksey Kladov <[email protected]> | 2020-07-30 17:28:28 +0100 |
|---|---|---|
| committer | Aleksey Kladov <[email protected]> | 2020-07-30 17:28:28 +0100 |
| commit | c5798c4d75aa807aec47208a49101bdec3affcca (patch) | |
| tree | 1af0efdcee857e1ba91e76f4cc7fd7c043916ebb /crates/ra_syntax | |
| parent | c83467796b6c7365ea4f41900d74444384a9e618 (diff) | |
Finalize impl Grammar
Diffstat (limited to 'crates/ra_syntax')
28 files changed, 50 insertions, 49 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 3adb6b2d4..ba00742f0 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs | |||
| @@ -100,17 +100,18 @@ impl Fn { | |||
| 100 | pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![;]) } | 100 | pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![;]) } |
| 101 | } | 101 | } |
| 102 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 102 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
| 103 | pub struct ImplDef { | 103 | pub struct Impl { |
| 104 | pub(crate) syntax: SyntaxNode, | 104 | pub(crate) syntax: SyntaxNode, |
| 105 | } | 105 | } |
| 106 | impl ast::AttrsOwner for ImplDef {} | 106 | impl ast::AttrsOwner for Impl {} |
| 107 | impl ast::VisibilityOwner for ImplDef {} | 107 | impl ast::VisibilityOwner for Impl {} |
| 108 | impl ast::GenericParamsOwner for ImplDef {} | 108 | impl ast::GenericParamsOwner for Impl {} |
| 109 | impl ImplDef { | 109 | impl Impl { |
| 110 | pub fn const_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![const]) } | ||
| 111 | pub fn default_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![default]) } | 110 | pub fn default_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![default]) } |
| 112 | pub fn unsafe_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![unsafe]) } | 111 | pub fn unsafe_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![unsafe]) } |
| 113 | pub fn impl_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![impl]) } | 112 | pub fn impl_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![impl]) } |
| 113 | pub fn const_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![const]) } | ||
| 114 | pub fn type_ref(&self) -> Option<TypeRef> { support::child(&self.syntax) } | ||
| 114 | pub fn excl_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![!]) } | 115 | pub fn excl_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![!]) } |
| 115 | pub fn for_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![for]) } | 116 | pub fn for_token(&self) -> Option<SyntaxToken> { support::token(&self.syntax, T![for]) } |
| 116 | pub fn assoc_item_list(&self) -> Option<AssocItemList> { support::child(&self.syntax) } | 117 | pub fn assoc_item_list(&self) -> Option<AssocItemList> { support::child(&self.syntax) } |
| @@ -1278,7 +1279,7 @@ pub enum Item { | |||
| 1278 | ExternBlock(ExternBlock), | 1279 | ExternBlock(ExternBlock), |
| 1279 | ExternCrate(ExternCrate), | 1280 | ExternCrate(ExternCrate), |
| 1280 | Fn(Fn), | 1281 | Fn(Fn), |
| 1281 | ImplDef(ImplDef), | 1282 | Impl(Impl), |
| 1282 | MacroCall(MacroCall), | 1283 | MacroCall(MacroCall), |
| 1283 | Module(Module), | 1284 | Module(Module), |
| 1284 | Static(Static), | 1285 | Static(Static), |
| @@ -1477,8 +1478,8 @@ impl AstNode for Fn { | |||
| 1477 | } | 1478 | } |
| 1478 | fn syntax(&self) -> &SyntaxNode { &self.syntax } | 1479 | fn syntax(&self) -> &SyntaxNode { &self.syntax } |
| 1479 | } | 1480 | } |
| 1480 | impl AstNode for ImplDef { | 1481 | impl AstNode for Impl { |
| 1481 | fn can_cast(kind: SyntaxKind) -> bool { kind == IMPL_DEF } | 1482 | fn can_cast(kind: SyntaxKind) -> bool { kind == IMPL } |
| 1482 | fn cast(syntax: SyntaxNode) -> Option<Self> { | 1483 | fn cast(syntax: SyntaxNode) -> Option<Self> { |
| 1483 | if Self::can_cast(syntax.kind()) { | 1484 | if Self::can_cast(syntax.kind()) { |
| 1484 | Some(Self { syntax }) | 1485 | Some(Self { syntax }) |
| @@ -2790,8 +2791,8 @@ impl From<ExternCrate> for Item { | |||
| 2790 | impl From<Fn> for Item { | 2791 | impl From<Fn> for Item { |
| 2791 | fn from(node: Fn) -> Item { Item::Fn(node) } | 2792 | fn from(node: Fn) -> Item { Item::Fn(node) } |
| 2792 | } | 2793 | } |
| 2793 | impl From<ImplDef> for Item { | 2794 | impl From<Impl> for Item { |
| 2794 | fn from(node: ImplDef) -> Item { Item::ImplDef(node) } | 2795 | fn from(node: Impl) -> Item { Item::Impl(node) } |
| 2795 | } | 2796 | } |
| 2796 | impl From<MacroCall> for Item { | 2797 | impl From<MacroCall> for Item { |
| 2797 | fn from(node: MacroCall) -> Item { Item::MacroCall(node) } | 2798 | fn from(node: MacroCall) -> Item { Item::MacroCall(node) } |
| @@ -2820,7 +2821,7 @@ impl From<Use> for Item { | |||
| 2820 | impl AstNode for Item { | 2821 | impl AstNode for Item { |
| 2821 | fn can_cast(kind: SyntaxKind) -> bool { | 2822 | fn can_cast(kind: SyntaxKind) -> bool { |
| 2822 | match kind { | 2823 | match kind { |
| 2823 | CONST | ENUM | EXTERN_BLOCK | EXTERN_CRATE | FN | IMPL_DEF | MACRO_CALL | MODULE | 2824 | CONST | ENUM | EXTERN_BLOCK | EXTERN_CRATE | FN | IMPL | MACRO_CALL | MODULE |
| 2824 | | STATIC | STRUCT | TRAIT | TYPE_ALIAS | UNION | USE => true, | 2825 | | STATIC | STRUCT | TRAIT | TYPE_ALIAS | UNION | USE => true, |
| 2825 | _ => false, | 2826 | _ => false, |
| 2826 | } | 2827 | } |
| @@ -2832,7 +2833,7 @@ impl AstNode for Item { | |||
| 2832 | EXTERN_BLOCK => Item::ExternBlock(ExternBlock { syntax }), | 2833 | EXTERN_BLOCK => Item::ExternBlock(ExternBlock { syntax }), |
| 2833 | EXTERN_CRATE => Item::ExternCrate(ExternCrate { syntax }), | 2834 | EXTERN_CRATE => Item::ExternCrate(ExternCrate { syntax }), |
| 2834 | FN => Item::Fn(Fn { syntax }), | 2835 | FN => Item::Fn(Fn { syntax }), |
| 2835 | IMPL_DEF => Item::ImplDef(ImplDef { syntax }), | 2836 | IMPL => Item::Impl(Impl { syntax }), |
| 2836 | MACRO_CALL => Item::MacroCall(MacroCall { syntax }), | 2837 | MACRO_CALL => Item::MacroCall(MacroCall { syntax }), |
| 2837 | MODULE => Item::Module(Module { syntax }), | 2838 | MODULE => Item::Module(Module { syntax }), |
| 2838 | STATIC => Item::Static(Static { syntax }), | 2839 | STATIC => Item::Static(Static { syntax }), |
| @@ -2852,7 +2853,7 @@ impl AstNode for Item { | |||
| 2852 | Item::ExternBlock(it) => &it.syntax, | 2853 | Item::ExternBlock(it) => &it.syntax, |
| 2853 | Item::ExternCrate(it) => &it.syntax, | 2854 | Item::ExternCrate(it) => &it.syntax, |
| 2854 | Item::Fn(it) => &it.syntax, | 2855 | Item::Fn(it) => &it.syntax, |
| 2855 | Item::ImplDef(it) => &it.syntax, | 2856 | Item::Impl(it) => &it.syntax, |
| 2856 | Item::MacroCall(it) => &it.syntax, | 2857 | Item::MacroCall(it) => &it.syntax, |
| 2857 | Item::Module(it) => &it.syntax, | 2858 | Item::Module(it) => &it.syntax, |
| 2858 | Item::Static(it) => &it.syntax, | 2859 | Item::Static(it) => &it.syntax, |
| @@ -3491,7 +3492,7 @@ impl std::fmt::Display for Fn { | |||
| 3491 | std::fmt::Display::fmt(self.syntax(), f) | 3492 | std::fmt::Display::fmt(self.syntax(), f) |
| 3492 | } | 3493 | } |
| 3493 | } | 3494 | } |
| 3494 | impl std::fmt::Display for ImplDef { | 3495 | impl std::fmt::Display for Impl { |
| 3495 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { | 3496 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 3496 | std::fmt::Display::fmt(self.syntax(), f) | 3497 | std::fmt::Display::fmt(self.syntax(), f) |
| 3497 | } | 3498 | } |
diff --git a/crates/ra_syntax/src/ast/node_ext.rs b/crates/ra_syntax/src/ast/node_ext.rs index a8d8955de..313f52226 100644 --- a/crates/ra_syntax/src/ast/node_ext.rs +++ b/crates/ra_syntax/src/ast/node_ext.rs | |||
| @@ -141,7 +141,7 @@ impl ast::UseTreeList { | |||
| 141 | } | 141 | } |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | impl ast::ImplDef { | 144 | impl ast::Impl { |
| 145 | pub fn target_type(&self) -> Option<ast::TypeRef> { | 145 | pub fn target_type(&self) -> Option<ast::TypeRef> { |
| 146 | match self.target() { | 146 | match self.target() { |
| 147 | (Some(t), None) | (_, Some(t)) => Some(t), | 147 | (Some(t), None) | (_, Some(t)) => Some(t), |
| @@ -486,5 +486,5 @@ impl ast::DocCommentsOwner for ast::Module {} | |||
| 486 | impl ast::DocCommentsOwner for ast::Static {} | 486 | impl ast::DocCommentsOwner for ast::Static {} |
| 487 | impl ast::DocCommentsOwner for ast::Const {} | 487 | impl ast::DocCommentsOwner for ast::Const {} |
| 488 | impl ast::DocCommentsOwner for ast::TypeAlias {} | 488 | impl ast::DocCommentsOwner for ast::TypeAlias {} |
| 489 | impl ast::DocCommentsOwner for ast::ImplDef {} | 489 | impl ast::DocCommentsOwner for ast::Impl {} |
| 490 | impl ast::DocCommentsOwner for ast::MacroCall {} | 490 | impl ast::DocCommentsOwner for ast::MacroCall {} |
diff --git a/crates/ra_syntax/src/validation.rs b/crates/ra_syntax/src/validation.rs index a666b18db..0325ab0b4 100644 --- a/crates/ra_syntax/src/validation.rs +++ b/crates/ra_syntax/src/validation.rs | |||
| @@ -204,7 +204,7 @@ fn validate_visibility(vis: ast::Visibility, errors: &mut Vec<SyntaxError>) { | |||
| 204 | _ => return, | 204 | _ => return, |
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | let impl_def = match parent.parent().and_then(|it| it.parent()).and_then(ast::ImplDef::cast) { | 207 | let impl_def = match parent.parent().and_then(|it| it.parent()).and_then(ast::Impl::cast) { |
| 208 | Some(it) => it, | 208 | Some(it) => it, |
| 209 | None => return, | 209 | None => return, |
| 210 | }; | 210 | }; |
diff --git a/crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.rast b/crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.rast index 1ce5f188f..bc95b8512 100644 --- a/crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.rast +++ b/crates/ra_syntax/test_data/parser/err/0018_incomplete_fn.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..182 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 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 a6e304b78..71fb19783 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 | |||
| @@ -75,7 +75,7 @@ [email protected] | |||
| 75 | [email protected] | 75 | [email protected] |
| 76 | [email protected] "," | 76 | [email protected] "," |
| 77 | [email protected] " " | 77 | [email protected] " " |
| 78 | IMPL_DEF@56..60 | 78 | [email protected] |
| 79 | [email protected] "impl" | 79 | [email protected] "impl" |
| 80 | [email protected] | 80 | [email protected] |
| 81 | [email protected] | 81 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/err/0026_imp_recovery.rast b/crates/ra_syntax/test_data/parser/err/0026_imp_recovery.rast index 8c8bf7b7e..7e4b11c27 100644 --- a/crates/ra_syntax/test_data/parser/err/0026_imp_recovery.rast +++ b/crates/ra_syntax/test_data/parser/err/0026_imp_recovery.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..14 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] | 4 | [email protected] |
| 5 | [email protected] "<" | 5 | [email protected] "<" |
| @@ -17,7 +17,7 @@ [email protected] | |||
| 17 | [email protected] "Clone" | 17 | [email protected] "Clone" |
| 18 | [email protected] ">" | 18 | [email protected] ">" |
| 19 | [email protected] "\n" | 19 | [email protected] "\n" |
| 20 | IMPL_DEF@15..37 | 20 | [email protected] |
| 21 | [email protected] "impl" | 21 | [email protected] "impl" |
| 22 | [email protected] | 22 | [email protected] |
| 23 | [email protected] "<" | 23 | [email protected] "<" |
diff --git a/crates/ra_syntax/test_data/parser/err/0037_visibility_in_traits.rast b/crates/ra_syntax/test_data/parser/err/0037_visibility_in_traits.rast index b1400aa5f..faf87d6e5 100644 --- a/crates/ra_syntax/test_data/parser/err/0037_visibility_in_traits.rast +++ b/crates/ra_syntax/test_data/parser/err/0037_visibility_in_traits.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..117 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] | 5 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast b/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast index 8b0a888fd..a4271fc87 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0002_misplaced_label_err.rast | |||
| @@ -17,7 +17,7 @@ [email protected] | |||
| 17 | [email protected] "\'loop" | 17 | [email protected] "\'loop" |
| 18 | [email protected] ":" | 18 | [email protected] ":" |
| 19 | [email protected] " " | 19 | [email protected] " " |
| 20 | IMPL_DEF@23..27 | 20 | [email protected] |
| 21 | [email protected] "impl" | 21 | [email protected] "impl" |
| 22 | [email protected] "\n" | 22 | [email protected] "\n" |
| 23 | [email protected] "}" | 23 | [email protected] "}" |
diff --git a/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast b/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast index 2d0253aa0..29d6b3974 100644 --- a/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast +++ b/crates/ra_syntax/test_data/parser/inline/err/0004_impl_type.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..12 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 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 | IMPL_DEF@13..33 | 15 | [email protected] |
| 16 | [email protected] "impl" | 16 | [email protected] "impl" |
| 17 | [email protected] " " | 17 | [email protected] " " |
| 18 | [email protected] | 18 | [email protected] |
| @@ -33,10 +33,10 @@ [email protected] | |||
| 33 | [email protected] "{" | 33 | [email protected] "{" |
| 34 | [email protected] "}" | 34 | [email protected] "}" |
| 35 | [email protected] "\n" | 35 | [email protected] "\n" |
| 36 | IMPL_DEF@34..38 | 36 | [email protected] |
| 37 | [email protected] "impl" | 37 | [email protected] "impl" |
| 38 | [email protected] " " | 38 | [email protected] " " |
| 39 | IMPL_DEF@39..54 | 39 | [email protected] |
| 40 | [email protected] "impl" | 40 | [email protected] "impl" |
| 41 | [email protected] " " | 41 | [email protected] " " |
| 42 | [email protected] | 42 | [email protected] |
| @@ -49,7 +49,7 @@ [email protected] | |||
| 49 | [email protected] "{" | 49 | [email protected] "{" |
| 50 | [email protected] "}" | 50 | [email protected] "}" |
| 51 | [email protected] "\n" | 51 | [email protected] "\n" |
| 52 | IMPL_DEF@55..70 | 52 | [email protected] |
| 53 | [email protected] "impl" | 53 | [email protected] "impl" |
| 54 | [email protected] " " | 54 | [email protected] " " |
| 55 | [email protected] | 55 | [email protected] |
| @@ -60,7 +60,7 @@ [email protected] | |||
| 60 | [email protected] " " | 60 | [email protected] " " |
| 61 | [email protected] "for" | 61 | [email protected] "for" |
| 62 | [email protected] " " | 62 | [email protected] " " |
| 63 | IMPL_DEF@71..86 | 63 | [email protected] |
| 64 | [email protected] "impl" | 64 | [email protected] "impl" |
| 65 | [email protected] " " | 65 | [email protected] " " |
| 66 | [email protected] | 66 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0001_trait_item_list.rast b/crates/ra_syntax/test_data/parser/inline/ok/0001_trait_item_list.rast index 955e00dde..c7289e400 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0001_trait_item_list.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0001_trait_item_list.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..82 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] | 5 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.rast b/crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.rast index 87c170707..ae61cbad8 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0006_self_param.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..127 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] | 5 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast b/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast index e75180900..20b2b6c19 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0018_arb_self_types.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..68 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] | 5 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.rast b/crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.rast index 52181ca0c..ca0702aba 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0021_impl_item_list.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..88 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] | 5 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.rast b/crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.rast index 8a6b5a8fc..d6dfa83b7 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0047_unsafe_default_impl.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..26 | 2 | [email protected] |
| 3 | [email protected] "unsafe" | 3 | [email protected] "unsafe" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] "default" | 5 | [email protected] "default" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0063_impl_def_neg.rast b/crates/ra_syntax/test_data/parser/inline/ok/0063_impl_def_neg.rast index 31178f86e..4368930cc 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0063_impl_def_neg.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0063_impl_def_neg.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..19 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] "!" | 5 | [email protected] "!" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0079_impl_def.rast b/crates/ra_syntax/test_data/parser/inline/ok/0079_impl_def.rast index 26825ef86..209711fc4 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0079_impl_def.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0079_impl_def.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..11 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] | 5 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0087_unsafe_impl.rast b/crates/ra_syntax/test_data/parser/inline/ok/0087_unsafe_impl.rast index e3223cee5..43c09affe 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0087_unsafe_impl.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0087_unsafe_impl.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..18 | 2 | [email protected] |
| 3 | [email protected] "unsafe" | 3 | [email protected] "unsafe" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] "impl" | 5 | [email protected] "impl" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0097_default_impl.rast b/crates/ra_syntax/test_data/parser/inline/ok/0097_default_impl.rast index 8a839a4a6..0a1b21d6e 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0097_default_impl.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0097_default_impl.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..19 | 2 | [email protected] |
| 3 | [email protected] "default" | 3 | [email protected] "default" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] "impl" | 5 | [email protected] "impl" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0118_impl_inner_attributes.rast b/crates/ra_syntax/test_data/parser/inline/ok/0118_impl_inner_attributes.rast index f2561abd6..141a7b203 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0118_impl_inner_attributes.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0118_impl_inner_attributes.rast | |||
| @@ -8,7 +8,7 @@ [email protected] | |||
| 8 | [email protected] "{" | 8 | [email protected] "{" |
| 9 | [email protected] "}" | 9 | [email protected] "}" |
| 10 | [email protected] "\n" | 10 | [email protected] "\n" |
| 11 | IMPL_DEF@9..93 | 11 | [email protected] |
| 12 | [email protected] "impl" | 12 | [email protected] "impl" |
| 13 | [email protected] " " | 13 | [email protected] " " |
| 14 | [email protected] | 14 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0132_default_fn_type.rast b/crates/ra_syntax/test_data/parser/inline/ok/0132_default_fn_type.rast index de02238df..b8d26a53a 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0132_default_fn_type.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0132_default_fn_type.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..68 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] | 5 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast b/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast index 07e555d63..8f197a19d 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0150_impl_type_params.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..28 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] | 4 | [email protected] |
| 5 | [email protected] "<" | 5 | [email protected] "<" |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0163_default_unsafe_fn.rast b/crates/ra_syntax/test_data/parser/inline/ok/0163_default_unsafe_fn.rast index 680f35445..1269621dc 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0163_default_unsafe_fn.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0163_default_unsafe_fn.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..49 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] | 5 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0163_default_unsafe_impl.rast b/crates/ra_syntax/test_data/parser/inline/ok/0163_default_unsafe_impl.rast index e0c338297..6bfe925af 100644 --- a/crates/ra_syntax/test_data/parser/inline/ok/0163_default_unsafe_impl.rast +++ b/crates/ra_syntax/test_data/parser/inline/ok/0163_default_unsafe_impl.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..26 | 2 | [email protected] |
| 3 | [email protected] "default" | 3 | [email protected] "default" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] "unsafe" | 5 | [email protected] "unsafe" |
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 c4ffc0a3d..ed29b0812 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 | |||
| @@ -8,7 +8,7 @@ [email protected] | |||
| 8 | [email protected] "Foo" | 8 | [email protected] "Foo" |
| 9 | [email protected] ";" | 9 | [email protected] ";" |
| 10 | [email protected] "\n\n" | 10 | [email protected] "\n\n" |
| 11 | IMPL_DEF@75..141 | 11 | [email protected] |
| 12 | [email protected] "impl" | 12 | [email protected] "impl" |
| 13 | [email protected] " " | 13 | [email protected] " " |
| 14 | [email protected] | 14 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast b/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast index 5ebc53618..139ce9046 100644 --- a/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast +++ b/crates/ra_syntax/test_data/parser/ok/0045_block_inner_attrs.rast | |||
| @@ -89,7 +89,7 @@ [email protected] | |||
| 89 | [email protected] "\n\n" | 89 | [email protected] "\n\n" |
| 90 | [email protected] "// https://github.com ..." | 90 | [email protected] "// https://github.com ..." |
| 91 | [email protected] "\n" | 91 | [email protected] "\n" |
| 92 | IMPL_DEF@524..685 | 92 | [email protected] |
| 93 | [email protected] "impl" | 93 | [email protected] "impl" |
| 94 | [email protected] " " | 94 | [email protected] " " |
| 95 | [email protected] | 95 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast b/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast index 7a574ebb4..2cc849784 100644 --- a/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast +++ b/crates/ra_syntax/test_data/parser/ok/0051_parameter_attrs.rast | |||
| @@ -251,7 +251,7 @@ [email protected] | |||
| 251 | [email protected] "\n" | 251 | [email protected] "\n" |
| 252 | [email protected] "}" | 252 | [email protected] "}" |
| 253 | [email protected] "\n\n" | 253 | [email protected] "\n\n" |
| 254 | IMPL_DEF@238..519 | 254 | [email protected] |
| 255 | [email protected] "impl" | 255 | [email protected] "impl" |
| 256 | [email protected] " " | 256 | [email protected] " " |
| 257 | [email protected] | 257 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast b/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast index ef0eca47c..453757c3c 100644 --- a/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast +++ b/crates/ra_syntax/test_data/parser/ok/0064_impl_fn_params.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..136 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] | 5 | [email protected] |
diff --git a/crates/ra_syntax/test_data/parser/ok/0066_default_const.rast b/crates/ra_syntax/test_data/parser/ok/0066_default_const.rast index 485efe20c..6246a31a6 100644 --- a/crates/ra_syntax/test_data/parser/ok/0066_default_const.rast +++ b/crates/ra_syntax/test_data/parser/ok/0066_default_const.rast | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | [email protected] | 1 | [email protected] |
| 2 | IMPL_DEF@0..45 | 2 | [email protected] |
| 3 | [email protected] "impl" | 3 | [email protected] "impl" |
| 4 | [email protected] " " | 4 | [email protected] " " |
| 5 | [email protected] | 5 | [email protected] |
