Beispiel #1
0
 public void Visit(PipelineCommandRuntime runtime)
 {
     foreach (RedirectionAst redirectionAst in _redirections)
     {
         var fileRedirectionAst = redirectionAst as FileRedirectionAst;
         if (fileRedirectionAst != null)
         {
             var redirectionVisitor = new FileRedirectionVisitor(_visitor, runtime);
             redirectionVisitor.Visit(fileRedirectionAst);
         }
         else
         {
             throw new NotImplementedException(redirectionAst.ToString());
         }
     }
 }
Beispiel #2
0
 public void Visit(PipelineCommandRuntime runtime)
 {
     foreach (RedirectionAst redirectionAst in _redirections)
     {
         var fileRedirectionAst = redirectionAst as FileRedirectionAst;
         if (fileRedirectionAst != null)
         {
             var redirectionVisitor = new FileRedirectionVisitor(_visitor, runtime);
             redirectionVisitor.Visit(fileRedirectionAst);
         }
         else
         {
             throw new NotImplementedException(redirectionAst.ToString());
         }
     }
 }