From bed48beb3dcbb8e3c1d289fd6b7b8f97d384b9d1 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Sat, 13 Jun 2015 16:56:40 +0200 Subject: [PATCH] fix unit tests --- .../CSharp/Transforms/IntroduceUsingDeclarations.cs | 5 +++++ NRefactory | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/CSharp/Transforms/IntroduceUsingDeclarations.cs b/ICSharpCode.Decompiler/CSharp/Transforms/IntroduceUsingDeclarations.cs index 099e617aa..21d9d6d36 100644 --- a/ICSharpCode.Decompiler/CSharp/Transforms/IntroduceUsingDeclarations.cs +++ b/ICSharpCode.Decompiler/CSharp/Transforms/IntroduceUsingDeclarations.cs @@ -170,6 +170,11 @@ namespace ICSharpCode.Decompiler.CSharp.Transforms base.VisitSimpleType(simpleType); return; } + // HACK : ignore type names in attributes (TypeSystemAstBuilder doesn't handle them correctly) + if (simpleType.Parent is NRefactory.CSharp.Attribute) { + base.VisitSimpleType(simpleType); + return; + } simpleType.ReplaceWith(astBuilder.ConvertType(rr.Type)); } } diff --git a/NRefactory b/NRefactory index c57d52dd0..2d6565349 160000 --- a/NRefactory +++ b/NRefactory @@ -1 +1 @@ -Subproject commit c57d52dd02bc0a01815bb9313f4505d92cf75525 +Subproject commit 2d65653491ba5a804dd2b44b946b1d33b00c0623