mixin compiler::CMethod

compiler::CMethod : compiler::CSlot

Source

CMethod is a "compiler method" which is represents a Method in the compiler. CMethods unify methods being compiled as MethodDefs with methods imported as ReflectMethod or FMethod.

calcGeneric

static Bool calcGeneric(CMethod m)

Source

generic

virtual CMethod? generic()

Source

If isParameterized is true, then return the generic method which this method parameterizes, otherwise null

hasSameParams

Bool hasSameParams(CMethod that)

Source

Return if this method has the exact same parameters as the specified method.

inheritedReturnType

abstract CType inheritedReturnType()

Source

Original return type from inherited method if a covariant override.

isCovariant

Bool isCovariant()

Source

Does this method have a covariant return type (we don't count This returns as covariant)

isGeneric

virtual Bool isGeneric()

Source

Does this method contains generic parameters in its signature.

isParameterized

virtual Bool isParameterized()

Source

Is this method the parameterization of a generic method, with all the generic parameters filled in with real types.

nameAndParamTypesToStr

Str nameAndParamTypesToStr()

Source

Return a string with the name and parameters.

params

abstract CParam[] params()

Source

Parameter signatures

returnType

abstract CType returnType()

Source

Return type

usesBridge

virtual override CBridge? usesBridge()

Source

Return the bridge if this slot is foreign or uses any foreign types in its signature.