示例#1
0
 public override AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     if (!blockStatementAst.IsInWorkflow())
     {
         this._parser.ReportError(blockStatementAst.Kind.Extent, ParserStrings.UnexpectedKeyword, new object[] { blockStatementAst.Kind.Text });
     }
     return(AstVisitAction.Continue);
 }
示例#2
0
    public System.Object VisitBlockStatement(System.Management.Automation.Language.BlockStatementAst blockStatementAst)
    {
        IScriptExtent mappedExtent = MapExtent(blockStatementAst.Extent);

        StatementBlockAst mappedBody = (StatementBlockAst)VisitStatementBlock(blockStatementAst.Body);

        return(new BlockStatementAst(mappedExtent, blockStatementAst.Kind, mappedBody));
    }
 /// <summary/>
 public virtual object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return _decorated.VisitBlockStatement(blockStatementAst);
 }
        /// <summary>
        /// Visit Block Statement
        /// </summary>
        /// <param name="blockStatementAst"></param>
        /// <returns></returns>
        public object VisitBlockStatement(BlockStatementAst blockStatementAst)
        {
            if (blockStatementAst == null) return null;

            blockStatementAst.Body.Visit(this.Decorator);
            return null;
        }
示例#5
0
 public override AstVisitAction VisitBlockStatement(BlockStatementAst ast) { return Check(ast); }
示例#6
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return(false);
 }
示例#7
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     throw PSTraceSource.NewArgumentException("ast");
 }
示例#8
0
 public override AstVisitAction VisitBlockStatement(BlockStatementAst ast)
 {
     return(Check(ast));
 }
示例#9
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst) { return AutomationNull.Value; }
 public override AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     this.ReportError(blockStatementAst, () => ParserStrings.ParallelAndSequenceBlockNotSupportedInDataSection, new object[0]);
     return(AstVisitAction.Continue);
 }
 public object VisitBlockStatement(BlockStatementAst blockStatementAst) { throw new UnexpectedElementException(); }
示例#12
0
        public override AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst)
        {
            // Keyword blocks are not allowed
            ReportError(blockStatementAst, () => ParserStrings.ParallelAndSequenceBlockNotSupportedInDataSection);

            return AstVisitAction.Continue;
        }
示例#13
0
        public override AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst)
        {
            if (blockStatementAst.IsInWorkflow())
            {
                return AstVisitAction.Continue;
            }

            _parser.ReportError(blockStatementAst.Kind.Extent, () => ParserStrings.UnexpectedKeyword, blockStatementAst.Kind.Text);

            return AstVisitAction.Continue;
        }
示例#14
0
 /// <summary/>
 public virtual AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst) => DefaultVisit(blockStatementAst);
示例#15
0
 public override AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     if (!blockStatementAst.IsInWorkflow())
     {
         this._parser.ReportError(blockStatementAst.Kind.Extent, ParserStrings.UnexpectedKeyword, new object[] { blockStatementAst.Kind.Text });
     }
     return AstVisitAction.Continue;
 }
示例#16
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst) { throw PSTraceSource.NewArgumentException("ast"); }
示例#17
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     blockStatementAst.Body.Accept(this);
     return(null);
 }
示例#18
0
 public virtual AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return AstVisitAction.Continue;
 }
示例#19
0
 /// <summary/>
 public virtual object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return(null);
 }
示例#20
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return null;
 }
示例#21
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return false;
 }
示例#22
0
 public override AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     this.ReportError(blockStatementAst, () => ParserStrings.ParallelAndSequenceBlockNotSupportedInDataSection, new object[0]);
     return AstVisitAction.Continue;
 }
示例#23
0
 /// <summary/>
 public virtual AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return(AstVisitAction.Continue);
 }
示例#24
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     blockStatementAst.Body.Accept(this);
     return null;
 }
示例#25
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return(AutomationNull.Value);
 }
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     throw new NotImplementedException();
 }