We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c1e166 commit bad00cfCopy full SHA for bad00cf
src/coreclr/tools/Common/Compiler/NativeAotNameMangler.cs
@@ -202,6 +202,8 @@ private string ComputeMangledTypeName(TypeDesc type)
202
containingType = containingType.ContainingType;
203
}
204
205
+ name = prependAssemblyName + "_" + SanitizeName(name, true);
206
+
207
// If this is one of the well known types, use a shorter name
208
// We know this won't conflict because all the other types are
209
// prefixed by the assembly name.
@@ -231,10 +233,6 @@ private string ComputeMangledTypeName(TypeDesc type)
231
233
break;
232
234
235
- else
- {
236
- name = prependAssemblyName + "_" + SanitizeName(name, true);
237
- }
238
239
// Ensure that name is unique and update our tables accordingly.
240
name = DisambiguateName(name, deduplicator);
0 commit comments