aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r--crates/ra_syntax/src/ast/generated.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast/generated.rs b/crates/ra_syntax/src/ast/generated.rs
index 35a9770a6..4e0550487 100644
--- a/crates/ra_syntax/src/ast/generated.rs
+++ b/crates/ra_syntax/src/ast/generated.rs
@@ -1123,7 +1123,15 @@ impl<R: TreeRoot<RaTypes>> FieldExprNode<R> {
1123} 1123}
1124 1124
1125 1125
1126impl<'a> FieldExpr<'a> {} 1126impl<'a> FieldExpr<'a> {
1127 pub fn expr(self) -> Option<Expr<'a>> {
1128 super::child_opt(self)
1129 }
1130
1131 pub fn name_ref(self) -> Option<NameRef<'a>> {
1132 super::child_opt(self)
1133 }
1134}
1127 1135
1128// FieldPatList 1136// FieldPatList
1129#[derive(Debug, Clone, Copy,)] 1137#[derive(Debug, Clone, Copy,)]