diff options
author | Daniel Grunwald <daniel@danielgrunwald.de> | 2014-01-18 00:54:15 +0400 |
---|---|---|
committer | Daniel Grunwald <daniel@danielgrunwald.de> | 2014-01-24 19:18:01 +0400 |
commit | 0831ca2439dc0934f4b7dc92af93cc391b1269d8 (patch) | |
tree | 8c0dacb34b3248c09d9205a3f90924deca0f403b /ICSharpCode.NRefactory | |
parent | 6d0ca7d0552ae5093c35dd5d24be74357cdda1cc (diff) |
Fix potential NullReferenceExceptions.
Diffstat (limited to 'ICSharpCode.NRefactory')
-rw-r--r-- | ICSharpCode.NRefactory/Editor/TextSourceVersionProvider.cs | 2 | ||||
-rw-r--r-- | ICSharpCode.NRefactory/TypeSystem/KnownTypeReference.cs | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/ICSharpCode.NRefactory/Editor/TextSourceVersionProvider.cs b/ICSharpCode.NRefactory/Editor/TextSourceVersionProvider.cs index f5c246d0..b3415c94 100644 --- a/ICSharpCode.NRefactory/Editor/TextSourceVersionProvider.cs +++ b/ICSharpCode.NRefactory/Editor/TextSourceVersionProvider.cs @@ -18,6 +18,7 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; namespace ICSharpCode.NRefactory.Editor @@ -54,6 +55,7 @@ namespace ICSharpCode.NRefactory.Editor currentVersion = currentVersion.next; } + [DebuggerDisplay("Version #{id}")] sealed class Version : ITextSourceVersion { // Reference back to the provider. diff --git a/ICSharpCode.NRefactory/TypeSystem/KnownTypeReference.cs b/ICSharpCode.NRefactory/TypeSystem/KnownTypeReference.cs index 034a61a1..98f3a184 100644 --- a/ICSharpCode.NRefactory/TypeSystem/KnownTypeReference.cs +++ b/ICSharpCode.NRefactory/TypeSystem/KnownTypeReference.cs @@ -25,7 +25,7 @@ namespace ICSharpCode.NRefactory.TypeSystem /// </summary> public enum KnownTypeCode { - // Note: DefaultResolvedTypeDefinition uses (KnownTypeCode)-1 as special value for "not yet calculated" + // Note: DefaultResolvedTypeDefinition uses (KnownTypeCode)-1 as special value for "not yet calculated". // The order of type codes at the beginning must correspond to those in System.TypeCode. /// <summary> |