public override AstVisitAction VisitThrowStatement(ThrowStatementAst throwStatementAst)
        {
            var expression = VisitSyntaxNode(throwStatementAst.Pipeline);

            _currentNode = new Throw(expression);

            return(AstVisitAction.SkipChildren);
        }
Beispiel #2
0
 public override StatementAst VisitThrowStatement(ThrowStatementAst throwStatementAst)
 => VisitStatement(base.VisitThrowStatement(throwStatementAst));
Beispiel #3
0
 public override AstVisitAction VisitThrowStatement(ThrowStatementAst ast)
 {
     return(DoNextAction(ast));
 }
 public override AstVisitAction VisitThrowStatement(ThrowStatementAst throwStatementAst)
 {
     return(Visit(throwStatementAst));
 }
 public object VisitThrowStatement(ThrowStatementAst throwStatementAst)
 {
     return(false);
 }
Beispiel #6
0
 public override object VisitThrowStatement(ThrowStatementAst throwStatementAst)
 {
     script_.Write("throw ");
     VisitElement(throwStatementAst.Pipeline);
     return(throwStatementAst);
 }
Beispiel #7
0
 public object VisitThrowStatement(ThrowStatementAst throwStatementAst)
 {
     Console.WriteLine("Visited an ThrowStatementAst.");
     return(throwStatementAst);
 }
Beispiel #8
0
 /// <summary/>
 public virtual AstVisitAction VisitThrowStatement(ThrowStatementAst throwStatementAst) => DefaultVisit(throwStatementAst);
 public static ThrowStatementAst Update(this ThrowStatementAst ast, PipelineBaseAst pipeline = null)
 {
     return(new ThrowStatementAst(ast.Extent, pipeline?.Clone() ?? ast.Pipeline?.Clone()));
 }
Beispiel #10
0
 public override AstVisitAction VisitThrowStatement(ThrowStatementAst throwStatementAst)
 {
     // TODO: add throw statement explanation
     AstExplainer(throwStatementAst);
     return(base.VisitThrowStatement(throwStatementAst));
 }
Beispiel #11
0
 public object VisitThrowStatement(ThrowStatementAst throwStatementAst)
 {
     throw new UnexpectedElementException();
 }
 object ICustomAstVisitor.VisitThrowStatement(ThrowStatementAst throwStatementAst)
 => ProcessRewriter(VisitThrowStatement, throwStatementAst);
 public virtual StatementAst VisitThrowStatement(ThrowStatementAst throwStatementAst)
 {
     return(new ThrowStatementAst(
                throwStatementAst.Extent,
                throwStatementAst.Pipeline?.Rewrite(this, SyntaxKind.Pipeline)));
 }
 public virtual TResult VisitThrowStatement(ThrowStatementAst throwStatementAst) => default(TResult);
 object ICustomAstVisitor.VisitThrowStatement(ThrowStatementAst throwStatementAst) => VisitThrowStatement(throwStatementAst);
Beispiel #16
0
 public override AstVisitAction VisitThrowStatement(ThrowStatementAst throwStatementAst)
 {
     throw new NotImplementedException(); //VisitThrowStatement(throwStatementAst);
 }
 public object VisitThrowStatement(ThrowStatementAst throwStatementAst)
 {
     throw PSTraceSource.NewArgumentException("ast");
 }
Beispiel #18
0
 public object VisitThrowStatement(ThrowStatementAst throwStatementAst)
 {
     throw new NotImplementedException();
 }
 public object VisitThrowStatement(ThrowStatementAst throwStatementAst) => null;
Beispiel #20
0
 public override AstVisitAction VisitThrowStatement(ThrowStatementAst ast)
 {
     return(AstVisitAction.Continue);
 }
Beispiel #21
0
 public override AstVisitAction VisitThrowStatement(ThrowStatementAst throwStatementAst)
 {
     Console.WriteLine("Visited an ThrowStatementAst.");
     Console.WriteLine("    " + throwStatementAst.ToString().Replace(Environment.NewLine, Environment.NewLine + "    "));
     return(AstVisitAction.Continue);
 }
Beispiel #22
0
 public virtual object VisitThrowStatement(ThrowStatementAst throwStatementAst)
 {
     VisitElement(throwStatementAst.Pipeline);
     return(throwStatementAst);
 }
        public object VisitThrowStatement(ThrowStatementAst throwStatementAst)
        {
            var newPipeline = VisitElement(throwStatementAst.Pipeline);

            return(new ThrowStatementAst(throwStatementAst.Extent, newPipeline));
        }
Beispiel #24
0
 public override AstVisitAction VisitThrowStatement(ThrowStatementAst ast)
 {
     return(Check(ast));
 }
Beispiel #25
0
 // ThrowStatementAst Extension Methods
 // New Methods Available:
 // - CreateNodeFromAST(NodeDepth, NodePosition, Parent) => Creates a Node
 public static ThrowNode CreateNodeFromAst(this ThrowStatementAst _ast, int _depth, int _position, Node _parent, Tree _tree)
 {
     return(new ThrowNode(_ast, _depth, _position, _parent, _tree));
 }
Beispiel #26
0
 public override AstVisitAction VisitThrowStatement(ThrowStatementAst throwStatementAst) => VisitAst(throwStatementAst);