예제 #1
0
        public static bool IsReal(this ITypedCodeNode tcn)
        {
            switch (tcn.ElementType)
            {
            case ElementType.R4:
            case ElementType.R8:
                return(true);

            default:
                return(false);
            }
        }
예제 #2
0
        public static bool IsSigned(this ITypedCodeNode tcn)
        {
            switch (tcn.ElementType)
            {
            case ElementType.I:
            case ElementType.I1:
            case ElementType.I2:
            case ElementType.I4:
            case ElementType.I8:
                return(true);

            default:
                return(false);
            }
        }
예제 #3
0
 public static bool IsPointer(this ITypedCodeNode tcn)
 {
     return(tcn.ElementType == ElementType.Ptr);
 }
예제 #4
0
 public static bool IsObject(this ITypedCodeNode tcn)
 {
     return(tcn.ElementType == ElementType.Object);
 }