In This Article

SimpleName Class

An AST node for a simple name.

public class SimpleName : Expression, IAstNode, ISimpleName
Inheritance:
object AstNodeBase Expression object
Implements:
IAstNode ISimpleName

Remarks

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

Constructors

SimpleName()

Initializes an instance of the class.

public SimpleName()

SimpleName(string, params QualifiedName[])

Initializes an instance of the class.

public SimpleName(string text, params QualifiedName[] typeArguments)
Parameter Type Description
text string

The text value of the identifier.

typeArguments QualifiedName[]

The collection of optional generic type arguments for the identifier.

Properties

HasTypeArguments

Indicates whether the TypeArguments collection property contains at least one item.

public bool HasTypeArguments { get; }

Property Value

bool:

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

Id

An integer value that identifies the type of AST node, if known.

public override int Id { get; }

Property Value

int

Remarks

This class' default implementation always returns 0.

Text

The text value of the identifier.

public string? Text { get; set; }

Property Value

string

TypeArguments

The collection of generic type arguments.

public IList<QualifiedName> TypeArguments { get; }

Property Value

IList<QualifiedName>

Value

The string-based value for the AST node.

public override string? Value { get; set; }

Property Value

string

Methods

Clone()

Returns a deep clone of the object.

public SimpleName Clone()

Returns

SimpleName:

The object that was created.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)
Parameter Type Description
obj object

The object to compare with the current object.

Returns

bool:

true if the specified object is equal to the current object; otherwise, false.

GetChildrenEnumerator()

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

protected override IEnumerator<IAstNode>? GetChildrenEnumerator()

Returns

IEnumerator<IAstNode>

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int:

A hash code for the current object.

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

The string representation of this object.

Inherited Members

Extension Methods