Make let statements kind of work

This commit is contained in:
Florian Diebold 2018-12-23 13:22:29 +01:00
parent 5d60937090
commit 93ffbf80c6
5 changed files with 53 additions and 8 deletions

View file

@ -1561,6 +1561,10 @@ impl<'a> LetStmt<'a> {
super::child_opt(self)
}
pub fn type_ref(self) -> Option<TypeRef<'a>> {
super::child_opt(self)
}
pub fn initializer(self) -> Option<Expr<'a>> {
super::child_opt(self)
}

View file

@ -499,6 +499,7 @@ Grammar(
),
"LetStmt": ( options: [
["pat", "Pat"],
["type_ref", "TypeRef"],
["initializer", "Expr"],
]),
"Condition": (