org.jetbrains.jet.lang.resolve.calls
Class CallResolverUtil

java.lang.Object
  extended by org.jetbrains.jet.lang.resolve.calls.CallResolverUtil

public class CallResolverUtil
extends java.lang.Object


Nested Class Summary
static class CallResolverUtil.ResolveArgumentsMode
           
 
Field Summary
static JetType CANT_INFER_TYPE_PARAMETER
           
static JetType DONT_CARE
           
static JetType PLACEHOLDER_FUNCTION_TYPE
           
 
Method Summary
static
<D extends CallableDescriptor>
ResolvedCallImpl<D>
copy(ResolvedCallImpl<D> call, CallResolutionContext<?> context)
           
static CallKey createCallKey(BasicCallResolutionContext context)
           
static JetType getErasedReceiverType(ReceiverParameterDescriptor receiverParameterDescriptor, CallableDescriptor descriptor)
           
static boolean hasInferredReturnType(ResolvedCallWithTrace<?> call)
           
static boolean hasUnknownFunctionParameter(JetType type)
           
static boolean hasUnknownReturnType(JetType type)
           
static boolean isOrOverridesSynthesized(CallableMemberDescriptor descriptor)
           
static JetType replaceReturnTypeByUnknown(JetType type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DONT_CARE

public static final JetType DONT_CARE

CANT_INFER_TYPE_PARAMETER

public static final JetType CANT_INFER_TYPE_PARAMETER

PLACEHOLDER_FUNCTION_TYPE

public static final JetType PLACEHOLDER_FUNCTION_TYPE
Method Detail

copy

public static <D extends CallableDescriptor> ResolvedCallImpl<D> copy(@NotNull
                                                                      ResolvedCallImpl<D> call,
                                                                      @NotNull
                                                                      CallResolutionContext<?> context)

hasUnknownFunctionParameter

public static boolean hasUnknownFunctionParameter(@NotNull
                                                  JetType type)

hasUnknownReturnType

public static boolean hasUnknownReturnType(@NotNull
                                           JetType type)

replaceReturnTypeByUnknown

public static JetType replaceReturnTypeByUnknown(@NotNull
                                                 JetType type)

hasInferredReturnType

public static boolean hasInferredReturnType(ResolvedCallWithTrace<?> call)

createCallKey

@Nullable
public static CallKey createCallKey(@NotNull
                                             BasicCallResolutionContext context)

getErasedReceiverType

@NotNull
public static JetType getErasedReceiverType(@NotNull
                                                    ReceiverParameterDescriptor receiverParameterDescriptor,
                                                    @NotNull
                                                    CallableDescriptor descriptor)

isOrOverridesSynthesized

public static boolean isOrOverridesSynthesized(@NotNull
                                               CallableMemberDescriptor descriptor)