All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlin.resolve.calls.tower.CandidateApplicability.kt Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
/*
 * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package org.jetbrains.kotlin.resolve.calls.tower

enum class CandidateApplicability {
    RESOLVED_TO_SAM_WITH_VARARG, // migration warning up to 1.5 (when resolve to function with SAM conversion and array without spread as vararg)
    HIDDEN, // removed from resolve
    INAPPLICABLE_WRONG_RECEIVER, // receiver not matched
    INAPPLICABLE_ARGUMENTS_MAPPING_ERROR, // arguments not mapped to parameters (i.e. different size of arguments and parameters)
    INAPPLICABLE, // arguments have wrong types
    IMPOSSIBLE_TO_GENERATE, // access to outer class from nested
    RUNTIME_ERROR, // problems with visibility
    MAY_THROW_RUNTIME_ERROR, // unsafe call or unstable smart cast
    CONVENTION_ERROR, // missing infix, operator etc
    RESOLVED_LOW_PRIORITY,
    RESOLVED_NEED_PRESERVE_COMPATIBILITY, // call resolved successfully, but using new features that changes resolve
    RESOLVED_WITH_ERROR, // call has error, but it is still successful from resolution perspective
    RESOLVED, // call success or has uncompleted inference or in other words possible successful candidate
}

val CandidateApplicability.isSuccess: Boolean
    get() = this >= CandidateApplicability.RESOLVED_LOW_PRIORITY




© 2015 - 2024 Weber Informatics LLC | Privacy Policy