14 using System.Collections.Generic;
17 using Irony.Interpreter;
20 namespace Irony.Interpreter.Ast {
25 base.Init(context, treeNode);
26 foreach (var child
in treeNode.ChildNodes) {
29 if (child.AstNode != null)
30 AddChild(
string.Empty, child);
32 AsString =
"Statement List";
36 if (ChildNodes.Count == 0)
return;
37 ChildNodes[ChildNodes.Count - 1].Flags |= AstNodeFlags.IsTail;
38 int iniCount = context.Data.Count;
39 foreach(var stmt
in ChildNodes) {
40 stmt.Evaluate(context, AstMode.Read);
42 context.Data.PopUntil(iniCount);
44 context.Data.Push(context.LastResult);
override void EvaluateNode(EvaluationContext context, AstMode mode)
override void Init(ParsingContext context, ParseTreeNode treeNode)