diff --git a/ICSharpCode.NRefactory/CSharp/Ast/AstComparer.cs b/ICSharpCode.NRefactory/CSharp/Ast/AstComparer.cs index ab74a4fc5a..61d6fd4f1d 100644 --- a/ICSharpCode.NRefactory/CSharp/Ast/AstComparer.cs +++ b/ICSharpCode.NRefactory/CSharp/Ast/AstComparer.cs @@ -31,6 +31,8 @@ namespace ICSharpCode.NRefactory.CSharp bool? result = true; while (result != false && (child1 != null || child2 != null)) { result &= AreEqual(child1, child2); + child1 = child1.NextSibling; + child2 = child2.NextSibling; } if (nodeTypesWithoutExtraInfo.Contains(nodeType)) return result;