From 94329b08b72077a38df4a25541f34593b5fbef9e Mon Sep 17 00:00:00 2001 From: Joel Davies <12704625+daviesj@users.noreply.github.com> Date: Tue, 25 Aug 2020 16:32:29 -0500 Subject: [PATCH] correct spelling --- Engine/FindAstPositionVisitor.cs | 8 ++++---- Engine/TokenOperations.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Engine/FindAstPositionVisitor.cs b/Engine/FindAstPositionVisitor.cs index c957e8d03..75ee33aad 100644 --- a/Engine/FindAstPositionVisitor.cs +++ b/Engine/FindAstPositionVisitor.cs @@ -9,9 +9,9 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer /// Provides an efficient way to find the position in the AST corresponding to a given script position. /// #if !(PSV3 || PSV4) - internal class FindAstPostitionVisitor : AstVisitor2 + internal class FindAstPositionVisitor : AstVisitor2 #else - internal class FindAstPostitionVisitor : AstVisitor + internal class FindAstPositionVisitor : AstVisitor #endif { private IScriptPosition searchPosition; @@ -22,10 +22,10 @@ internal class FindAstPostitionVisitor : AstVisitor public Ast AstPosition { get; private set; } /// - /// Initializes a new instance of the class with the postition to search for. + /// Initializes a new instance of the class with the postition to search for. /// /// The script position to search for. - public FindAstPostitionVisitor(IScriptPosition position) + public FindAstPositionVisitor(IScriptPosition position) { this.searchPosition = position; } diff --git a/Engine/TokenOperations.cs b/Engine/TokenOperations.cs index 8e2ba3c27..fa9a1978a 100644 --- a/Engine/TokenOperations.cs +++ b/Engine/TokenOperations.cs @@ -240,7 +240,7 @@ private bool OnSameLine(Token token1, Token token2) /// The Ast node directly containing the provided . public Ast GetAstPosition(Token token) { - FindAstPostitionVisitor findAstVisitor = new FindAstPostitionVisitor(token.Extent.StartScriptPosition); + FindAstPositionVisitor findAstVisitor = new FindAstPositionVisitor(token.Extent.StartScriptPosition); ast.Visit(findAstVisitor); return findAstVisitor.AstPosition; }