Browse Source

fix bug when printing type names introduced by commit 51fc2f10cc

pull/166/merge
Siegfried Pammer 15 years ago
parent
commit
8c228a4df1
  1. 2
      ICSharpCode.Decompiler/Ast/AstBuilder.cs

2
ICSharpCode.Decompiler/Ast/AstBuilder.cs

@ -437,6 +437,7 @@ namespace ICSharpCode.Decompiler.Ast @@ -437,6 +437,7 @@ namespace ICSharpCode.Decompiler.Ast
} else {
astType = new SimpleType(name);
if (!type.HasGenericParameters) {
// Look for generic type parameters defined in TypeDefinition
// allows us to display angle brackets in unbound type names
// e.g. typeof(List<>)
@ -446,6 +447,7 @@ namespace ICSharpCode.Decompiler.Ast @@ -446,6 +447,7 @@ namespace ICSharpCode.Decompiler.Ast
((SimpleType)astType).TypeArguments.Add(new SimpleType(""));
}
}
}
astType.AddAnnotation(type);
if ((options & ConvertTypeOptions.IncludeTypeParameterDefinitions) == ConvertTypeOptions.IncludeTypeParameterDefinitions) {

Loading…
Cancel
Save