Ejemplo n.º 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);
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 5
0
 public override AstVisitAction VisitBlockStatement(BlockStatementAst ast) { return Check(ast); }
Ejemplo n.º 6
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return(false);
 }
Ejemplo n.º 7
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     throw PSTraceSource.NewArgumentException("ast");
 }
Ejemplo n.º 8
0
 public override AstVisitAction VisitBlockStatement(BlockStatementAst ast)
 {
     return(Check(ast));
 }
Ejemplo n.º 9
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst) { return AutomationNull.Value; }
Ejemplo n.º 10
0
 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(); }
Ejemplo n.º 12
0
        public override AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst)
        {
            // Keyword blocks are not allowed
            ReportError(blockStatementAst, () => ParserStrings.ParallelAndSequenceBlockNotSupportedInDataSection);

            return AstVisitAction.Continue;
        }
Ejemplo n.º 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;
        }
Ejemplo n.º 14
0
 /// <summary/>
 public virtual AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst) => DefaultVisit(blockStatementAst);
Ejemplo n.º 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;
 }
Ejemplo n.º 16
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst) { throw PSTraceSource.NewArgumentException("ast"); }
Ejemplo n.º 17
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     blockStatementAst.Body.Accept(this);
     return(null);
 }
Ejemplo n.º 18
0
 public virtual AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return AstVisitAction.Continue;
 }
Ejemplo n.º 19
0
 /// <summary/>
 public virtual object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return(null);
 }
Ejemplo n.º 20
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return null;
 }
Ejemplo n.º 21
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return false;
 }
Ejemplo n.º 22
0
 public override AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     this.ReportError(blockStatementAst, () => ParserStrings.ParallelAndSequenceBlockNotSupportedInDataSection, new object[0]);
     return AstVisitAction.Continue;
 }
Ejemplo n.º 23
0
 /// <summary/>
 public virtual AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return(AstVisitAction.Continue);
 }
Ejemplo n.º 24
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     blockStatementAst.Body.Accept(this);
     return null;
 }
Ejemplo n.º 25
0
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     return(AutomationNull.Value);
 }
 public object VisitBlockStatement(BlockStatementAst blockStatementAst)
 {
     throw new NotImplementedException();
 }