public static bool IsString(this AstType astType) { string typeName = astType.GetTypeName(); return(typeName == "string" || typeName == "String"); }
public static bool IsChar(this AstType astType) { string typeName = astType.GetTypeName(); return(typeName == "char" || typeName == "Char"); }
public static bool IsDouble(this AstType astType) { string typeName = astType.GetTypeName(); return(typeName == "double" || typeName == "Double"); }
public static bool IsBoolean(this AstType astType) { string typeName = astType.GetTypeName(); return(typeName == "bool" || typeName == "Boolean"); }
public static bool IsLong(this AstType astType) { string typeName = astType.GetTypeName(); return(typeName == "long" || typeName == "ulong" || typeName == "Int64" || typeName == "UInt64"); }
public static bool IsInteger(this AstType astType) { string typeName = astType.GetTypeName(); return(typeName == "int" || typeName == "uint" || typeName == "Int32" || typeName == "UInt32"); }
public static bool IsShort(this AstType astType) { string typeName = astType.GetTypeName(); return(typeName == "short" || typeName == "ushort" || typeName == "Int16" || typeName == "UInt16"); }
public static bool IsByte(this AstType astType) { string typeName = astType.GetTypeName(); return(typeName == "byte" || typeName == "sbyte" || typeName == "Byte" || typeName == "SByte"); }
public static bool IsFloat(this AstType astType) { string typeName = astType.GetTypeName(); return(typeName == "float"); }