logo

mixin

compiler::CMethod

sys::Obj
  compiler::CMethod : compiler::CSlot

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.

Slots

calcGeneric

static Bool calcGeneric(CMethod m)

Source

generic

virtual CMethod generic()

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

Source

hasSameParams

Bool hasSameParams(CMethod that)

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

Source

inheritedReturnType

abstract CType inheritedReturnType()

Original return type from inherited method if a covariant override.

Source

isCovariant

Bool isCovariant()

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

Source

isGeneric

virtual Bool isGeneric()

Does this method contains generic parameters in its signature.

Source

isParameterized

virtual Bool isParameterized()

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

Source

nameAndParamTypesToStr

Str nameAndParamTypesToStr()

Return a string with the name and parameters.

Source

params

abstract CParam[] params()

Parameter signatures

Source

returnType

abstract CType returnType()

Return type

Source