Add LanguageFeatureSettings parameter to single method in checkers interfaces
This parameter will be used further for target-dependent checks Also introduce SimpleDeclarationChecker/SimpleCallChecker sub-interfaces (more weak ones) Implementing them instead of base checkers is more convenient in most cases
This commit is contained in:
+2
-2
@@ -22,11 +22,11 @@ import org.jetbrains.kotlin.android.synthetic.res.AndroidSyntheticProperty
|
||||
import org.jetbrains.kotlin.descriptors.PropertyDescriptor
|
||||
import org.jetbrains.kotlin.diagnostics.DiagnosticSink
|
||||
import org.jetbrains.kotlin.psi.KtExpression
|
||||
import org.jetbrains.kotlin.resolve.calls.checkers.CallChecker
|
||||
import org.jetbrains.kotlin.resolve.calls.checkers.SimpleCallChecker
|
||||
import org.jetbrains.kotlin.resolve.calls.context.BasicCallResolutionContext
|
||||
import org.jetbrains.kotlin.resolve.calls.model.ResolvedCall
|
||||
|
||||
class AndroidExtensionPropertiesCallChecker : CallChecker {
|
||||
class AndroidExtensionPropertiesCallChecker : SimpleCallChecker {
|
||||
override fun check(resolvedCall: ResolvedCall<*>, context: BasicCallResolutionContext) {
|
||||
val expression = context.call.calleeExpression ?: return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user