Skip to content

Commit 94329b0

Browse files
committed
correct spelling
1 parent 047ae5e commit 94329b0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Engine/FindAstPositionVisitor.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ namespace Microsoft.Windows.PowerShell.ScriptAnalyzer
99
/// Provides an efficient way to find the position in the AST corresponding to a given script position.
1010
/// </summary>
1111
#if !(PSV3 || PSV4)
12-
internal class FindAstPostitionVisitor : AstVisitor2
12+
internal class FindAstPositionVisitor : AstVisitor2
1313
#else
14-
internal class FindAstPostitionVisitor : AstVisitor
14+
internal class FindAstPositionVisitor : AstVisitor
1515
#endif
1616
{
1717
private IScriptPosition searchPosition;
@@ -22,10 +22,10 @@ internal class FindAstPostitionVisitor : AstVisitor
2222
public Ast AstPosition { get; private set; }
2323

2424
/// <summary>
25-
/// Initializes a new instance of the <see cref="FindAstPostitionVisitor"/> class with the postition to search for.
25+
/// Initializes a new instance of the <see cref="FindAstPositionVisitor"/> class with the postition to search for.
2626
/// </summary>
2727
/// <param name="position">The script position to search for.</param>
28-
public FindAstPostitionVisitor(IScriptPosition position)
28+
public FindAstPositionVisitor(IScriptPosition position)
2929
{
3030
this.searchPosition = position;
3131
}

Engine/TokenOperations.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ private bool OnSameLine(Token token1, Token token2)
240240
/// <returns>The Ast node directly containing the provided <see cref="Token"/>.</returns>
241241
public Ast GetAstPosition(Token token)
242242
{
243-
FindAstPostitionVisitor findAstVisitor = new FindAstPostitionVisitor(token.Extent.StartScriptPosition);
243+
FindAstPositionVisitor findAstVisitor = new FindAstPositionVisitor(token.Extent.StartScriptPosition);
244244
ast.Visit(findAstVisitor);
245245
return findAstVisitor.AstPosition;
246246
}

0 commit comments

Comments
 (0)