buildTypeName function
Implementation
@pragma('vm:prefer-inline')
String buildTypeName(Type type) {
return switch (type) {
TopType() => 'Object?',
MonomorphicType(:final name) || PolymorphicType(:final name) || TypeParameterType(:final name) => name,
BottomType() => 'Never',
};
}