public Enumerator(Switch sw) { this.sw = sw; nextArray = sw.NextArray; index = sw.curIndex; sw.curIndex++; position = 0; }
protected override void VisitSwitch(Switch upNode, object o) { State state = o as State; BTValue val = state.Stack.Pop() as PrimitiveBTValue; Annotation.SetNodeBTType(upNode, val.BTType); }
protected internal virtual void VisitSwitch(Switch node, object data) { throw new NodeNotSupportedException(node); }
protected override void VisitSwitch(Switch upNode, object o) { DepthContainer cnt = o as DepthContainer; cnt.Depth += 1; }