public EXPRTYPEOF CreateTypeOf(EXPRTYPEORNAMESPACE pSourceType)
        {
            EXPRTYPEOF rval = new EXPRTYPEOF();

            rval.kind  = ExpressionKind.EK_TYPEOF;
            rval.type  = GetTypes().GetReqPredefAgg(PredefinedType.PT_TYPE).getThisType();
            rval.flags = EXPRFLAG.EXF_CANTBENULL;
            rval.SetSourceType(pSourceType);
            Debug.Assert(rval != null);
            return(rval);
        }
Ejemplo n.º 2
0
 protected override EXPR VisitTYPEOF(EXPRTYPEOF expr)
 {
     Debug.Assert(expr != null);
     Debug.Assert(alwaysRewrite || currentAnonMeth != null);
     return GenerateConstant(expr);
 }
Ejemplo n.º 3
0
 protected virtual EXPR VisitTYPEOF(EXPRTYPEOF pExpr)
 {
     return(VisitEXPR(pExpr));
 }
Ejemplo n.º 4
0
 protected virtual EXPR VisitTYPEOF(EXPRTYPEOF pExpr)
 {
     return VisitEXPR(pExpr);
 }
Ejemplo n.º 5
0
 public EXPRTYPEOF CreateTypeOf(EXPRTYPEORNAMESPACE pSourceType)
 {
     EXPRTYPEOF rval = new EXPRTYPEOF();
     rval.kind = ExpressionKind.EK_TYPEOF;
     rval.type = GetTypes().GetReqPredefAgg(PredefinedType.PT_TYPE).getThisType();
     rval.flags = EXPRFLAG.EXF_CANTBENULL;
     rval.SetSourceType(pSourceType);
     Debug.Assert(rval != null);
     return (rval);
 }