In This Article

IFunctionDefinition Interface

Provides the base requirements of a function definition.

public interface IFunctionDefinition : IReflectionDefinition

Properties

DeclaringModule

The reference to the module in which the function is declared.

IModuleReference? DeclaringModule { get; }

Property Value

IModuleReference

DeclaringType

The declaring type, if the function is a method.

ITypeDefinition? DeclaringType { get; }

Property Value

ITypeDefinition

Docstring

The docstring for the type.

string? Docstring { get; }

Property Value

string

IsClassMethod

Indicates whether the function is a class method.

bool IsClassMethod { get; }

Property Value

bool

IsMethod

Indicates whether the function is a method.

bool IsMethod { get; }

Property Value

bool

IsPublic

Indicates whether the function is public.

bool IsPublic { get; }

Property Value

bool

IsStaticMethod

Indicates whether the function is a static method.

bool IsStaticMethod { get; }

Property Value

bool

Parameters

The collection of parameters to the current function.

IParameterDefinitionCollection Parameters { get; }

Property Value

IParameterDefinitionCollection

ReturnType

An ITypeDefinition indicating the return type, if known.

ITypeDefinition? ReturnType { get; }

Property Value

ITypeDefinition

ReturnTypeExpressionTextRange

The return type expression TextRange, if known.

TextRange? ReturnTypeExpressionTextRange { get; }

Property Value

TextRange?

TextRange

The TextRange of the function definition, if known.

TextRange? TextRange { get; }

Property Value

TextRange?

Inherited Members

Extension Methods