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.FunctionPlaceholderTypeConstructor
           
static class ErrorUtils.UninferredParameterTypeConstructor
           
 
Method Summary
static boolean containsErrorType(FunctionDescriptor function)
           
static boolean containsErrorType(JetType type)
           
static boolean containsUninferredParameter(JetType type)
           
static ClassDescriptor createErrorClass(java.lang.String debugMessage)
           
static JetScope createErrorScope(java.lang.String debugMessage)
           
static JetScope createErrorScope(java.lang.String debugMessage, boolean throwExceptions)
           
static JetType createErrorType(java.lang.String debugMessage)
           
static TypeConstructor createErrorTypeConstructor(java.lang.String debugMessage)
           
static TypeParameterDescriptor createErrorTypeParameter(int index, java.lang.String debugMessage)
           
static JetType createErrorTypeWithArguments(java.lang.String debugMessage, java.util.List<TypeProjection> arguments)
           
static JetType createErrorTypeWithCustomDebugName(java.lang.String debugName)
           
static JetType createFunctionPlaceholderType(java.util.List<JetType> argumentTypes, boolean hasDeclaredArguments)
           
static JetType createUninferredParameterType(TypeParameterDescriptor typeParameterDescriptor)
           
static ModuleDescriptor getErrorModule()
           
static boolean isError(DeclarationDescriptor candidate)
           
static boolean isFunctionPlaceholder(JetType type)
           
static boolean isUninferredParameter(JetType 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 JetScope createErrorScope(@NotNull
                                                java.lang.String debugMessage)

createErrorScope

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

createErrorType

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

createErrorTypeWithCustomDebugName

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

createErrorTypeWithArguments

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

createErrorTypeConstructor

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

containsErrorType

public static boolean containsErrorType(@Nullable
                                        JetType 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
                                            JetType type)

containsUninferredParameter

public static boolean containsUninferredParameter(@Nullable
                                                  JetType type)

createUninferredParameterType

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

isFunctionPlaceholder

public static boolean isFunctionPlaceholder(@Nullable
                                            JetType type)

createFunctionPlaceholderType

@NotNull
public static JetType createFunctionPlaceholderType(@NotNull
                                                            java.util.List<JetType> argumentTypes,
                                                            boolean hasDeclaredArguments)