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
- calcGenericSource
- genericSource
-
virtual CMethod? generic()
If isParameterized is true, then return the generic method which this method parameterizes, otherwise null
- hasSameParamsSource
-
Bool hasSameParams(CMethod that)
Return if this method has the exact same parameters as the specified method.
- inheritedReturnTypeSource
-
abstract CType inheritedReturnType()
Original return type from inherited method if a covariant override.
- isCovariantSource
-
Bool isCovariant()
Does this method have a covariant return type (we don't count This returns as covariant)
- isGenericSource
-
virtual Bool isGeneric()
Does this method contains generic parameters in its signature.
- isParameterizedSource
-
virtual Bool isParameterized()
Is this method the parameterization of a generic method, with all the generic parameters filled in with real types.
- nameAndParamTypesToStrSource
-
Str nameAndParamTypesToStr()
Return a string with the name and parameters.
- paramsSource
-
abstract CParam[] params()
Parameter signatures
- returnTypeSource
-
abstract CType returnType()
Return type