Skip to content

Commit

Permalink
correct spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
daviesj committed Aug 25, 2020
1 parent 047ae5e commit 94329b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Engine/FindAstPositionVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// </summary>
#if !(PSV3 || PSV4)
internal class FindAstPostitionVisitor : AstVisitor2
internal class FindAstPositionVisitor : AstVisitor2
#else
internal class FindAstPostitionVisitor : AstVisitor
internal class FindAstPositionVisitor : AstVisitor
#endif
{
private IScriptPosition searchPosition;
Expand All @@ -22,10 +22,10 @@ internal class FindAstPostitionVisitor : AstVisitor
public Ast AstPosition { get; private set; }

/// <summary>
/// Initializes a new instance of the <see cref="FindAstPostitionVisitor"/> class with the postition to search for.
/// Initializes a new instance of the <see cref="FindAstPositionVisitor"/> class with the postition to search for.
/// </summary>
/// <param name="position">The script position to search for.</param>
public FindAstPostitionVisitor(IScriptPosition position)
public FindAstPositionVisitor(IScriptPosition position)
{
this.searchPosition = position;
}
Expand Down
2 changes: 1 addition & 1 deletion Engine/TokenOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private bool OnSameLine(Token token1, Token token2)
/// <returns>The Ast node directly containing the provided <see cref="Token"/>.</returns>
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;
}
Expand Down

0 comments on commit 94329b0

Please sign in to comment.