File tree 3 files changed +0
-97
lines changed
src/PowerShellEditorServices/Services/Symbols
3 files changed +0
-97
lines changed Original file line number Diff line number Diff line change @@ -33,17 +33,6 @@ IEnumerable<ISymbolReference> IDocumentSymbolProvider.ProvideDocumentSymbols(
33
33
/// <returns>A collection of SymbolReference objects</returns>
34
34
public static IEnumerable < SymbolReference > FindSymbolsInDocument ( Ast scriptAst )
35
35
{
36
- // TODO: Restore this when we figure out how to support multiple
37
- // PS versions in the new PSES-as-a-module world (issue #276)
38
- // if (powerShellVersion >= new Version(5,0))
39
- // {
40
- //#if PowerShell v5
41
- // FindSymbolsVisitor2 findSymbolsVisitor = new FindSymbolsVisitor2();
42
- // scriptAst.Visit(findSymbolsVisitor);
43
- // symbolReferences = findSymbolsVisitor.SymbolReferences;
44
- //#endif
45
- // }
46
- // else
47
36
FindSymbolsVisitor findSymbolsVisitor = new ( ) ;
48
37
scriptAst . Visit ( findSymbolsVisitor ) ;
49
38
return findSymbolsVisitor . SymbolReferences ;
Original file line number Diff line number Diff line change @@ -227,18 +227,6 @@ public static SymbolReference FindDefinitionOfSymbol(
227
227
/// <returns>A collection of SymbolReference objects</returns>
228
228
public static IEnumerable < SymbolReference > FindSymbolsInDocument ( Ast scriptAst )
229
229
{
230
- // TODO: Restore this when we figure out how to support multiple
231
- // PS versions in the new PSES-as-a-module world (issue #276)
232
- // if (powerShellVersion >= new Version(5,0))
233
- // {
234
- //#if PowerShell v5
235
- // FindSymbolsVisitor2 findSymbolsVisitor = new FindSymbolsVisitor2();
236
- // scriptAst.Visit(findSymbolsVisitor);
237
- // symbolReferences = findSymbolsVisitor.SymbolReferences;
238
- //#endif
239
- // }
240
- // else
241
-
242
230
FindSymbolsVisitor findSymbolsVisitor = new ( ) ;
243
231
scriptAst . Visit ( findSymbolsVisitor ) ;
244
232
return findSymbolsVisitor . SymbolReferences ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments