Class ForeachKeyDeclareValueStatementNode
- Namespace
- StepLang.Parsing
- Assembly
- StepLang.dll
public sealed record ForeachKeyDeclareValueStatementNode : StatementNode, IVisitableNode<IStatementVisitor>, INode, IEquatable<StatementNode>, IEquatable<ForeachKeyDeclareValueStatementNode>
- Inheritance
-
ForeachKeyDeclareValueStatementNode
- Implements
-
- Inherited Members
-
Constructors
ForeachKeyDeclareValueStatementNode(Token, Token, IVariableDeclarationNode, ExpressionNode, IReadOnlyCollection<StatementNode>)
public ForeachKeyDeclareValueStatementNode(Token ForeachKeywordToken, Token KeyIdentifier, IVariableDeclarationNode ValueDeclaration, ExpressionNode Collection, IReadOnlyCollection<StatementNode> Body)
Parameters
ForeachKeywordToken
Token
KeyIdentifier
Token
ValueDeclaration
IVariableDeclarationNode
Collection
ExpressionNode
Body
IReadOnlyCollection<StatementNode>
Properties
Body
public IReadOnlyCollection<StatementNode> Body { get; init; }
Property Value
- IReadOnlyCollection<StatementNode>
Collection
public ExpressionNode Collection { get; init; }
Property Value
- ExpressionNode
EqualityContract
protected override Type EqualityContract { get; }
Property Value
- Type
ForeachKeywordToken
public Token ForeachKeywordToken { get; init; }
Property Value
- Token
KeyIdentifier
public Token KeyIdentifier { get; init; }
Property Value
- Token
Location
public override TokenLocation Location { get; }
Property Value
- TokenLocation
ValueDeclaration
public IVariableDeclarationNode ValueDeclaration { get; init; }
Property Value
- IVariableDeclarationNode
Methods
Accept(IStatementVisitor)
public override void Accept(IStatementVisitor visitor)
Parameters
visitor
IStatementVisitor
Deconstruct(out Token, out Token, out IVariableDeclarationNode, out ExpressionNode, out IReadOnlyCollection<StatementNode>)
public void Deconstruct(out Token ForeachKeywordToken, out Token KeyIdentifier, out IVariableDeclarationNode ValueDeclaration, out ExpressionNode Collection, out IReadOnlyCollection<StatementNode> Body)
Parameters
ForeachKeywordToken
Token
KeyIdentifier
Token
ValueDeclaration
IVariableDeclarationNode
Collection
ExpressionNode
Body
IReadOnlyCollection<StatementNode>
Equals(ForeachKeyDeclareValueStatementNode?)
public bool Equals(ForeachKeyDeclareValueStatementNode? other)
Parameters
other
ForeachKeyDeclareValueStatementNode
Returns
- bool
Equals(StatementNode?)
public override sealed bool Equals(StatementNode? other)
Parameters
other
StatementNode
Returns
- bool
Equals(object?)
public override bool Equals(object? obj)
Parameters
obj
object
Returns
- bool
GetHashCode()
public override int GetHashCode()
Returns
- int
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builder
StringBuilder
Returns
- bool
ToString()
public override string ToString()
Returns
- string
Operators
operator ==(ForeachKeyDeclareValueStatementNode?, ForeachKeyDeclareValueStatementNode?)
public static bool operator ==(ForeachKeyDeclareValueStatementNode? left, ForeachKeyDeclareValueStatementNode? right)
Parameters
left
ForeachKeyDeclareValueStatementNode
right
ForeachKeyDeclareValueStatementNode
Returns
- bool
operator !=(ForeachKeyDeclareValueStatementNode?, ForeachKeyDeclareValueStatementNode?)
public static bool operator !=(ForeachKeyDeclareValueStatementNode? left, ForeachKeyDeclareValueStatementNode? right)
Parameters
left
ForeachKeyDeclareValueStatementNode
right
ForeachKeyDeclareValueStatementNode
Returns
- bool