Ejemplo n.º 1
0
        public ExprUserDefinedConversion CreateUserDefinedConversion(Expr arg, Expr call, MethWithInst mwi)
        {
            Debug.Assert(arg != null);
            Debug.Assert(call != null);
            ExprUserDefinedConversion rval = new ExprUserDefinedConversion();

            rval.Argument              = arg;
            rval.UserDefinedCall       = call;
            rval.UserDefinedCallMethod = mwi;
            if (call.HasError)
            {
                rval.SetError();
            }
            return(rval);
        }
Ejemplo n.º 2
0
        public ExprUserDefinedConversion CreateUserDefinedConversion(Expr arg, Expr call, MethWithInst mwi)
        {
            Debug.Assert(arg != null);
            Debug.Assert(call != null);
            ExprUserDefinedConversion rval = new ExprUserDefinedConversion();

            rval.Kind                  = ExpressionKind.EK_USERDEFINEDCONVERSION;
            rval.Type                  = call.Type;
            rval.Flags                 = 0;
            rval.Argument              = arg;
            rval.UserDefinedCall       = call;
            rval.UserDefinedCallMethod = mwi;
            if (call.HasError)
            {
                rval.SetError();
            }
            Debug.Assert(rval != null);
            return(rval);
        }