public FlowStepInfo( IFlowStep step, params object[] parameters) { Step = step; Parameters = parameters; ParameterTypes = parameters.Select(p => p.GetType()).ToArray(); }
public string StepToString(IFlowStep flowstep) { if (flowstep is ASTFlowStep step && step.From != step.To) { var result = step.Parameters.Last(); var from = string.Join(" -> ", step.Parameters.SkipLast(1).Select(d => j(d.Types)).ToList()); return($@" {step.From} ->> {step.To} : {from} {step.To} -->> {step.From} : {string.Join(" ", result.Types.Select(t => t.Value))} ".Trim()); } if (flowstep is ASTFlowStep step2 && step2.From == step2.To) { var from = string.Join(" -> ", step2.Parameters.Select(d => j(d.Types)).ToList()); return($@" {step2.From} ->> {step2.To} : {from} ".Trim()); }