namespace Elsa.Dsl.ElsaScript.Ast; /// /// Represents a foreach statement (e.g., foreach (var item in collection)). /// public class ForEachNode : StatementNode { /// /// Whether this foreach loop declares a new variable (var present in header). /// public bool DeclaresVariable { get; set; } /// /// The loop variable name. /// public string VariableName { get; set; } = null!; /// /// The collection expression to iterate over. /// public ExpressionNode Collection { get; set; } = null!; /// /// The body statement. /// public StatementNode Body { get; set; } = null!; }