org.jetbrains.kotlin.types
Class ErrorUtils

java.lang.Object
  extended by org.jetbrains.kotlin.types.ErrorUtils

public class ErrorUtils
extends java.lang.Object


Nested Class Summary
static class ErrorUtils.ErrorScope
           
static class ErrorUtils.UninferredParameterTypeConstructor
           
 
Method Summary
static boolean containsErrorType(FunctionDescriptor function)
           
static boolean containsErrorType(KotlinType type)
           
static boolean containsUninferredParameter(KotlinType type)
           
static ClassDescriptor createErrorClass(java.lang.String debugMessage)
           
static MemberScope createErrorScope(java.lang.String debugMessage)
           
static MemberScope createErrorScope(java.lang.String debugMessage, boolean throwExceptions)
           
static KotlinType createErrorType(java.lang.String debugMessage)
           
static TypeConstructor createErrorTypeConstructor(java.lang.String debugMessage)
           
static TypeConstructor createErrorTypeConstructorWithCustomDebugName(java.lang.String debugName)
           
static TypeParameterDescriptor createErrorTypeParameter(int index, java.lang.String debugMessage)
           
static KotlinType createErrorTypeWithArguments(java.lang.String debugMessage, java.util.List<TypeProjection> arguments)
           
static KotlinType createErrorTypeWithCustomConstructor(java.lang.String debugName, TypeConstructor typeConstructor)
           
static KotlinType createErrorTypeWithCustomDebugName(java.lang.String debugName)
           
static KotlinType createUninferredParameterType(TypeParameterDescriptor typeParameterDescriptor)
           
static ModuleDescriptor getErrorModule()
           
static boolean isError(DeclarationDescriptor candidate)
           
static boolean isUninferredParameter(KotlinType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

containsErrorType

public static boolean containsErrorType(@NotNull
                                        FunctionDescriptor function)

createErrorClass

@NotNull
public static ClassDescriptor createErrorClass(@NotNull
                                                       java.lang.String debugMessage)

createErrorScope

@NotNull
public static MemberScope createErrorScope(@NotNull
                                                   java.lang.String debugMessage)

createErrorScope

@NotNull
public static MemberScope createErrorScope(@NotNull
                                                   java.lang.String debugMessage,
                                                   boolean throwExceptions)

createErrorType

@NotNull
public static KotlinType createErrorType(@NotNull
                                                 java.lang.String debugMessage)

createErrorTypeWithCustomDebugName

@NotNull
public static KotlinType createErrorTypeWithCustomDebugName(@NotNull
                                                                    java.lang.String debugName)

createErrorTypeWithCustomConstructor

@NotNull
public static KotlinType createErrorTypeWithCustomConstructor(@NotNull
                                                                      java.lang.String debugName,
                                                                      @NotNull
                                                                      TypeConstructor typeConstructor)

createErrorTypeWithArguments

@NotNull
public static KotlinType createErrorTypeWithArguments(@NotNull
                                                              java.lang.String debugMessage,
                                                              @NotNull
                                                              java.util.List<TypeProjection> arguments)

createErrorTypeConstructor

@NotNull
public static TypeConstructor createErrorTypeConstructor(@NotNull
                                                                 java.lang.String debugMessage)

createErrorTypeConstructorWithCustomDebugName

@NotNull
public static TypeConstructor createErrorTypeConstructorWithCustomDebugName(@NotNull
                                                                                    java.lang.String debugName)

containsErrorType

public static boolean containsErrorType(@Nullable
                                        KotlinType type)

isError

public static boolean isError(@NotNull
                              DeclarationDescriptor candidate)

createErrorTypeParameter

@NotNull
public static TypeParameterDescriptor createErrorTypeParameter(int index,
                                                                       @NotNull
                                                                       java.lang.String debugMessage)

getErrorModule

@NotNull
public static ModuleDescriptor getErrorModule()

isUninferredParameter

public static boolean isUninferredParameter(@Nullable
                                            KotlinType type)

containsUninferredParameter

public static boolean containsUninferredParameter(@Nullable
                                                  KotlinType type)

createUninferredParameterType

@NotNull
public static KotlinType createUninferredParameterType(@NotNull
                                                               TypeParameterDescriptor typeParameterDescriptor)