diff options
author | Aleksey Kladov <[email protected]> | 2020-04-10 09:27:23 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-10 15:10:28 +0100 |
commit | 460c8bbdec8561a581d035f9767b7dd1ba36cfd7 (patch) | |
tree | 8bfba509776ea2c58ca6b47c668603c63a4b9d4f /crates/ra_syntax/src/ast/generated/nodes.rs | |
parent | 1c5d8591952cbb017fd6679a1ef29a86e1499025 (diff) |
Curley tokens
Diffstat (limited to 'crates/ra_syntax/src/ast/generated/nodes.rs')
-rw-r--r-- | crates/ra_syntax/src/ast/generated/nodes.rs | 36 |
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 | } |
148 | impl RecordFieldDefList { | 148 | impl 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)] |
154 | pub struct RecordFieldDef { | 154 | pub 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 | } |
253 | impl EnumVariantList { | 253 | impl 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)] |
259 | pub struct EnumVariant { | 259 | pub struct EnumVariant { |
@@ -347,9 +347,9 @@ impl AstNode for ItemList { | |||
347 | } | 347 | } |
348 | impl ast::ModuleItemOwner for ItemList {} | 348 | impl ast::ModuleItemOwner for ItemList {} |
349 | impl ItemList { | 349 | impl 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)] |
355 | pub struct ConstDef { | 355 | pub struct ConstDef { |
@@ -1337,9 +1337,9 @@ impl AstNode for MatchArmList { | |||
1337 | } | 1337 | } |
1338 | impl ast::AttrsOwner for MatchArmList {} | 1338 | impl ast::AttrsOwner for MatchArmList {} |
1339 | impl MatchArmList { | 1339 | impl 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)] |
1345 | pub struct MatchArm { | 1345 | pub 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 | } |
1419 | impl RecordFieldList { | 1419 | impl 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)] |
1427 | pub struct RecordField { | 1427 | pub 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 | } |
1711 | impl RecordFieldPatList { | 1711 | impl 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)] |
1722 | pub struct RecordFieldPat { | 1722 | pub struct RecordFieldPat { |
@@ -2165,10 +2165,10 @@ impl AstNode for Block { | |||
2165 | impl ast::AttrsOwner for Block {} | 2165 | impl ast::AttrsOwner for Block {} |
2166 | impl ast::ModuleItemOwner for Block {} | 2166 | impl ast::ModuleItemOwner for Block {} |
2167 | impl Block { | 2167 | impl 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)] |
2174 | pub struct ParamList { | 2174 | pub 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 | } |
2313 | impl UseTreeList { | 2313 | impl 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)] |
2319 | pub struct ExternCrateItem { | 2319 | pub struct ExternCrateItem { |
@@ -2557,9 +2557,9 @@ impl AstNode for ExternItemList { | |||
2557 | } | 2557 | } |
2558 | impl ast::ModuleItemOwner for ExternItemList {} | 2558 | impl ast::ModuleItemOwner for ExternItemList {} |
2559 | impl ExternItemList { | 2559 | impl 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)] |
2565 | pub struct ExternBlock { | 2565 | pub struct ExternBlock { |