Ejemplo n.º 1
0
        public ExprReturn CreateReturn(EXPRFLAG nFlags, Scope pCurrentScope, Expr pOptionalObject)
        {
            Debug.Assert(0 == (nFlags &
                               ~(EXPRFLAG.EXF_ASLEAVE | EXPRFLAG.EXF_FINALLYBLOCKED | EXPRFLAG.EXF_RETURNISYIELD |
                                 EXPRFLAG.EXF_ASFINALLYLEAVE | EXPRFLAG.EXF_GENERATEDSTMT | EXPRFLAG.EXF_MARKING |
                                 EXPRFLAG.EXF_MASK_ANY
                                 )
                               ));
            ExprReturn rval = new ExprReturn();

            rval.Flags          = nFlags;
            rval.OptionalObject = pOptionalObject;
            return(rval);
        }
Ejemplo n.º 2
0
        private ExprReturn CreateReturn(EXPRFLAG nFlags, Scope pCurrentScope, Expr pOptionalObject, Expr pOptionalOriginalObject)
        {
            Debug.Assert(0 == (nFlags &
                               ~(EXPRFLAG.EXF_ASLEAVE | EXPRFLAG.EXF_FINALLYBLOCKED | EXPRFLAG.EXF_RETURNISYIELD |
                                 EXPRFLAG.EXF_ASFINALLYLEAVE | EXPRFLAG.EXF_GENERATEDSTMT | EXPRFLAG.EXF_MARKING |
                                 EXPRFLAG.EXF_MASK_ANY
                                 )
                               ));
            ExprReturn rval = new ExprReturn();

            rval.Kind           = ExpressionKind.EK_RETURN;
            rval.Type           = null;
            rval.Flags          = nFlags;
            rval.OptionalObject = pOptionalObject;
            Debug.Assert(rval != null);
            return(rval);
        }
Ejemplo n.º 3
0
 protected virtual Expr VisitRETURN(ExprReturn pExpr)
 {
     return(VisitSTMT(pExpr));
 }