コード例 #1
0
ファイル: SourceMapper.cs プロジェクト: gpduck/ScriptMap
    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));
    }
コード例 #2
0
ファイル: AstVisitor.cs プロジェクト: 40a/PowerShell
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst ast) { return CheckParent(ast); }
コード例 #3
0
ファイル: ExecutionVisitor.cs プロジェクト: mauve/Pash
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return VisitSimpleLoopStatement(doWhileStatementAst.Body, doWhileStatementAst.Condition, true, false);
 }
コード例 #4
0
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     throw PSTraceSource.NewArgumentException("ast");
 }
コード例 #5
0
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return(false);
 }
コード例 #6
0
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     this.GenerateDoLoop(doWhileStatementAst);
     return(null);
 }
コード例 #7
0
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst ast)
 {
     return(Check(ast));
 }
コード例 #8
0
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     this.ReportError(doWhileStatementAst, () => ParserStrings.DoWhileStatementNotSupportedInDataSection, new object[0]);
     return(AstVisitAction.Continue);
 }
コード例 #9
0
ファイル: AstSearcher.cs プロジェクト: nickchal/pash
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst ast)
 {
     return this.Check(ast);
 }
コード例 #10
0
 /// <summary/>
 public virtual AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst) => DefaultVisit(doWhileStatementAst);
コード例 #11
0
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst) { throw new UnexpectedElementException(); }
コード例 #12
0
ファイル: Compiler.cs プロジェクト: nickchal/pash
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return this.GenerateDoLoop(doWhileStatementAst);
 }
コード例 #13
0
ファイル: ScriptAnalysis.cs プロジェクト: 40a/PowerShell
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst) { return AstVisitAction.SkipChildren; }
コード例 #14
0
ファイル: AstVisitor.cs プロジェクト: 40a/PowerShell
 /// <summary/>
 public virtual object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst) { return null; }
コード例 #15
0
ファイル: ExecutionVisitor.cs プロジェクト: JayBazuzi/Pash
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     throw new NotImplementedException(); //VisitDoWhileStatement(doWhileStatementAst);
 }
コード例 #16
0
ファイル: ConstantValues.cs プロジェクト: 40a/PowerShell
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst) { return AutomationNull.Value; }
コード例 #17
0
ファイル: AstVisitor.cs プロジェクト: JamesTryand/Pash2
 public virtual AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return AstVisitAction.Continue;
 }
コード例 #18
0
ファイル: SafeValues.cs プロジェクト: 40a/PowerShell
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst) { throw PSTraceSource.NewArgumentException("ast"); }
コード例 #19
0
 /// <summary/>
 public virtual object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return(null);
 }
コード例 #20
0
 public override AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     this.ReportError(doWhileStatementAst, () => ParserStrings.DoWhileStatementNotSupportedInDataSection, new object[0]);
     return AstVisitAction.Continue;
 }
コード例 #21
0
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return false;
 }
コード例 #22
0
 /// <summary>
 /// Visit do while statement
 /// </summary>
 /// <param name="doWhileStatementAst"></param>
 /// <returns></returns>
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     GenerateDoLoop(doWhileStatementAst);
     return null;
 }
コード例 #23
0
 /// <summary/>
 public virtual AstVisitAction VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return(AstVisitAction.Continue);
 }
コード例 #24
0
 /// <summary/>
 public virtual object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return _decorated.VisitDoWhileStatement(doWhileStatementAst);
 }
コード例 #25
0
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     return(AutomationNull.Value);
 }
コード例 #26
0
 public object VisitDoWhileStatement(DoWhileStatementAst doWhileStatementAst)
 {
     throw new NotImplementedException();
 }