IFunctionDefinition Interface
Provides the base requirements of a function definition.
public interface IFunctionDefinition : IReflectionDefinition
Properties
DeclaringModule
Gets the reference to the module in which the function is declared.
IModuleReference DeclaringModule { get; }
Property Value
- IModuleReference:
The reference to the module in which the function is declared.
DeclaringType
Gets the declaring type, if the function is a method.
ITypeDefinition DeclaringType { get; }
Property Value
- ITypeDefinition:
The declaring type, if the function is a method.
Docstring
Gets the docstring for the type.
IsClassMethod
Gets whether the function is a class method.
bool IsClassMethod { get; }
Property Value
- bool:
true
if the function is a class method; otherwise,false
.
IsMethod
Gets whether the function is a method.
IsPublic
Gets whether the function is public.
IsStaticMethod
Gets whether the function is a static method.
bool IsStaticMethod { get; }
Property Value
- bool:
true
if the function is a static method; otherwise,false
.
Parameters
Gets the collection of parameters to the current function.
IParameterDefinitionCollection Parameters { get; }
Property Value
- IParameterDefinitionCollection:
The collection of parameters to the current function.
ReturnType
Gets a ITypeDefinition indicating the return type, if known.
ITypeDefinition ReturnType { get; }
Property Value
- ITypeDefinition:
A ITypeDefinition indicating the return type, if known.
ReturnTypeExpressionTextRange
Gets the return type expression TextRange, if known.
TextRange ReturnTypeExpressionTextRange { get; }
Property Value
TextRange
Gets the TextRange of the function definition, if known.
TextRange TextRange { get; }