Browse Source

little modifications (comments)

pull/191/merge
Eusebiu Marcu 15 years ago
parent
commit
3cbafbbe63
  1. 2
      ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs
  2. 2
      ICSharpCode.Decompiler/CodeMappings.cs

2
ICSharpCode.Decompiler/Ast/TextOutputFormatter.cs

@ -130,7 +130,7 @@ namespace ICSharpCode.Decompiler.Ast @@ -130,7 +130,7 @@ namespace ICSharpCode.Decompiler.Ast
if (node.Ancestors != null && node.Ancestors.Count() > 0)
{
var n = node.Ancestors.FirstOrDefault(a => a.Annotation<MemberMapping>() != null);
if (n != default(AstType)) {
if (n != null) {
MemberMapping mapping = n.Annotation<MemberMapping>();
// add all ranges

2
ICSharpCode.Decompiler/CodeMappings.cs

@ -93,7 +93,7 @@ namespace ICSharpCode.Decompiler @@ -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;
}
}

Loading…
Cancel
Save