org.jetbrains.kotlin.resolve
Class FunctionDescriptorUtil
java.lang.Object
org.jetbrains.kotlin.resolve.FunctionDescriptorUtil
public class FunctionDescriptorUtil
- extends java.lang.Object
Method Summary |
static
|
alphaConvertTypeParameters(D candidate)
|
static TypeSubstitution |
createSubstitution(FunctionDescriptor functionDescriptor,
java.util.List<JetType> typeArguments)
|
static LexicalScope |
getFunctionInnerScope(LexicalScope outerScope,
FunctionDescriptor descriptor,
BindingTrace trace)
|
static LexicalScope |
getFunctionInnerScope(LexicalScope outerScope,
FunctionDescriptor descriptor,
RedeclarationHandler redeclarationHandler)
|
static void |
initializeFromFunctionType(FunctionDescriptorImpl functionDescriptor,
JetType functionType,
ReceiverParameterDescriptor dispatchReceiverParameter,
Modality modality,
Visibility visibility)
|
static FunctionDescriptor |
replaceFunctionParameters(FunctionDescriptor function,
java.util.List<ValueParameterDescriptor> newParameters)
Returns function's copy with new parameter list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
createSubstitution
public static TypeSubstitution createSubstitution(@NotNull
FunctionDescriptor functionDescriptor,
@NotNull
java.util.List<JetType> typeArguments)
getFunctionInnerScope
@NotNull
public static LexicalScope getFunctionInnerScope(@NotNull
LexicalScope outerScope,
@NotNull
FunctionDescriptor descriptor,
@NotNull
BindingTrace trace)
getFunctionInnerScope
@NotNull
public static LexicalScope getFunctionInnerScope(@NotNull
LexicalScope outerScope,
@NotNull
FunctionDescriptor descriptor,
@NotNull
RedeclarationHandler redeclarationHandler)
initializeFromFunctionType
public static void initializeFromFunctionType(@NotNull
FunctionDescriptorImpl functionDescriptor,
@NotNull
JetType functionType,
@Nullable
ReceiverParameterDescriptor dispatchReceiverParameter,
@NotNull
Modality modality,
@NotNull
Visibility visibility)
alphaConvertTypeParameters
public static <D extends CallableDescriptor> D alphaConvertTypeParameters(D candidate)
replaceFunctionParameters
@NotNull
public static FunctionDescriptor replaceFunctionParameters(@NotNull
FunctionDescriptor function,
@NotNull
java.util.List<ValueParameterDescriptor> newParameters)
- Returns function's copy with new parameter list. Note that parameters may belong to other methods or have incorrect "index" property
-- it will be fixed by this function.