Distinguish PARTIAL_WITH_CFA resolve mode from just PARTIAL
So #KT-23182 Fixed
This commit is contained in:
@@ -409,12 +409,15 @@ class ResolveElementCache(
|
||||
}
|
||||
}
|
||||
|
||||
val controlFlowTrace =
|
||||
DelegatingBindingTrace(trace.bindingContext, "Element control flow resolve", resolveElement, allowSliceRewrite = true)
|
||||
ControlFlowInformationProvider(
|
||||
resolveElement, controlFlowTrace, resolveElement.languageVersionSettings, resolveSession.platformDiagnosticSuppressor
|
||||
).checkDeclaration()
|
||||
controlFlowTrace.addOwnDataTo(trace, null, false)
|
||||
if (bodyResolveMode.doControlFlowAnalysis) {
|
||||
val controlFlowTrace = DelegatingBindingTrace(
|
||||
trace.bindingContext, "Element control flow resolve", resolveElement, allowSliceRewrite = true
|
||||
)
|
||||
ControlFlowInformationProvider(
|
||||
resolveElement, controlFlowTrace, resolveElement.languageVersionSettings, resolveSession.platformDiagnosticSuppressor
|
||||
).checkDeclaration()
|
||||
controlFlowTrace.addOwnDataTo(trace, null, false)
|
||||
}
|
||||
|
||||
return Pair(trace.bindingContext, statementFilterUsed)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user