private System.Type ResolveBuiltinType(EBuiltinType bt) { switch (bt) { case EBuiltinType.Uint8: return(typeof(byte)); case EBuiltinType.Uint16: return(typeof(ushort)); case EBuiltinType.Uint32: return(typeof(uint)); case EBuiltinType.Uint64: return(typeof(ulong)); case EBuiltinType.Int8: return(typeof(sbyte)); case EBuiltinType.Int16: return(typeof(short)); case EBuiltinType.Int32: return(typeof(int)); case EBuiltinType.Int64: return(typeof(long)); case EBuiltinType.Float32: return(typeof(float)); case EBuiltinType.Float64: return(typeof(double)); case EBuiltinType.Complex64: throw new NotImplementedException(); case EBuiltinType.Complex128: throw new NotImplementedException(); case EBuiltinType.Uintptr: return(typeof(UIntPtr)); default: break; } return(null); }
public BuiltinType(EBuiltinType type) : base(false) { Type = type; }