Fix function calls

This commit is contained in:
Alan Du 2018-10-17 19:25:37 -04:00
parent fc8024de51
commit a5da770ec6
10 changed files with 9 additions and 12 deletions

View file

@ -183,8 +183,7 @@ impl Link {
root: ast::Root<'a>,
) -> ast::Module<'a> {
modules(root)
.filter(|(name, _)| name == &tree.link(self).name)
.next()
.find(|(name, _)| name == &tree.link(self).name)
.unwrap()
.1
}

View file

@ -393,7 +393,7 @@ impl AnalysisImpl {
// If we have a method call eat the first param since it's just self.
if has_self {
commas = commas + 1;
commas += 1;
}
current_parameter = Some(commas);