internal void Accept(NodeCont c) { builder.currentLineNumber = c.EndLine; builder.AddCont(log, c.location, c.label); // Push null for now, since this is technically an expression we must add an element to the stack. builder.OpNull(); }
void ASTVisitor.Accept(NodeCont value) { Accept(value); }
// Get "after" secuence. private string GetPrev(string wantName, string myId) { string rval = wantName; foreach (NodeCont cnt in NodeContainer) { if (wantName == cnt.Name) { rval = cnt.PrevId; NodeContainer.Remove(cnt); break; } } NodeCont node = new NodeCont(); node.Name = wantName; node.PrevId = myId; NodeContainer.Add(node); return rval; }