private VisitRedirections ( System.Management.Automation.Language.CommandBaseAst commandAst ) : void | ||
commandAst | System.Management.Automation.Language.CommandBaseAst | |
return | void |
private void VisitRedirections(CommandBaseAst commandAst)
{
if (commandAst.Redirections.Count == 0)
{
return;
}
foreach (RedirectionAst redirectAst in commandAst.Redirections)
{
var fileRedirectAst = redirectAst as FileRedirectionAst;
if (fileRedirectAst != null)
{
VisitFileRedirection(fileRedirectAst);
}
else
{
throw new NotImplementedException(redirectAst.ToString());
}
}
}