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

Lines changed: 4 additions & 4 deletions
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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy