Implement basic completion for fields

This commit is contained in:
Florian Diebold
2018-12-25 15:15:40 +01:00
parent 0d724ea572
commit ab0b63992b
10 changed files with 156 additions and 12 deletions

View File

@@ -2030,6 +2030,10 @@ impl<'a> MethodCallExpr<'a> {
pub fn expr(self) -> Option<Expr<'a>> {
super::child_opt(self)
}
pub fn name_ref(self) -> Option<NameRef<'a>> {
super::child_opt(self)
}
}
// Module

View File

@@ -403,7 +403,7 @@ Grammar(
),
"MethodCallExpr": (
traits: ["ArgListOwner"],
options: [ "Expr" ],
options: [ "Expr", "NameRef" ],
),
"IndexExpr": (),
"FieldExpr": (options: ["Expr", "NameRef"]),