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:
trueif 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
Remarks
This class' default implementation always returns 0.
Text
The text value of the identifier.
TypeArguments
The collection of generic type arguments.
Value
The string-based value for the AST node.
Methods
Clone()
Returns a deep clone of the object.
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:
trueif 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.
GetHashCode()
Serves as the default hash function.
ToString()
Returns the string representation of this object.
Inherited Members
- Expression.FromQualifiedName(IQualifiedName)
- Expression.FromQualifiedName(QualifiedName)
- AstNodeBase.Contains(int)
- AstNodeBase.FindChildNode(int)
- AstNodeBase.FindDescendantNode(int)
- AstNodeBase.ToTreeString(int)
- AstNodeBase.Children
- AstNodeBase.EndOffset
- AstNodeBase.HasChildren
- AstNodeBase.Length
- AstNodeBase.Parent
- AstNodeBase.Root
- AstNodeBase.StartOffset
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)