Add kdoc for ConstraintSystemCompletionMode.PARTIAL
This commit is contained in:
committed by
Space Team
parent
6048d52a97
commit
f4004fb06a
+11
@@ -7,6 +7,17 @@ package org.jetbrains.kotlin.resolve.calls.inference.components
|
|||||||
|
|
||||||
enum class ConstraintSystemCompletionMode {
|
enum class ConstraintSystemCompletionMode {
|
||||||
FULL,
|
FULL,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This mode allows us to infer variables in calls, which have enough type-info to be completed right-away
|
||||||
|
* It can also trigger analysis of some postponed arguments
|
||||||
|
* We can't treat it as a plain optimization, because it affects the overload resolution in some cases
|
||||||
|
* e.g:
|
||||||
|
* ```kotlin
|
||||||
|
* val x: Int = 1
|
||||||
|
* x.plus(run { x }) // Here, to select plus overload we need to analyze lambda
|
||||||
|
* ```
|
||||||
|
*/
|
||||||
PARTIAL,
|
PARTIAL,
|
||||||
UNTIL_FIRST_LAMBDA
|
UNTIL_FIRST_LAMBDA
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user