public override void Build(IGraphBuilder builder) { //do nothing //we can do the linkage here if(OnFalseHook != null) builder.Link(Index, OnFalseHook.First().Index, "[label = \"f\"]"); if(OnTrueHook != null) builder.Link(Index, OnTrueHook.First().Index, "[label = \"t\"]"); }
public override void Build(IGraphBuilder builder) { //do nothing //we can do the linkage here if (OnFalseHook != null) { builder.Link(Index, OnFalseHook.First().Index, "[label = \"f\"]"); } if (OnTrueHook != null) { builder.Link(Index, OnTrueHook.First().Index, "[label = \"t\"]"); } }
public override void Build(IGraphBuilder builder) { if (OnTrueHook != null) { builder.Link(Index, OnTrueHook.Index, string.Empty); } }
private void BuildCondition(Operation v0, IGraphBuilder builder) { string trueLabel = "[label = \"t\"]"; string falseLabel = "[label = \"f\"]"; if (v0.OnFalseHook == null) { trueLabel = string.Empty; } if (v0.OnTrueHook != null) { builder.Link(v0.Index, v0.OnTrueHook.Index, trueLabel); } if (v0.OnFalseHook != null) { builder.Link(v0.Index, v0.OnFalseHook.Index, falseLabel); } }
private void BuildCondition(Operation v0, IGraphBuilder builder) { string trueLabel = "[label = \"t\"]"; string falseLabel = "[label = \"f\"]"; if(v0.OnFalseHook == null) trueLabel = string.Empty; if(v0.OnTrueHook != null) builder.Link(v0.Index, v0.OnTrueHook.Index, trueLabel); if(v0.OnFalseHook != null) builder.Link(v0.Index, v0.OnFalseHook.Index, falseLabel); }
public override void Build(IGraphBuilder builder) { if(OnTrueHook != null) builder.Link(Index, OnTrueHook.Index, string.Empty); }