aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/generated/nodes.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-04-10 09:29:59 +0100
committerAleksey Kladov <[email protected]>2020-04-10 15:10:28 +0100
commit548f562ddad3bca515b304f82e110aeb319591e3 (patch)
tree71da0dc60264eee24fa809539f9d218b3c4c4a17 /crates/ra_syntax/src/ast/generated/nodes.rs
parent460c8bbdec8561a581d035f9767b7dd1ba36cfd7 (diff)
Other delimiters
Diffstat (limited to 'crates/ra_syntax/src/ast/generated/nodes.rs')
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs64
1 files changed, 32 insertions, 32 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index 3c917257c..0ae5db9fc 100644
--- a/crates/ra_syntax/src/ast/generated/nodes.rs
+++ b/crates/ra_syntax/src/ast/generated/nodes.rs
@@ -187,9 +187,9 @@ impl AstNode for TupleFieldDefList {
187 fn syntax(&self) -> &SyntaxNode { &self.syntax } 187 fn syntax(&self) -> &SyntaxNode { &self.syntax }
188} 188}
189impl TupleFieldDefList { 189impl TupleFieldDefList {
190 pub fn l_paren_token(&self) -> Option<LParen> { support::token(&self.syntax) } 190 pub fn l_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['(']) }
191 pub fn fields(&self) -> AstChildren<TupleFieldDef> { support::children(&self.syntax) } 191 pub fn fields(&self) -> AstChildren<TupleFieldDef> { support::children(&self.syntax) }
192 pub fn r_paren_token(&self) -> Option<RParen> { support::token(&self.syntax) } 192 pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![')']) }
193} 193}
194#[derive(Debug, Clone, PartialEq, Eq, Hash)] 194#[derive(Debug, Clone, PartialEq, Eq, Hash)]
195pub struct TupleFieldDef { 195pub struct TupleFieldDef {
@@ -483,9 +483,9 @@ impl AstNode for ParenType {
483 fn syntax(&self) -> &SyntaxNode { &self.syntax } 483 fn syntax(&self) -> &SyntaxNode { &self.syntax }
484} 484}
485impl ParenType { 485impl ParenType {
486 pub fn l_paren_token(&self) -> Option<LParen> { support::token(&self.syntax) } 486 pub fn l_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['(']) }
487 pub fn type_ref(&self) -> Option<TypeRef> { support::child(&self.syntax) } 487 pub fn type_ref(&self) -> Option<TypeRef> { support::child(&self.syntax) }
488 pub fn r_paren_token(&self) -> Option<RParen> { support::token(&self.syntax) } 488 pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![')']) }
489} 489}
490#[derive(Debug, Clone, PartialEq, Eq, Hash)] 490#[derive(Debug, Clone, PartialEq, Eq, Hash)]
491pub struct TupleType { 491pub struct TupleType {
@@ -503,9 +503,9 @@ impl AstNode for TupleType {
503 fn syntax(&self) -> &SyntaxNode { &self.syntax } 503 fn syntax(&self) -> &SyntaxNode { &self.syntax }
504} 504}
505impl TupleType { 505impl TupleType {
506 pub fn l_paren_token(&self) -> Option<LParen> { support::token(&self.syntax) } 506 pub fn l_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['(']) }
507 pub fn fields(&self) -> AstChildren<TypeRef> { support::children(&self.syntax) } 507 pub fn fields(&self) -> AstChildren<TypeRef> { support::children(&self.syntax) }
508 pub fn r_paren_token(&self) -> Option<RParen> { support::token(&self.syntax) } 508 pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![')']) }
509} 509}
510#[derive(Debug, Clone, PartialEq, Eq, Hash)] 510#[derive(Debug, Clone, PartialEq, Eq, Hash)]
511pub struct NeverType { 511pub struct NeverType {
@@ -580,11 +580,11 @@ impl AstNode for ArrayType {
580 fn syntax(&self) -> &SyntaxNode { &self.syntax } 580 fn syntax(&self) -> &SyntaxNode { &self.syntax }
581} 581}
582impl ArrayType { 582impl ArrayType {
583 pub fn l_brack_token(&self) -> Option<LBrack> { support::token(&self.syntax) } 583 pub fn l_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['[']) }
584 pub fn type_ref(&self) -> Option<TypeRef> { support::child(&self.syntax) } 584 pub fn type_ref(&self) -> Option<TypeRef> { support::child(&self.syntax) }
585 pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![;]) } 585 pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![;]) }
586 pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) } 586 pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) }
587 pub fn r_brack_token(&self) -> Option<RBrack> { support::token(&self.syntax) } 587 pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![']']) }
588} 588}
589#[derive(Debug, Clone, PartialEq, Eq, Hash)] 589#[derive(Debug, Clone, PartialEq, Eq, Hash)]
590pub struct SliceType { 590pub struct SliceType {
@@ -602,9 +602,9 @@ impl AstNode for SliceType {
602 fn syntax(&self) -> &SyntaxNode { &self.syntax } 602 fn syntax(&self) -> &SyntaxNode { &self.syntax }
603} 603}
604impl SliceType { 604impl SliceType {
605 pub fn l_brack_token(&self) -> Option<LBrack> { support::token(&self.syntax) } 605 pub fn l_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['[']) }
606 pub fn type_ref(&self) -> Option<TypeRef> { support::child(&self.syntax) } 606 pub fn type_ref(&self) -> Option<TypeRef> { support::child(&self.syntax) }
607 pub fn r_brack_token(&self) -> Option<RBrack> { support::token(&self.syntax) } 607 pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![']']) }
608} 608}
609#[derive(Debug, Clone, PartialEq, Eq, Hash)] 609#[derive(Debug, Clone, PartialEq, Eq, Hash)]
610pub struct ReferenceType { 610pub struct ReferenceType {
@@ -742,9 +742,9 @@ impl AstNode for TupleExpr {
742} 742}
743impl ast::AttrsOwner for TupleExpr {} 743impl ast::AttrsOwner for TupleExpr {}
744impl TupleExpr { 744impl TupleExpr {
745 pub fn l_paren_token(&self) -> Option<LParen> { support::token(&self.syntax) } 745 pub fn l_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['(']) }
746 pub fn exprs(&self) -> AstChildren<Expr> { support::children(&self.syntax) } 746 pub fn exprs(&self) -> AstChildren<Expr> { support::children(&self.syntax) }
747 pub fn r_paren_token(&self) -> Option<RParen> { support::token(&self.syntax) } 747 pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![')']) }
748} 748}
749#[derive(Debug, Clone, PartialEq, Eq, Hash)] 749#[derive(Debug, Clone, PartialEq, Eq, Hash)]
750pub struct ArrayExpr { 750pub struct ArrayExpr {
@@ -763,10 +763,10 @@ impl AstNode for ArrayExpr {
763} 763}
764impl ast::AttrsOwner for ArrayExpr {} 764impl ast::AttrsOwner for ArrayExpr {}
765impl ArrayExpr { 765impl ArrayExpr {
766 pub fn l_brack_token(&self) -> Option<LBrack> { support::token(&self.syntax) } 766 pub fn l_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['[']) }
767 pub fn exprs(&self) -> AstChildren<Expr> { support::children(&self.syntax) } 767 pub fn exprs(&self) -> AstChildren<Expr> { support::children(&self.syntax) }
768 pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![;]) } 768 pub fn semicolon_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![;]) }
769 pub fn r_brack_token(&self) -> Option<RBrack> { support::token(&self.syntax) } 769 pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![']']) }
770} 770}
771#[derive(Debug, Clone, PartialEq, Eq, Hash)] 771#[derive(Debug, Clone, PartialEq, Eq, Hash)]
772pub struct ParenExpr { 772pub struct ParenExpr {
@@ -785,9 +785,9 @@ impl AstNode for ParenExpr {
785} 785}
786impl ast::AttrsOwner for ParenExpr {} 786impl ast::AttrsOwner for ParenExpr {}
787impl ParenExpr { 787impl ParenExpr {
788 pub fn l_paren_token(&self) -> Option<LParen> { support::token(&self.syntax) } 788 pub fn l_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['(']) }
789 pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) } 789 pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) }
790 pub fn r_paren_token(&self) -> Option<RParen> { support::token(&self.syntax) } 790 pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![')']) }
791} 791}
792#[derive(Debug, Clone, PartialEq, Eq, Hash)] 792#[derive(Debug, Clone, PartialEq, Eq, Hash)]
793pub struct PathExpr { 793pub struct PathExpr {
@@ -1095,8 +1095,8 @@ impl AstNode for IndexExpr {
1095} 1095}
1096impl ast::AttrsOwner for IndexExpr {} 1096impl ast::AttrsOwner for IndexExpr {}
1097impl IndexExpr { 1097impl IndexExpr {
1098 pub fn l_brack_token(&self) -> Option<LBrack> { support::token(&self.syntax) } 1098 pub fn l_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['[']) }
1099 pub fn r_brack_token(&self) -> Option<RBrack> { support::token(&self.syntax) } 1099 pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![']']) }
1100} 1100}
1101#[derive(Debug, Clone, PartialEq, Eq, Hash)] 1101#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1102pub struct FieldExpr { 1102pub struct FieldExpr {
@@ -1478,9 +1478,9 @@ impl AstNode for ParenPat {
1478 fn syntax(&self) -> &SyntaxNode { &self.syntax } 1478 fn syntax(&self) -> &SyntaxNode { &self.syntax }
1479} 1479}
1480impl ParenPat { 1480impl ParenPat {
1481 pub fn l_paren_token(&self) -> Option<LParen> { support::token(&self.syntax) } 1481 pub fn l_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['(']) }
1482 pub fn pat(&self) -> Option<Pat> { support::child(&self.syntax) } 1482 pub fn pat(&self) -> Option<Pat> { support::child(&self.syntax) }
1483 pub fn r_paren_token(&self) -> Option<RParen> { support::token(&self.syntax) } 1483 pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![')']) }
1484} 1484}
1485#[derive(Debug, Clone, PartialEq, Eq, Hash)] 1485#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1486pub struct RefPat { 1486pub struct RefPat {
@@ -1614,9 +1614,9 @@ impl AstNode for SlicePat {
1614 fn syntax(&self) -> &SyntaxNode { &self.syntax } 1614 fn syntax(&self) -> &SyntaxNode { &self.syntax }
1615} 1615}
1616impl SlicePat { 1616impl SlicePat {
1617 pub fn l_brack_token(&self) -> Option<LBrack> { support::token(&self.syntax) } 1617 pub fn l_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['[']) }
1618 pub fn args(&self) -> AstChildren<Pat> { support::children(&self.syntax) } 1618 pub fn args(&self) -> AstChildren<Pat> { support::children(&self.syntax) }
1619 pub fn r_brack_token(&self) -> Option<RBrack> { support::token(&self.syntax) } 1619 pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![']']) }
1620} 1620}
1621#[derive(Debug, Clone, PartialEq, Eq, Hash)] 1621#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1622pub struct RangePat { 1622pub struct RangePat {
@@ -1756,9 +1756,9 @@ impl AstNode for TupleStructPat {
1756} 1756}
1757impl TupleStructPat { 1757impl TupleStructPat {
1758 pub fn path(&self) -> Option<Path> { support::child(&self.syntax) } 1758 pub fn path(&self) -> Option<Path> { support::child(&self.syntax) }
1759 pub fn l_paren_token(&self) -> Option<LParen> { support::token(&self.syntax) } 1759 pub fn l_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['(']) }
1760 pub fn args(&self) -> AstChildren<Pat> { support::children(&self.syntax) } 1760 pub fn args(&self) -> AstChildren<Pat> { support::children(&self.syntax) }
1761 pub fn r_paren_token(&self) -> Option<RParen> { support::token(&self.syntax) } 1761 pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![')']) }
1762} 1762}
1763#[derive(Debug, Clone, PartialEq, Eq, Hash)] 1763#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1764pub struct TuplePat { 1764pub struct TuplePat {
@@ -1776,9 +1776,9 @@ impl AstNode for TuplePat {
1776 fn syntax(&self) -> &SyntaxNode { &self.syntax } 1776 fn syntax(&self) -> &SyntaxNode { &self.syntax }
1777} 1777}
1778impl TuplePat { 1778impl TuplePat {
1779 pub fn l_paren_token(&self) -> Option<LParen> { support::token(&self.syntax) } 1779 pub fn l_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['(']) }
1780 pub fn args(&self) -> AstChildren<Pat> { support::children(&self.syntax) } 1780 pub fn args(&self) -> AstChildren<Pat> { support::children(&self.syntax) }
1781 pub fn r_paren_token(&self) -> Option<RParen> { support::token(&self.syntax) } 1781 pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![')']) }
1782} 1782}
1783#[derive(Debug, Clone, PartialEq, Eq, Hash)] 1783#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1784pub struct Visibility { 1784pub struct Visibility {
@@ -1879,11 +1879,11 @@ impl AstNode for Attr {
1879impl Attr { 1879impl Attr {
1880 pub fn pound_token(&self) -> Option<Pound> { support::token(&self.syntax) } 1880 pub fn pound_token(&self) -> Option<Pound> { support::token(&self.syntax) }
1881 pub fn excl_token(&self) -> Option<Excl> { support::token(&self.syntax) } 1881 pub fn excl_token(&self) -> Option<Excl> { support::token(&self.syntax) }
1882 pub fn l_brack_token(&self) -> Option<LBrack> { support::token(&self.syntax) } 1882 pub fn l_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['[']) }
1883 pub fn path(&self) -> Option<Path> { support::child(&self.syntax) } 1883 pub fn path(&self) -> Option<Path> { support::child(&self.syntax) }
1884 pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) } 1884 pub fn eq_token(&self) -> Option<Eq> { support::token(&self.syntax) }
1885 pub fn input(&self) -> Option<AttrInput> { support::child(&self.syntax) } 1885 pub fn input(&self) -> Option<AttrInput> { support::child(&self.syntax) }
1886 pub fn r_brack_token(&self) -> Option<RBrack> { support::token(&self.syntax) } 1886 pub fn r_brack_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![']']) }
1887} 1887}
1888#[derive(Debug, Clone, PartialEq, Eq, Hash)] 1888#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1889pub struct TokenTree { 1889pub struct TokenTree {
@@ -2186,10 +2186,10 @@ impl AstNode for ParamList {
2186 fn syntax(&self) -> &SyntaxNode { &self.syntax } 2186 fn syntax(&self) -> &SyntaxNode { &self.syntax }
2187} 2187}
2188impl ParamList { 2188impl ParamList {
2189 pub fn l_paren_token(&self) -> Option<LParen> { support::token(&self.syntax) } 2189 pub fn l_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['(']) }
2190 pub fn self_param(&self) -> Option<SelfParam> { support::child(&self.syntax) } 2190 pub fn self_param(&self) -> Option<SelfParam> { support::child(&self.syntax) }
2191 pub fn params(&self) -> AstChildren<Param> { support::children(&self.syntax) } 2191 pub fn params(&self) -> AstChildren<Param> { support::children(&self.syntax) }
2192 pub fn r_paren_token(&self) -> Option<RParen> { support::token(&self.syntax) } 2192 pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![')']) }
2193} 2193}
2194#[derive(Debug, Clone, PartialEq, Eq, Hash)] 2194#[derive(Debug, Clone, PartialEq, Eq, Hash)]
2195pub struct SelfParam { 2195pub struct SelfParam {
@@ -2354,9 +2354,9 @@ impl AstNode for ArgList {
2354 fn syntax(&self) -> &SyntaxNode { &self.syntax } 2354 fn syntax(&self) -> &SyntaxNode { &self.syntax }
2355} 2355}
2356impl ArgList { 2356impl ArgList {
2357 pub fn l_paren_token(&self) -> Option<LParen> { support::token(&self.syntax) } 2357 pub fn l_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['(']) }
2358 pub fn args(&self) -> AstChildren<Expr> { support::children(&self.syntax) } 2358 pub fn args(&self) -> AstChildren<Expr> { support::children(&self.syntax) }
2359 pub fn r_paren_token(&self) -> Option<RParen> { support::token(&self.syntax) } 2359 pub fn r_paren_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T![')']) }
2360} 2360}
2361#[derive(Debug, Clone, PartialEq, Eq, Hash)] 2361#[derive(Debug, Clone, PartialEq, Eq, Hash)]
2362pub struct Path { 2362pub struct Path {