In This Article

FunctionDeclaration Class

Represents a function declaration.

public class FunctionDeclaration : DeclarationBase, IAstNode
Inheritance:
object AstNodeBase Statement DeclarationBase object
Implements:
IAstNode

Remarks

This type was generated by the Actipro Language Designer tool v21.1.2.0 (http://www.actiprosoftware.com).

Constructors

FunctionDeclaration()

Initializes an instance of the class.

public FunctionDeclaration()

Properties

DeclaringClass

Gets the declaring class, if the function is a method.

public ClassDeclaration DeclaringClass { get; }

Property Value

ClassDeclaration:

The declaring class, if the function is a method.

HasParameters

Returns whether the Parameters collection property contains at least one item.

public bool HasParameters { get; }

Property Value

bool:

true if there is at least one item in the collection; otherwise, false.

Id

Gets the An integer value that identifies the type of AST node.

public override int Id { get; }

Property Value

int:

The An integer value that identifies the type of AST node.

IsAsync

Gets or sets the is async.

public bool IsAsync { get; set; }

Property Value

bool:

The is async.

IsClassMethod

Gets whether this definition is a class method.

public bool IsClassMethod { get; }

Property Value

bool:

true if this definition is a class method; otherwise, false.

IsMethod

Gets whether this definition is a method.

public bool IsMethod { get; }

Property Value

bool:

true if this definition is a method; otherwise, false.

IsStaticMethod

Gets whether this definition is a static method.

public bool IsStaticMethod { get; }

Property Value

bool:

true if this definition is a static method; otherwise, false.

Parameters

Gets the parameters.

public IList<Parameter> Parameters { get; }

Property Value

IList<Parameter>:

The parameters.

ReturnAnnotationExpression

Gets or sets the return annotation expression.

public Expression ReturnAnnotationExpression { get; set; }

Property Value

Expression:

The return annotation expression.

Methods

GetChildrenEnumerator()

Retrieves an IEnumerator object that can iterate the child IAstNode objects in this node.

protected override IEnumerator<IAstNode> GetChildrenEnumerator()

Returns

IEnumerator<IAstNode>:

An IEnumerator object that can iterate the child IAstNode objects in this node.

Inherited Members