Merge pull request #13 from jntrnr/ci

Add CI
This commit is contained in:
JT
2021-09-04 20:09:05 +12:00
committed by GitHub
9 changed files with 70 additions and 40 deletions

View File

@ -249,9 +249,8 @@ impl Signature {
pub fn num_positionals_after(&self, idx: usize) -> usize {
let mut total = 0;
let mut curr = 0;
for positional in &self.required_positional {
for (curr, positional) in self.required_positional.iter().enumerate() {
match positional.shape {
SyntaxShape::Keyword(..) => {
// Keywords have a required argument, so account for that
@ -265,7 +264,6 @@ impl Signature {
}
}
}
curr += 1;
}
total
}