@@ -24,7 +24,7 @@ namespace Microsoft.PowerShell.EditorServices
24
24
internal static class AstOperations
25
25
{
26
26
/// <summary>
27
- /// Gets completions for the symbol found in the Ast at
27
+ /// Gets completions for the symbol found in the Ast at
28
28
/// the given file offset.
29
29
/// </summary>
30
30
/// <param name="scriptAst">
@@ -47,14 +47,14 @@ internal static class AstOperations
47
47
/// symbol at the given offset.
48
48
/// </returns>
49
49
static public async Task < CommandCompletion > GetCompletions (
50
- Ast scriptAst ,
51
- Token [ ] currentTokens ,
50
+ Ast scriptAst ,
51
+ Token [ ] currentTokens ,
52
52
int fileOffset ,
53
53
PowerShellContext powerShellContext ,
54
54
CancellationToken cancellationToken )
55
55
{
56
56
var type = scriptAst . Extent . StartScriptPosition . GetType ( ) ;
57
- var method =
57
+ var method =
58
58
#if CoreCLR
59
59
type . GetMethod (
60
60
"CloneWithNewOffset" ,
@@ -67,9 +67,9 @@ static public async Task<CommandCompletion> GetCompletions(
67
67
new [ ] { typeof ( int ) } , null ) ;
68
68
#endif
69
69
70
- IScriptPosition cursorPosition =
70
+ IScriptPosition cursorPosition =
71
71
( IScriptPosition ) method . Invoke (
72
- scriptAst . Extent . StartScriptPosition ,
72
+ scriptAst . Extent . StartScriptPosition ,
73
73
new object [ ] { fileOffset } ) ;
74
74
75
75
Logger . Write (
@@ -138,7 +138,7 @@ static public async Task<CommandCompletion> GetCompletions(
138
138
}
139
139
140
140
/// <summary>
141
- /// Finds the symbol at a given file location
141
+ /// Finds the symbol at a given file location
142
142
/// </summary>
143
143
/// <param name="scriptAst">The abstract syntax tree of the given script</param>
144
144
/// <param name="lineNumber">The line number of the cursor for the given script</param>
@@ -176,15 +176,15 @@ static public SymbolReference FindCommandAtPosition(Ast scriptAst, int lineNumbe
176
176
/// <param name="AliasToCmdletDictionary">Dictionary maping aliases to cmdlets for finding alias references</param>
177
177
/// <returns></returns>
178
178
static public IEnumerable < SymbolReference > FindReferencesOfSymbol (
179
- Ast scriptAst ,
180
- SymbolReference symbolReference ,
179
+ Ast scriptAst ,
180
+ SymbolReference symbolReference ,
181
181
Dictionary < String , List < String > > CmdletToAliasDictionary ,
182
182
Dictionary < String , String > AliasToCmdletDictionary )
183
183
{
184
184
// find the symbol evaluators for the node types we are handling
185
- FindReferencesVisitor referencesVisitor =
185
+ FindReferencesVisitor referencesVisitor =
186
186
new FindReferencesVisitor (
187
- symbolReference ,
187
+ symbolReference ,
188
188
CmdletToAliasDictionary ,
189
189
AliasToCmdletDictionary ) ;
190
190
scriptAst . Visit ( referencesVisitor ) ;
@@ -202,8 +202,8 @@ static public IEnumerable<SymbolReference> FindReferencesOfSymbol(
202
202
/// <returns>A collection of SymbolReference objects that are refrences to the symbolRefrence
203
203
/// not including aliases</returns>
204
204
static public IEnumerable < SymbolReference > FindReferencesOfSymbol (
205
- ScriptBlockAst scriptAst ,
206
- SymbolReference foundSymbol ,
205
+ ScriptBlockAst scriptAst ,
206
+ SymbolReference foundSymbol ,
207
207
bool needsAliases )
208
208
{
209
209
FindReferencesVisitor referencesVisitor =
@@ -214,7 +214,7 @@ static public IEnumerable<SymbolReference> FindReferencesOfSymbol(
214
214
}
215
215
216
216
/// <summary>
217
- /// Finds the definition of the symbol
217
+ /// Finds the definition of the symbol
218
218
/// </summary>
219
219
/// <param name="scriptAst">The abstract syntax tree of the given script</param>
220
220
/// <param name="symbolReference">The symbol that we are looking for the definition of</param>
@@ -223,12 +223,12 @@ static public SymbolReference FindDefinitionOfSymbol(
223
223
Ast scriptAst ,
224
224
SymbolReference symbolReference )
225
225
{
226
- FindDeclartionVisitor declarationVisitor =
227
- new FindDeclartionVisitor (
226
+ FindDeclarationVisitor declarationVisitor =
227
+ new FindDeclarationVisitor (
228
228
symbolReference ) ;
229
229
scriptAst . Visit ( declarationVisitor ) ;
230
230
231
- return declarationVisitor . FoundDeclartion ;
231
+ return declarationVisitor . FoundDeclaration ;
232
232
}
233
233
234
234
/// <summary>
0 commit comments