buildTypeName function

String buildTypeName(
  1. Type type
)

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',
  };
}