From abdf59560ce55c7799f464fba637f3d61db7da9f Mon Sep 17 00:00:00 2001 From: Ed Harvey Date: Fri, 25 Nov 2011 12:46:33 +1100 Subject: [PATCH] Fix #294: Exception on creation of tree node with 'privatescope' visibility --- ILSpy/ILSpy.csproj | 1 + ILSpy/Images/AccessOverlayIcon.cs | 1 + ILSpy/Images/Images.cs | 4 ++++ ILSpy/Images/OverlayCompilerControlled.png | Bin 0 -> 474 bytes ILSpy/TreeNodes/EventTreeNode.cs | 5 ++++- ILSpy/TreeNodes/FieldTreeNode.cs | 9 +++++++-- ILSpy/TreeNodes/MethodTreeNode.cs | 5 ++++- ILSpy/TreeNodes/PropertyTreeNode.cs | 5 ++++- 8 files changed, 25 insertions(+), 5 deletions(-) create mode 100644 ILSpy/Images/OverlayCompilerControlled.png diff --git a/ILSpy/ILSpy.csproj b/ILSpy/ILSpy.csproj index ec7725d5b..f370b6fbf 100644 --- a/ILSpy/ILSpy.csproj +++ b/ILSpy/ILSpy.csproj @@ -332,6 +332,7 @@ + diff --git a/ILSpy/Images/AccessOverlayIcon.cs b/ILSpy/Images/AccessOverlayIcon.cs index dbd04f00d..e0a63e9db 100644 --- a/ILSpy/Images/AccessOverlayIcon.cs +++ b/ILSpy/Images/AccessOverlayIcon.cs @@ -27,5 +27,6 @@ namespace ICSharpCode.ILSpy Internal, ProtectedInternal, Private, + CompilerControlled } } diff --git a/ILSpy/Images/Images.cs b/ILSpy/Images/Images.cs index 6654a809a..18d392dab 100644 --- a/ILSpy/Images/Images.cs +++ b/ILSpy/Images/Images.cs @@ -95,6 +95,7 @@ namespace ICSharpCode.ILSpy private static readonly BitmapImage OverlayInternal = LoadBitmap("OverlayInternal"); private static readonly BitmapImage OverlayProtectedInternal = LoadBitmap("OverlayProtectedInternal"); private static readonly BitmapImage OverlayPrivate = LoadBitmap("OverlayPrivate"); + private static readonly BitmapImage OverlayCompilerControlled = LoadBitmap("OverlayCompilerControlled"); private static readonly BitmapImage OverlayStatic = LoadBitmap("OverlayStatic"); @@ -294,6 +295,9 @@ namespace ICSharpCode.ILSpy case AccessOverlayIcon.Private: overlayImage = Images.OverlayPrivate; break; + case AccessOverlayIcon.CompilerControlled: + overlayImage = Images.OverlayCompilerControlled; + break; default: throw new NotSupportedException(); } diff --git a/ILSpy/Images/OverlayCompilerControlled.png b/ILSpy/Images/OverlayCompilerControlled.png new file mode 100644 index 0000000000000000000000000000000000000000..25a0f2ac969c0e7c265ec0e3c9a39b2ff9ea6645 GIT binary patch literal 474 zcmV<00VV#4P)004R=004l4008;_004mL004C`008P>0026e000+nl3&F}00009 za7bBm000tj000tj0U?{1Y5)KL7IZ~ebW?9;ba!ELWdLwtX>N2bZe?^JG%heZ==Es; z00AyZL_t(IPh=7CR{)J&6UFm8gQ?`=i~qSkpKVRKL7vk)#LwvZl3-B zVdbR%XN*|>S7}Lh6ExsTw8{NHk!t^c9$5GP>!x}CKP>F{|DY-L|2{qDe_65uRRj&# z@25NCz76mHr_MtEZ`tzxKWEMbbUx?*=}Ihb0);p&2pX^^$XH{&qx|9hMjStm8?gM} ztHb