MethodDetails

Information about a method definition.

Members

Functions

identifier
string identifier()

Signature without any attributes, constraints or parameter details other than types. Used to differentiate a method from others without computing the mangle.

Variables

arguments
ArgumentInfo[] arguments;

All (regular) arguments passable into this method.

blockRange
size_t[2] blockRange;

Range containing the starting and ending braces of the body.

definitionRange
size_t[2] definitionRange;

Range starting at return type, going until last token before opening curly brace.

hasBody
bool hasBody;

True if this function has an implementation.

isNothrowOrNogc
bool isNothrowOrNogc;
name
string name;

The name of the method.

needsImplementation
bool needsImplementation;

True when the container is an interface or (optionally implicit) abstract class or when in class not having a body.

optionalImplementation
bool optionalImplementation;

True when in a class and method doesn't have a body.

returnType
string returnType;

The return type of the method.

signature
string signature;

The type definition of the method without body, abstract or final.

Meta