initial mod resolve

This commit is contained in:
Aleksey Kladov
2018-08-17 15:37:17 +03:00
parent 55e87e0b74
commit 081c16c776
6 changed files with 111 additions and 23 deletions

View File

@@ -118,3 +118,12 @@ impl <R: TreeRoot> ImplItem<R> {
(first, second)
}
}
impl <R: TreeRoot> Module<R> {
pub fn has_semi(&self) -> bool {
match self.syntax_ref().last_child() {
None => false,
Some(node) => node.kind() == SEMI,
}
}
}