private void SynthesizeLoopLabel(JSLoopStatement ls) { if (ls.Index == null) { ls.Index = (NextSyntheticLoopIndex++); } }
protected void WriteLoopLabel(JSLoopStatement loop) { if (loop.Index.HasValue) { Output.Label(String.Format("$loop{0}", loop.Index.Value)); } }
public void VisitNode(JSLoopStatement ls) { CheckForFallthrough(ls); LoopIndexStack.Push(ls.Index.GetValueOrDefault(-1)); VisitChildren(ls); LoopIndexStack.Pop(); }
public void VisitNode(JSLoopStatement ls) { if (!Loops.ContainsKey(ls.Index.Value)) { Loops.Add(ls.Index.Value, ls); } else { throw new InvalidDataException(String.Format("Found two loops numbered {0}", ls.Index.Value)); } VisitChildren(ls); }
public void VisitNode(JSLoopStatement ls) { Loops.Add(ls.Index.Value, ls); VisitChildren(ls); }
public void VisitNode(JSLoopStatement ls) { VisitChildren(ls); }