No hardcoded nothing callables needed anymore
This commit is contained in:
@@ -55,7 +55,8 @@ public abstract class ElementResolver protected(
|
||||
|
||||
public open fun hasElementAdditionalResolveCached(jetElement: JetElement): Boolean = false
|
||||
|
||||
protected open fun probablyNothingCallableNames(): ProbablyNothingCallableNames = DefaultNothingCallableNames
|
||||
protected open fun probablyNothingCallableNames(): ProbablyNothingCallableNames
|
||||
= throw UnsupportedOperationException("Cannot use partial body resolve with no Nothing-functions index");
|
||||
|
||||
public fun resolveToElement(jetElement: JetElement, bodyResolveMode: BodyResolveMode = BodyResolveMode.FULL): BindingContext {
|
||||
var jetElement = jetElement
|
||||
|
||||
+2
-9
@@ -17,13 +17,6 @@
|
||||
package org.jetbrains.kotlin.resolve.lazy
|
||||
|
||||
public trait ProbablyNothingCallableNames {
|
||||
public fun functionNames(): Set<String>
|
||||
public fun propertyNames(): Set<String>
|
||||
}
|
||||
|
||||
public object DefaultNothingCallableNames : ProbablyNothingCallableNames {
|
||||
private val hardcodedNames = setOf("error")
|
||||
|
||||
override fun functionNames() = hardcodedNames
|
||||
override fun propertyNames(): Set<String> = setOf()
|
||||
public fun functionNames(): Collection<String>
|
||||
public fun propertyNames(): Collection<String>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user