Fixed EA-70733
This commit is contained in:
@@ -50,7 +50,7 @@ public class IterateExpressionIntention : JetSelfTargetingIntention<JetExpressio
|
|||||||
val bindingContext = expression.analyze(BodyResolveMode.PARTIAL)
|
val bindingContext = expression.analyze(BodyResolveMode.PARTIAL)
|
||||||
val type = bindingContext.getType(expression) ?: return null
|
val type = bindingContext.getType(expression) ?: return null
|
||||||
val moduleDescriptor = expression.getResolutionFacade().findModuleDescriptor(expression)
|
val moduleDescriptor = expression.getResolutionFacade().findModuleDescriptor(expression)
|
||||||
val scope = bindingContext[BindingContext.RESOLUTION_SCOPE, expression]!!
|
val scope = bindingContext[BindingContext.RESOLUTION_SCOPE, expression] ?: return null
|
||||||
val elementType = IterableTypesDetector(expression.getProject(), moduleDescriptor, scope).elementType(type)?.type ?: return null
|
val elementType = IterableTypesDetector(expression.getProject(), moduleDescriptor, scope).elementType(type)?.type ?: return null
|
||||||
return Data(type, elementType)
|
return Data(type, elementType)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user