aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast/generated/nodes.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/ast/generated/nodes.rs')
-rw-r--r--crates/ra_syntax/src/ast/generated/nodes.rs36
1 files changed, 18 insertions, 18 deletions
diff --git a/crates/ra_syntax/src/ast/generated/nodes.rs b/crates/ra_syntax/src/ast/generated/nodes.rs
index fae76a7a8..3c917257c 100644
--- a/crates/ra_syntax/src/ast/generated/nodes.rs
+++ b/crates/ra_syntax/src/ast/generated/nodes.rs
@@ -146,9 +146,9 @@ impl AstNode for RecordFieldDefList {
146 fn syntax(&self) -> &SyntaxNode { &self.syntax } 146 fn syntax(&self) -> &SyntaxNode { &self.syntax }
147} 147}
148impl RecordFieldDefList { 148impl RecordFieldDefList {
149 pub fn l_curly_token(&self) -> Option<LCurly> { support::token(&self.syntax) } 149 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['{']) }
150 pub fn fields(&self) -> AstChildren<RecordFieldDef> { support::children(&self.syntax) } 150 pub fn fields(&self) -> AstChildren<RecordFieldDef> { support::children(&self.syntax) }
151 pub fn r_curly_token(&self) -> Option<RCurly> { support::token(&self.syntax) } 151 pub fn r_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['}']) }
152} 152}
153#[derive(Debug, Clone, PartialEq, Eq, Hash)] 153#[derive(Debug, Clone, PartialEq, Eq, Hash)]
154pub struct RecordFieldDef { 154pub struct RecordFieldDef {
@@ -251,9 +251,9 @@ impl AstNode for EnumVariantList {
251 fn syntax(&self) -> &SyntaxNode { &self.syntax } 251 fn syntax(&self) -> &SyntaxNode { &self.syntax }
252} 252}
253impl EnumVariantList { 253impl EnumVariantList {
254 pub fn l_curly_token(&self) -> Option<LCurly> { support::token(&self.syntax) } 254 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['{']) }
255 pub fn variants(&self) -> AstChildren<EnumVariant> { support::children(&self.syntax) } 255 pub fn variants(&self) -> AstChildren<EnumVariant> { support::children(&self.syntax) }
256 pub fn r_curly_token(&self) -> Option<RCurly> { support::token(&self.syntax) } 256 pub fn r_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['}']) }
257} 257}
258#[derive(Debug, Clone, PartialEq, Eq, Hash)] 258#[derive(Debug, Clone, PartialEq, Eq, Hash)]
259pub struct EnumVariant { 259pub struct EnumVariant {
@@ -347,9 +347,9 @@ impl AstNode for ItemList {
347} 347}
348impl ast::ModuleItemOwner for ItemList {} 348impl ast::ModuleItemOwner for ItemList {}
349impl ItemList { 349impl ItemList {
350 pub fn l_curly_token(&self) -> Option<LCurly> { support::token(&self.syntax) } 350 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['{']) }
351 pub fn impl_items(&self) -> AstChildren<ImplItem> { support::children(&self.syntax) } 351 pub fn impl_items(&self) -> AstChildren<ImplItem> { support::children(&self.syntax) }
352 pub fn r_curly_token(&self) -> Option<RCurly> { support::token(&self.syntax) } 352 pub fn r_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['}']) }
353} 353}
354#[derive(Debug, Clone, PartialEq, Eq, Hash)] 354#[derive(Debug, Clone, PartialEq, Eq, Hash)]
355pub struct ConstDef { 355pub struct ConstDef {
@@ -1337,9 +1337,9 @@ impl AstNode for MatchArmList {
1337} 1337}
1338impl ast::AttrsOwner for MatchArmList {} 1338impl ast::AttrsOwner for MatchArmList {}
1339impl MatchArmList { 1339impl MatchArmList {
1340 pub fn l_curly_token(&self) -> Option<LCurly> { support::token(&self.syntax) } 1340 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['{']) }
1341 pub fn arms(&self) -> AstChildren<MatchArm> { support::children(&self.syntax) } 1341 pub fn arms(&self) -> AstChildren<MatchArm> { support::children(&self.syntax) }
1342 pub fn r_curly_token(&self) -> Option<RCurly> { support::token(&self.syntax) } 1342 pub fn r_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['}']) }
1343} 1343}
1344#[derive(Debug, Clone, PartialEq, Eq, Hash)] 1344#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1345pub struct MatchArm { 1345pub struct MatchArm {
@@ -1417,11 +1417,11 @@ impl AstNode for RecordFieldList {
1417 fn syntax(&self) -> &SyntaxNode { &self.syntax } 1417 fn syntax(&self) -> &SyntaxNode { &self.syntax }
1418} 1418}
1419impl RecordFieldList { 1419impl RecordFieldList {
1420 pub fn l_curly_token(&self) -> Option<LCurly> { support::token(&self.syntax) } 1420 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['{']) }
1421 pub fn fields(&self) -> AstChildren<RecordField> { support::children(&self.syntax) } 1421 pub fn fields(&self) -> AstChildren<RecordField> { support::children(&self.syntax) }
1422 pub fn dotdot_token(&self) -> Option<Dotdot> { support::token(&self.syntax) } 1422 pub fn dotdot_token(&self) -> Option<Dotdot> { support::token(&self.syntax) }
1423 pub fn spread(&self) -> Option<Expr> { support::child(&self.syntax) } 1423 pub fn spread(&self) -> Option<Expr> { support::child(&self.syntax) }
1424 pub fn r_curly_token(&self) -> Option<RCurly> { support::token(&self.syntax) } 1424 pub fn r_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['}']) }
1425} 1425}
1426#[derive(Debug, Clone, PartialEq, Eq, Hash)] 1426#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1427pub struct RecordField { 1427pub struct RecordField {
@@ -1709,14 +1709,14 @@ impl AstNode for RecordFieldPatList {
1709 fn syntax(&self) -> &SyntaxNode { &self.syntax } 1709 fn syntax(&self) -> &SyntaxNode { &self.syntax }
1710} 1710}
1711impl RecordFieldPatList { 1711impl RecordFieldPatList {
1712 pub fn l_curly_token(&self) -> Option<LCurly> { support::token(&self.syntax) } 1712 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['{']) }
1713 pub fn pats(&self) -> AstChildren<RecordInnerPat> { support::children(&self.syntax) } 1713 pub fn pats(&self) -> AstChildren<RecordInnerPat> { support::children(&self.syntax) }
1714 pub fn record_field_pats(&self) -> AstChildren<RecordFieldPat> { 1714 pub fn record_field_pats(&self) -> AstChildren<RecordFieldPat> {
1715 support::children(&self.syntax) 1715 support::children(&self.syntax)
1716 } 1716 }
1717 pub fn bind_pats(&self) -> AstChildren<BindPat> { support::children(&self.syntax) } 1717 pub fn bind_pats(&self) -> AstChildren<BindPat> { support::children(&self.syntax) }
1718 pub fn dotdot_token(&self) -> Option<Dotdot> { support::token(&self.syntax) } 1718 pub fn dotdot_token(&self) -> Option<Dotdot> { support::token(&self.syntax) }
1719 pub fn r_curly_token(&self) -> Option<RCurly> { support::token(&self.syntax) } 1719 pub fn r_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['}']) }
1720} 1720}
1721#[derive(Debug, Clone, PartialEq, Eq, Hash)] 1721#[derive(Debug, Clone, PartialEq, Eq, Hash)]
1722pub struct RecordFieldPat { 1722pub struct RecordFieldPat {
@@ -2165,10 +2165,10 @@ impl AstNode for Block {
2165impl ast::AttrsOwner for Block {} 2165impl ast::AttrsOwner for Block {}
2166impl ast::ModuleItemOwner for Block {} 2166impl ast::ModuleItemOwner for Block {}
2167impl Block { 2167impl Block {
2168 pub fn l_curly_token(&self) -> Option<LCurly> { support::token(&self.syntax) } 2168 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['{']) }
2169 pub fn statements(&self) -> AstChildren<Stmt> { support::children(&self.syntax) } 2169 pub fn statements(&self) -> AstChildren<Stmt> { support::children(&self.syntax) }
2170 pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) } 2170 pub fn expr(&self) -> Option<Expr> { support::child(&self.syntax) }
2171 pub fn r_curly_token(&self) -> Option<RCurly> { support::token(&self.syntax) } 2171 pub fn r_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['}']) }
2172} 2172}
2173#[derive(Debug, Clone, PartialEq, Eq, Hash)] 2173#[derive(Debug, Clone, PartialEq, Eq, Hash)]
2174pub struct ParamList { 2174pub struct ParamList {
@@ -2311,9 +2311,9 @@ impl AstNode for UseTreeList {
2311 fn syntax(&self) -> &SyntaxNode { &self.syntax } 2311 fn syntax(&self) -> &SyntaxNode { &self.syntax }
2312} 2312}
2313impl UseTreeList { 2313impl UseTreeList {
2314 pub fn l_curly_token(&self) -> Option<LCurly> { support::token(&self.syntax) } 2314 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['{']) }
2315 pub fn use_trees(&self) -> AstChildren<UseTree> { support::children(&self.syntax) } 2315 pub fn use_trees(&self) -> AstChildren<UseTree> { support::children(&self.syntax) }
2316 pub fn r_curly_token(&self) -> Option<RCurly> { support::token(&self.syntax) } 2316 pub fn r_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['}']) }
2317} 2317}
2318#[derive(Debug, Clone, PartialEq, Eq, Hash)] 2318#[derive(Debug, Clone, PartialEq, Eq, Hash)]
2319pub struct ExternCrateItem { 2319pub struct ExternCrateItem {
@@ -2557,9 +2557,9 @@ impl AstNode for ExternItemList {
2557} 2557}
2558impl ast::ModuleItemOwner for ExternItemList {} 2558impl ast::ModuleItemOwner for ExternItemList {}
2559impl ExternItemList { 2559impl ExternItemList {
2560 pub fn l_curly_token(&self) -> Option<LCurly> { support::token(&self.syntax) } 2560 pub fn l_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['{']) }
2561 pub fn extern_items(&self) -> AstChildren<ExternItem> { support::children(&self.syntax) } 2561 pub fn extern_items(&self) -> AstChildren<ExternItem> { support::children(&self.syntax) }
2562 pub fn r_curly_token(&self) -> Option<RCurly> { support::token(&self.syntax) } 2562 pub fn r_curly_token(&self) -> Option<SyntaxToken> { support::token2(&self.syntax, T!['}']) }
2563} 2563}
2564#[derive(Debug, Clone, PartialEq, Eq, Hash)] 2564#[derive(Debug, Clone, PartialEq, Eq, Hash)]
2565pub struct ExternBlock { 2565pub struct ExternBlock {