示例#1
0
    public System.Object VisitBreakStatement(System.Management.Automation.Language.BreakStatementAst breakStatementAst)
    {
        IScriptExtent mappedExtent = MapExtent(breakStatementAst.Extent);

        ExpressionAst mappedLabel = breakStatementAst.Label;

        return(new BreakStatementAst(mappedExtent, mappedLabel));
    }
示例#2
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst ast) { return CheckParent(ast); }
示例#3
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return(false);
 }
示例#4
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     throw PSTraceSource.NewArgumentException("ast");
 }
示例#5
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst ast)
 {
     return(Check(ast));
 }
示例#6
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     this.CheckForFlowOutOfFinally(breakStatementAst, GetLabel(breakStatementAst.Label));
     return(AstVisitAction.Continue);
 }
示例#7
0
 // TODO: public virtual AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst){return  AstVisitAction.Continue; }
 public virtual AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return AstVisitAction.Continue;
 }
示例#8
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return AstVisitAction.SkipChildren;
 }
 public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     this.ReportError(breakStatementAst, () => ParserStrings.FlowControlStatementNotSupportedInDataSection, new object[0]);
     return(AstVisitAction.Continue);
 }
 public object VisitBreakStatement(BreakStatementAst breakStatementAst) { throw new UnexpectedElementException(); }
示例#11
0
        public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
        {
            string label = GetLabel(breakStatementAst.Label);
            CheckForFlowOutOfFinally(breakStatementAst, label);
            CheckLabelExists(breakStatementAst, label);

            return AstVisitAction.Continue;
        }
示例#12
0
 /// <summary/>
 public virtual AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst) => DefaultVisit(breakStatementAst);
示例#13
0
文件: Compiler.cs 项目: nickchal/pash
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return this.GenerateBreakOrContinue(breakStatementAst, breakStatementAst.Label, lgt => lgt.BreakLabel, new Func<LabelTarget, Expression>(Expression.Break), CachedReflectionInfo.BreakException_ctor);
 }
示例#14
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     this.CheckForFlowOutOfFinally(breakStatementAst, GetLabel(breakStatementAst.Label));
     return AstVisitAction.Continue;
 }
示例#15
0
 /// <summary/>
 public virtual object VisitBreakStatement(BreakStatementAst breakStatementAst) { return null; }
示例#16
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     var label = breakStatementAst.Label == null ? null : EvaluateAst(breakStatementAst.Label, false);
     throw new BreakException(LanguagePrimitives.ConvertTo<string>(label));
 }
示例#17
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst ast)
 {
     return this.Check(ast);
 }
示例#18
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst) { return AutomationNull.Value; }
示例#19
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     throw new NotImplementedException(); //VisitBreakStatement(breakStatementAst);
 }
示例#20
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst) { throw PSTraceSource.NewArgumentException("ast"); }
示例#21
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     this.BreakOrContinue(breakStatementAst.Label, t => t.BreakTarget);
     return(null);
 }
示例#22
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return GenerateBreakOrContinue(breakStatementAst, breakStatementAst.Label, lgt => lgt.BreakLabel, Expression.Break,
                                    CachedReflectionInfo.BreakException_ctor);
 }
示例#23
0
 /// <summary/>
 public virtual object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return(null);
 }
示例#24
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     this.ReportError(breakStatementAst, () => ParserStrings.FlowControlStatementNotSupportedInDataSection, new object[0]);
     return AstVisitAction.Continue;
 }
示例#25
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return false;
 }
        /// <summary>
        /// Visit break statement
        /// </summary>
        /// <param name="breakStatementAst"></param>
        /// <returns></returns>
        public object VisitBreakStatement(BreakStatementAst breakStatementAst)
        {
            if (breakStatementAst == null) return null;

            BreakOrContinue(breakStatementAst.Label, t => t.BreakTarget);
            return null;
        }
示例#27
0
 /// <summary/>
 public virtual AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return(AstVisitAction.Continue);
 }
 /// <summary/>
 public virtual object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return _decorated.VisitBreakStatement(breakStatementAst);
 }
示例#29
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return(AutomationNull.Value);
 }
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     throw new NotImplementedException();
 }