Пример #1
0
        public static bool IsString(this AstType astType)
        {
            string typeName = astType.GetTypeName();

            return(typeName == "string" ||
                   typeName == "String");
        }
Пример #2
0
        public static bool IsChar(this AstType astType)
        {
            string typeName = astType.GetTypeName();

            return(typeName == "char" ||
                   typeName == "Char");
        }
Пример #3
0
        public static bool IsDouble(this AstType astType)
        {
            string typeName = astType.GetTypeName();

            return(typeName == "double" ||
                   typeName == "Double");
        }
Пример #4
0
        public static bool IsBoolean(this AstType astType)
        {
            string typeName = astType.GetTypeName();

            return(typeName == "bool" ||
                   typeName == "Boolean");
        }
Пример #5
0
        public static bool IsLong(this AstType astType)
        {
            string typeName = astType.GetTypeName();

            return(typeName == "long" ||
                   typeName == "ulong" ||
                   typeName == "Int64" ||
                   typeName == "UInt64");
        }
Пример #6
0
        public static bool IsInteger(this AstType astType)
        {
            string typeName = astType.GetTypeName();

            return(typeName == "int" ||
                   typeName == "uint" ||
                   typeName == "Int32" ||
                   typeName == "UInt32");
        }
Пример #7
0
        public static bool IsShort(this AstType astType)
        {
            string typeName = astType.GetTypeName();

            return(typeName == "short" ||
                   typeName == "ushort" ||
                   typeName == "Int16" ||
                   typeName == "UInt16");
        }
Пример #8
0
        public static bool IsByte(this AstType astType)
        {
            string typeName = astType.GetTypeName();

            return(typeName == "byte" ||
                   typeName == "sbyte" ||
                   typeName == "Byte" ||
                   typeName == "SByte");
        }
Пример #9
0
        public static bool IsFloat(this AstType astType)
        {
            string typeName = astType.GetTypeName();

            return(typeName == "float");
        }