diff options
author | Florian Diebold <[email protected]> | 2018-12-25 12:54:38 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2018-12-25 14:16:42 +0000 |
commit | 55c941cd9fb90c9340f01981e113aabd058b185b (patch) | |
tree | f07828a8eaabab7c20b2b4d3b98519956b981f17 /crates/ra_syntax/src/ast | |
parent | 07a72859650254d8ba326e2c9683ae52164cb3b5 (diff) |
Type field accesses
Diffstat (limited to 'crates/ra_syntax/src/ast')
-rw-r--r-- | crates/ra_syntax/src/ast/generated.rs | 10 |
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 | ||
1126 | impl<'a> FieldExpr<'a> {} | 1126 | impl<'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,)] |