System.Management.Pash.Implementation.ExecutionVisitor.VisitReturnStatement C# (CSharp) Method

VisitReturnStatement() public method

public VisitReturnStatement ( System.Management.Automation.Language.ReturnStatementAst returnStatementAst ) : AstVisitAction
returnStatementAst System.Management.Automation.Language.ReturnStatementAst
return AstVisitAction
        public override AstVisitAction VisitReturnStatement(ReturnStatementAst returnStatementAst)
        {
            object value = null;
            if (returnStatementAst.Pipeline != null)
            {
                value = EvaluateAst(returnStatementAst.Pipeline, false);
            }

            throw new ReturnException(value);
        }
ExecutionVisitor