From 3cbafbbe63ddeeee30c5c9b2f9b65371788a8f51 Mon Sep 17 00:00:00 2001 From: Eusebiu Marcu Date: Mon, 14 Mar 2011 16:25:05 +0200 Subject: [PATCH] little modifications (comments) --- ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs | 2 +- ICSharpCode.Decompiler/CodeMappings.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs b/ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs index a55e1edc9..1e6915872 100644 --- a/ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs +++ b/ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs @@ -130,7 +130,7 @@ namespace ICSharpCode.Decompiler.Ast if (node.Ancestors != null && node.Ancestors.Count() > 0) { var n = node.Ancestors.FirstOrDefault(a => a.Annotation() != null); - if (n != default(AstType)) { + if (n != null) { MemberMapping mapping = n.Annotation(); // add all ranges diff --git a/ICSharpCode.Decompiler/CodeMappings.cs b/ICSharpCode.Decompiler/CodeMappings.cs index 672ab151b..ff74e12f9 100644 --- a/ICSharpCode.Decompiler/CodeMappings.cs +++ b/ICSharpCode.Decompiler/CodeMappings.cs @@ -93,7 +93,7 @@ namespace ICSharpCode.Decompiler //Get hash code for the SourceCodeLine field. int hashLine = map.SourceCodeLine.GetHashCode(); - //Calculate the hash code for the product. + //Calculate the hash code. return hashRange ^ hashLine; } }