Show / Hide Table of Contents

Class ForStmt

Statement representing a FOR loop with optional STEP.

Inheritance
object
AstNode
StatementNode
ForStmt
Inherited Members
AstNode.Line
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VM.Parser
Assembly: VM.dll
Syntax
public class ForStmt : StatementNode

Fields

Body

Declaration
public List<StatementNode> Body
Field Value
Type Description
List<StatementNode>

From

Declaration
public required ExprNode From
Field Value
Type Description
ExprNode

Step

Declaration
public ExprNode? Step
Field Value
Type Description
ExprNode

To

Declaration
public required ExprNode To
Field Value
Type Description
ExprNode

Variable

Declaration
public required string Variable
Field Value
Type Description
string

Methods

Accept<T>(IAstVisitor<T>)

Accepts a visitor that returns a value.

Declaration
public override T Accept<T>(IAstVisitor<T> visitor)
Parameters
Type Name Description
IAstVisitor<T> visitor
Returns
Type Description
T
Type Parameters
Name Description
T
Overrides
AstNode.Accept<T>(IAstVisitor<T>)

ToString()

Returns a string representation of the AST node for debugging.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
AstNode.ToString()
In this article
Back to top Generated by DocFX