public void AddScriptTask(BuildTask task, PSScriptCallToken callToken) { tasks.Add(new TaskDefinition(task, callToken)); }
public void Visit(PSScriptCallToken token) { if (currentTarget == null) throw new InvalidOperationException("A script call should be done inside a target"); ScriptJanitor.AddScriptTask(currentTarget.AddNewTask("RunScript"), token); }
public void Visit(PSScriptCallToken token) { VisitedPSScriptCallToken++; TotalCount++; Tokens.Add(token); }