Ejemplo n.º 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));
    }
Ejemplo n.º 2
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst ast) { return CheckParent(ast); }
Ejemplo n.º 3
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return(false);
 }
Ejemplo n.º 4
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     throw PSTraceSource.NewArgumentException("ast");
 }
Ejemplo n.º 5
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst ast)
 {
     return(Check(ast));
 }
Ejemplo n.º 6
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     this.CheckForFlowOutOfFinally(breakStatementAst, GetLabel(breakStatementAst.Label));
     return(AstVisitAction.Continue);
 }
Ejemplo n.º 7
0
 // TODO: public virtual AstVisitAction VisitBlockStatement(BlockStatementAst blockStatementAst){return  AstVisitAction.Continue; }
 public virtual AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return AstVisitAction.Continue;
 }
Ejemplo n.º 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(); }
Ejemplo n.º 11
0
        public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
        {
            string label = GetLabel(breakStatementAst.Label);
            CheckForFlowOutOfFinally(breakStatementAst, label);
            CheckLabelExists(breakStatementAst, label);

            return AstVisitAction.Continue;
        }
Ejemplo n.º 12
0
 /// <summary/>
 public virtual AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst) => DefaultVisit(breakStatementAst);
Ejemplo n.º 13
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return this.GenerateBreakOrContinue(breakStatementAst, breakStatementAst.Label, lgt => lgt.BreakLabel, new Func<LabelTarget, Expression>(Expression.Break), CachedReflectionInfo.BreakException_ctor);
 }
Ejemplo n.º 14
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     this.CheckForFlowOutOfFinally(breakStatementAst, GetLabel(breakStatementAst.Label));
     return AstVisitAction.Continue;
 }
Ejemplo n.º 15
0
 /// <summary/>
 public virtual object VisitBreakStatement(BreakStatementAst breakStatementAst) { return null; }
Ejemplo n.º 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));
 }
Ejemplo n.º 17
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst ast)
 {
     return this.Check(ast);
 }
Ejemplo n.º 18
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst) { return AutomationNull.Value; }
Ejemplo n.º 19
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     throw new NotImplementedException(); //VisitBreakStatement(breakStatementAst);
 }
Ejemplo n.º 20
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst) { throw PSTraceSource.NewArgumentException("ast"); }
Ejemplo n.º 21
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     this.BreakOrContinue(breakStatementAst.Label, t => t.BreakTarget);
     return(null);
 }
Ejemplo n.º 22
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return GenerateBreakOrContinue(breakStatementAst, breakStatementAst.Label, lgt => lgt.BreakLabel, Expression.Break,
                                    CachedReflectionInfo.BreakException_ctor);
 }
Ejemplo n.º 23
0
 /// <summary/>
 public virtual object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return(null);
 }
Ejemplo n.º 24
0
 public override AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     this.ReportError(breakStatementAst, () => ParserStrings.FlowControlStatementNotSupportedInDataSection, new object[0]);
     return AstVisitAction.Continue;
 }
Ejemplo n.º 25
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return false;
 }
Ejemplo n.º 26
0
        /// <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;
        }
Ejemplo n.º 27
0
 /// <summary/>
 public virtual AstVisitAction VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return(AstVisitAction.Continue);
 }
Ejemplo n.º 28
0
 /// <summary/>
 public virtual object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return _decorated.VisitBreakStatement(breakStatementAst);
 }
Ejemplo n.º 29
0
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     return(AutomationNull.Value);
 }
 public object VisitBreakStatement(BreakStatementAst breakStatementAst)
 {
     throw new NotImplementedException();
 }