From 5373cb26ad442ec3f44c40ea237ddf00d2a398c8 Mon Sep 17 00:00:00 2001 From: Jane Doe Date: Sun, 13 Oct 2019 07:29:16 -0700 Subject: [PATCH] Ancsestor -> Ancestor --- ILSpy.AddIn/SyntaxNodeExtensions.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ILSpy.AddIn/SyntaxNodeExtensions.cs b/ILSpy.AddIn/SyntaxNodeExtensions.cs index ccba51907..f6ecc87ae 100644 --- a/ILSpy.AddIn/SyntaxNodeExtensions.cs +++ b/ILSpy.AddIn/SyntaxNodeExtensions.cs @@ -404,15 +404,15 @@ namespace ICSharpCode.ILSpy.AddIn public static NamespaceDeclarationSyntax GetInnermostNamespaceDeclarationWithUsings(this SyntaxNode contextNode) { - var usingDirectiveAncsestor = contextNode.GetAncestor(); - if (usingDirectiveAncsestor == null) + var usingDirectiveAncestor = contextNode.GetAncestor(); + if (usingDirectiveAncestor == null) { return contextNode.GetAncestorsOrThis().FirstOrDefault(n => n.Usings.Count > 0); } else { // We are inside a using directive. In this case, we should find and return the first 'parent' namespace with usings. - var containingNamespace = usingDirectiveAncsestor.GetAncestor(); + var containingNamespace = usingDirectiveAncestor.GetAncestor(); if (containingNamespace == null) { // We are inside a top level using directive (i.e. one that's directly in the compilation unit).