org.jetbrains.kotlin.codegen
Class RangeCodegenUtil
java.lang.Object
org.jetbrains.kotlin.codegen.RangeCodegenUtil
public class RangeCodegenUtil
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
supportedRangeTypes
@NotNull
public static java.util.List<PrimitiveType> supportedRangeTypes()
isRange
public static boolean isRange(KotlinType rangeType)
isProgression
public static boolean isProgression(KotlinType rangeType)
getLoopRangeResolvedCall
@Nullable
public static ResolvedCall<? extends CallableDescriptor> getLoopRangeResolvedCall(@NotNull
KtForExpression forExpression,
@NotNull
BindingContext bindingContext)
getPrimitiveRangeOrProgressionElementType
@Nullable
public static PrimitiveType getPrimitiveRangeOrProgressionElementType(@NotNull
FqName rangeOrProgressionName)
isRangeOrProgression
public static boolean isRangeOrProgression(@NotNull
FqName className)
isOptimizableRangeTo
public static boolean isOptimizableRangeTo(CallableDescriptor rangeTo)
isOptimizableDownTo
public static boolean isOptimizableDownTo(@NotNull
CallableDescriptor descriptor)
isArrayOrPrimitiveArrayIndices
public static boolean isArrayOrPrimitiveArrayIndices(@NotNull
CallableDescriptor descriptor)
isCollectionIndices
public static boolean isCollectionIndices(@NotNull
CallableDescriptor descriptor)