Exemple #1
0
    public System.Object VisitDoWhileStatement(System.Management.Automation.Language.DoWhileStatementAst doWhileStatementAst)
    {
        IScriptExtent mappedExtent = MapExtent(doWhileStatementAst.Extent);

        PipelineBaseAst   mappedCondition = _VisitPipelineBase(doWhileStatementAst.Condition);
        StatementBlockAst mappedBody      = (StatementBlockAst)VisitStatementBlock(doWhileStatementAst.Body);

        return(new DoWhileStatementAst(mappedExtent, doWhileStatementAst.Label, mappedCondition, mappedBody));
    }
Exemple #2
0
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst ast) { return CheckParent(ast); }
Exemple #3
0
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return VisitSimpleLoopStatement(doWhileStatementAst.Body, doWhileStatementAst.Condition, true, false);
 }
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     throw PSTraceSource.NewArgumentException("ast");
 }
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return(false);
 }
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     this.GenerateDoLoop(doWhileStatementAst);
     return(null);
 }
Exemple #7
0
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst ast)
 {
     return(Check(ast));
 }
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     this.ReportError(doWhileStatementAst, () => ParserStrings.DoWhileStatementNotSupportedInDataSection, new object[0]);
     return(AstVisitAction.Continue);
 }
Exemple #9
0
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst ast)
 {
     return this.Check(ast);
 }
Exemple #10
0
 /// <summary/>
 public virtual AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst) => DefaultVisit(doWhileStatementAst);
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst) { throw new UnexpectedElementException(); }
Exemple #12
0
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return this.GenerateDoLoop(doWhileStatementAst);
 }
Exemple #13
0
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst) { return AstVisitAction.SkipChildren; }
Exemple #14
0
 /// <summary/>
 public virtual object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst) { return null; }
Exemple #15
0
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     throw new NotImplementedException(); //VisitDoWhileStatement(doWhileStatementAst);
 }
Exemple #16
0
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst) { return AutomationNull.Value; }
Exemple #17
0
 public virtual AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return AstVisitAction.Continue;
 }
Exemple #18
0
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst) { throw PSTraceSource.NewArgumentException("ast"); }
Exemple #19
0
 /// <summary/>
 public virtual object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return(null);
 }
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     this.ReportError(doWhileStatementAst, () => ParserStrings.DoWhileStatementNotSupportedInDataSection, new object[0]);
     return AstVisitAction.Continue;
 }
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return false;
 }
 /// <summary>
 /// Visit do while statement
 /// </summary>
 /// <param name="doWhileStatementAst"></param>
 /// <returns></returns>
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     GenerateDoLoop(doWhileStatementAst);
     return null;
 }
Exemple #23
0
 /// <summary/>
 public virtual AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return(AstVisitAction.Continue);
 }
 /// <summary/>
 public virtual object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return _decorated.VisitDoWhileStatement(doWhileStatementAst);
 }
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return(AutomationNull.Value);
 }
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     throw new NotImplementedException();
 }