From e68833dd334976a692a3e33b7f168c6a514a343a Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Wed, 13 Apr 2011 11:26:10 +0200 Subject: [PATCH] Add TestPlugin. --- ICSharpCode.NRefactory/CSharp/Ast/AstNode.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ICSharpCode.NRefactory/CSharp/Ast/AstNode.cs b/ICSharpCode.NRefactory/CSharp/Ast/AstNode.cs index ab83776858..f0bd67d103 100644 --- a/ICSharpCode.NRefactory/CSharp/Ast/AstNode.cs +++ b/ICSharpCode.NRefactory/CSharp/Ast/AstNode.cs @@ -383,7 +383,7 @@ namespace ICSharpCode.NRefactory.CSharp /// /// Clones the whole subtree starting at this AST node. /// - /// Annotations are copied over to the new nodes; and any annotations implementating ICloneable will be cloned. + /// Annotations are copied over to the new nodes; and any annotations implementing ICloneable will be cloned. public AstNode Clone() { AstNode copy = (AstNode)MemberwiseClone(); @@ -401,9 +401,9 @@ namespace ICSharpCode.NRefactory.CSharp } // Finally, clone the annotation, if necessary - ICloneable annotations = copy.annotations as ICloneable; // read from copy (for thread-safety) - if (annotations != null) - copy.annotations = annotations.Clone(); + ICloneable copiedAnnotations = copy.annotations as ICloneable; // read from copy (for thread-safety) + if (copiedAnnotations != null) + copy.annotations = copiedAnnotations.Clone(); return copy; }