-
public interface KSFunctionHolds the information for a KSFunctionDeclaration where type arguments are resolved as member of a specific KSType.
-
-
Method Summary
Modifier and Type Method Description abstract KSTypegetReturnType()The return type of the function. abstract List<KSType>getParameterTypes()The types of the value parameters of the function. abstract List<KSTypeParameter>getTypeParameters()The type parameters of the function. abstract KSTypegetExtensionReceiverType()The receiver type of the function. abstract BooleangetIsError()True if the compiler couldn't resolve the function. -
-
Method Detail
-
getReturnType
abstract KSType getReturnType()
The return type of the function. Note that this might be
nullif an error happened when the type is resolved.
-
getParameterTypes
abstract List<KSType> getParameterTypes()
The types of the value parameters of the function. Note that this list might have
nullvalues in it if the type of a parameter could not be resolved.
-
getTypeParameters
abstract List<KSTypeParameter> getTypeParameters()
The type parameters of the function.
-
getExtensionReceiverType
abstract KSType getExtensionReceiverType()
The receiver type of the function.
-
getIsError
abstract Boolean getIsError()
True if the compiler couldn't resolve the function.
-
-
-
-