diff options
Diffstat (limited to 'crates/ra_syntax/src/ast/generated/nodes.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/generated/nodes.rs | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs index 0ae5db9fc..106a91c12 100644 --- a/crates/ra_syntax/src/ast/generated/nodes.rs +++ b/crates/ra_syntax/src/ast/generated/nodes.rs | |||
@@ -276,7 +276,7 @@ impl ast::DocCommentsOwner for EnumVariant {} | |||
276 | impl ast::AttrsOwner for EnumVariant {} | 276 | impl ast::AttrsOwner for EnumVariant {} |
277 | impl EnumVariant { | 277 | impl EnumVariant { |
278 | pub fn field_def_list(&self) -> Option<FieldDefList> { support::child(&self.syntax) } | 278 | pub fn field_def_list(&self) -> Option<FieldDefList> { support::child(&self.syntax) } |
279 | pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } | 279 | pub fn eq_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![=]) } |
280 | pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) } | 280 | pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) } |
281 | } | 281 | } |
282 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 282 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
@@ -377,7 +377,7 @@ impl ConstDef { | |||
377 | support::token2(&self.syntax, T![default]) | 377 | support::token2(&self.syntax, T![default]) |
378 | } | 378 | } |
379 | pub fn const_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![const]) } | 379 | pub fn const_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![const]) } |
380 | pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } | 380 | pub fn eq_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![=]) } |
381 | pub fn body(&self) -> Option<Expr> { support::child(&self.syntax) } | 381 | pub fn body(&self) -> Option<Expr> { support::child(&self.syntax) } |
382 | pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![;]) } | 382 | pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![;]) } |
383 | } | 383 | } |
@@ -405,7 +405,7 @@ impl ast::TypeAscriptionOwner for StaticDef {} | |||
405 | impl StaticDef { | 405 | impl StaticDef { |
406 | pub fn static_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![static]) } | 406 | pub fn static_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![static]) } |
407 | pub fn mut_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![mut]) } | 407 | pub fn mut_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![mut]) } |
408 | pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } | 408 | pub fn eq_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![=]) } |
409 | pub fn body(&self) -> Option<Expr> { support::child(&self.syntax) } | 409 | pub fn body(&self) -> Option<Expr> { support::child(&self.syntax) } |
410 | pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![;]) } | 410 | pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![;]) } |
411 | } | 411 | } |
@@ -435,7 +435,7 @@ impl TypeAliasDef { | |||
435 | support::token2(&self.syntax, T![default]) | 435 | support::token2(&self.syntax, T![default]) |
436 | } | 436 | } |
437 | pub fn type_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![type]) } | 437 | pub fn type_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![type]) } |
438 | pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } | 438 | pub fn eq_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![=]) } |
439 | pub fn type_ref(&self) -> Option<TypeRef> { support::child(&self.syntax) } | 439 | pub fn type_ref(&self) -> Option<TypeRef> { support::child(&self.syntax) } |
440 | pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![;]) } | 440 | pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![;]) } |
441 | } | 441 | } |
@@ -1278,9 +1278,7 @@ impl AstNode for BinExpr { | |||
1278 | fn syntax(&self) -> &SyntaxNode { &self.syntax } | 1278 | fn syntax(&self) -> &SyntaxNode { &self.syntax } |
1279 | } | 1279 | } |
1280 | impl ast::AttrsOwner for BinExpr {} | 1280 | impl ast::AttrsOwner for BinExpr {} |
1281 | impl BinExpr { | 1281 | impl BinExpr {} |
1282 | pub fn bin_op_token(&self) -> Option<BinOp> { support::token(&self.syntax) } | ||
1283 | } | ||
1284 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1282 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
1285 | pub struct Literal { | 1283 | pub struct Literal { |
1286 | pub(crate) syntax: SyntaxNode, | 1284 | pub(crate) syntax: SyntaxNode, |
@@ -1881,7 +1879,7 @@ impl Attr { | |||
1881 | pub fn excl_token(&self) -> Option<Excl> { support::token(&self.syntax) } | 1879 | pub fn excl_token(&self) -> Option<Excl> { support::token(&self.syntax) } |
1882 | pub fn l_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['[']) } | 1880 | pub fn l_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['[']) } |
1883 | pub fn path(&self) -> Option<Path> { support::child(&self.syntax) } | 1881 | pub fn path(&self) -> Option<Path> { support::child(&self.syntax) } |
1884 | pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } | 1882 | pub fn eq_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![=]) } |
1885 | pub fn input(&self) -> Option<AttrInput> { support::child(&self.syntax) } | 1883 | pub fn input(&self) -> Option<AttrInput> { support::child(&self.syntax) } |
1886 | pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![']']) } | 1884 | pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![']']) } |
1887 | } | 1885 | } |
@@ -1943,7 +1941,7 @@ impl ast::NameOwner for TypeParam {} | |||
1943 | impl ast::AttrsOwner for TypeParam {} | 1941 | impl ast::AttrsOwner for TypeParam {} |
1944 | impl ast::TypeBoundsOwner for TypeParam {} | 1942 | impl ast::TypeBoundsOwner for TypeParam {} |
1945 | impl TypeParam { | 1943 | impl TypeParam { |
1946 | pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } | 1944 | pub fn eq_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![=]) } |
1947 | pub fn default_type(&self) -> Option<TypeRef> { support::child(&self.syntax) } | 1945 | pub fn default_type(&self) -> Option<TypeRef> { support::child(&self.syntax) } |
1948 | } | 1946 | } |
1949 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1947 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
@@ -1965,7 +1963,7 @@ impl ast::NameOwner for ConstParam {} | |||
1965 | impl ast::AttrsOwner for ConstParam {} | 1963 | impl ast::AttrsOwner for ConstParam {} |
1966 | impl ast::TypeAscriptionOwner for ConstParam {} | 1964 | impl ast::TypeAscriptionOwner for ConstParam {} |
1967 | impl ConstParam { | 1965 | impl ConstParam { |
1968 | pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } | 1966 | pub fn eq_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![=]) } |
1969 | pub fn default_val(&self) -> Option<Expr> { support::child(&self.syntax) } | 1967 | pub fn default_val(&self) -> Option<Expr> { support::child(&self.syntax) } |
1970 | } | 1968 | } |
1971 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 1969 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
@@ -2122,7 +2120,7 @@ impl ast::TypeAscriptionOwner for LetStmt {} | |||
2122 | impl LetStmt { | 2120 | impl LetStmt { |
2123 | pub fn let_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![let]) } | 2121 | pub fn let_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![let]) } |
2124 | pub fn pat(&self) -> Option<Pat> { support::child(&self.syntax) } | 2122 | pub fn pat(&self) -> Option<Pat> { support::child(&self.syntax) } |
2125 | pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } | 2123 | pub fn eq_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![=]) } |
2126 | pub fn initializer(&self) -> Option<Expr> { support::child(&self.syntax) } | 2124 | pub fn initializer(&self) -> Option<Expr> { support::child(&self.syntax) } |
2127 | pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![;]) } | 2125 | pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![;]) } |
2128 | } | 2126 | } |
@@ -2144,7 +2142,7 @@ impl AstNode for Condition { | |||
2144 | impl Condition { | 2142 | impl Condition { |
2145 | pub fn let_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![let]) } | 2143 | pub fn let_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![let]) } |
2146 | pub fn pat(&self) -> Option<Pat> { support::child(&self.syntax) } | 2144 | pub fn pat(&self) -> Option<Pat> { support::child(&self.syntax) } |
2147 | pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } | 2145 | pub fn eq_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![=]) } |
2148 | pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) } | 2146 | pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) } |
2149 | } | 2147 | } |
2150 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2148 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
@@ -2463,7 +2461,7 @@ impl AstNode for AssocTypeArg { | |||
2463 | impl ast::TypeBoundsOwner for AssocTypeArg {} | 2461 | impl ast::TypeBoundsOwner for AssocTypeArg {} |
2464 | impl AssocTypeArg { | 2462 | impl AssocTypeArg { |
2465 | pub fn name_ref(&self) -> Option<NameRef> { support::child(&self.syntax) } | 2463 | pub fn name_ref(&self) -> Option<NameRef> { support::child(&self.syntax) } |
2466 | pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } | 2464 | pub fn eq_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![=]) } |
2467 | pub fn type_ref(&self) -> Option<TypeRef> { support::child(&self.syntax) } | 2465 | pub fn type_ref(&self) -> Option<TypeRef> { support::child(&self.syntax) } |
2468 | } | 2466 | } |
2469 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2467 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
@@ -2501,7 +2499,7 @@ impl AstNode for ConstArg { | |||
2501 | } | 2499 | } |
2502 | impl ConstArg { | 2500 | impl ConstArg { |
2503 | pub fn literal(&self) -> Option<Literal> { support::child(&self.syntax) } | 2501 | pub fn literal(&self) -> Option<Literal> { support::child(&self.syntax) } |
2504 | pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } | 2502 | pub fn eq_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![=]) } |
2505 | pub fn block_expr(&self) -> Option<BlockExpr> { support::child(&self.syntax) } | 2503 | pub fn block_expr(&self) -> Option<BlockExpr> { support::child(&self.syntax) } |
2506 | } | 2504 | } |
2507 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | 2505 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] |
@@ -2597,7 +2595,7 @@ impl AstNode for MetaItem { | |||
2597 | } | 2595 | } |
2598 | impl MetaItem { | 2596 | impl MetaItem { |
2599 | pub fn path(&self) -> Option<Path> { support::child(&self.syntax) } | 2597 | pub fn path(&self) -> Option<Path> { support::child(&self.syntax) } |
2600 | pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } | 2598 | pub fn eq_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![=]) } |
2601 | pub fn attr_input(&self) -> Option<AttrInput> { support::child(&self.syntax) } | 2599 | pub fn attr_input(&self) -> Option<AttrInput> { support::child(&self.syntax) } |
2602 | pub fn nested_meta_items(&self) -> AstChildren<MetaItem> { support::children(&self.syntax) } | 2600 | pub fn nested_meta_items(&self) -> AstChildren<MetaItem> { support::children(&self.syntax) } |
2603 | } | 2601 | } |