Introduce proper type for TypeVar's, mark anything not a lowercase ident as malformed

This commit is contained in:
Joshua Warner 2025-01-08 21:12:53 -08:00
parent a9c25563b2
commit d43ad92789
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
65 changed files with 729 additions and 460 deletions

View file

@ -790,7 +790,9 @@ impl IterTokens for Loc<Pattern<'_>> {
Loc::at(region, *p).iter_tokens(arena)
}
Pattern::QualifiedIdentifier { .. } => onetoken(Token::Variable, region, arena),
Pattern::Malformed(_) | Pattern::MalformedIdent(_, _) => bumpvec![in arena;],
Pattern::Malformed(_) | Pattern::MalformedIdent(_, _) | Pattern::MalformedExpr(_) => {
bumpvec![in arena;]
}
}
}
}