/// <summary> /// Visit WhenThen node in BFS manner. /// </summary> /// <param name="node">FSlashNode node that will be visited.</param> public void Visit(WhenThenNode node) { node.Accept(_visitor); foreach (var item in node.Descendants) { item.Accept(this); } }
public override void Visit(WhenThenNode node) { }
public override void Visit(WhenThenNode node) => ProduceDebuggerInstructions(node, n => base.Visit(n));
/// <summary> /// Visit WhenThen node. /// </summary> /// <param name="node">WhenThen node of AST</param> public abstract void Visit(WhenThenNode node);
public void Visit(WhenThenNode node) { }
/// <summary> /// Performs "WhenThen" specific operations. /// </summary> /// <param name="node">The "WhenThen" node.</param> public virtual void Visit(WhenThenNode node) { _labels.Add($"when_{node.FullSpan.Start}{node.FullSpan.End}", Instructions.Count); }