Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore incompleteCode flag #1630

Merged
merged 8 commits into from
Dec 1, 2019
Prev Previous commit
Next Next commit
Loosen CallDefinitionClause MultiResolve invalid ResolveResult
Apply same name prefix precondition and then set to valid iff resolved
final arity within range and the name is an exact match.
  • Loading branch information
KronicDeth committed Nov 29, 2019
commit 6440e49f22c394fb15ebf559456e8de05295589f
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ private constructor(private val name: String,
nameArityRange(element)?.let { nameArityRange ->
val name = nameArityRange.name

if (name == this.name) {
if (name.startsWith(this.name)) {
val arityInterval = ArityInterval.arityInterval(nameArityRange, state)
val validResult = resolvedFinalArity in arityInterval
val validResult = (resolvedFinalArity in arityInterval) && name == this.name

addToResolveResults(element, validResult, state)
} else if (incompleteCode && name.startsWith(this.name)) {
addToResolveResults(element, false, state)
} else {
null
}
Expand Down