File tree 4 files changed +4
-16
lines changed
src/PowerShellEditorServices/Services
4 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,6 @@ internal enum SymbolType
48
48
/// </summary>
49
49
Class ,
50
50
51
- /// <summary>
52
- /// The symbol is a interface
53
- /// </summary>
54
- Interface ,
55
-
56
51
/// <summary>
57
52
/// The symbol is a enum
58
53
/// </summary>
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ private static bool IsAssignedAtScriptScope(VariableExpressionAst variableExpres
85
85
}
86
86
87
87
/// <summary>
88
- /// Adds class, enum and interface AST to symbol reference list
88
+ /// Adds class and AST to symbol reference list
89
89
/// </summary>
90
90
public override AstVisitAction VisitTypeDefinition ( TypeDefinitionAst typeDefinitionAst )
91
91
{
@@ -99,12 +99,9 @@ public override AstVisitAction VisitTypeDefinition(TypeDefinitionAst typeDefinit
99
99
File = typeDefinitionAst . Extent . File
100
100
} ;
101
101
102
- SymbolType symbolType = typeDefinitionAst switch
103
- {
104
- { IsEnum : true } => SymbolType . Enum ,
105
- { IsInterface : true } => SymbolType . Interface ,
106
- _ => SymbolType . Class ,
107
- } ;
102
+ SymbolType symbolType =
103
+ typeDefinitionAst . IsEnum ?
104
+ SymbolType . Enum : SymbolType . Class ;
108
105
109
106
SymbolReferences . Add (
110
107
new SymbolReference (
Original file line number Diff line number Diff line change @@ -130,7 +130,6 @@ private static SymbolKind GetSymbolKind(SymbolType symbolType)
130
130
{
131
131
SymbolType . Configuration or SymbolType . Function or SymbolType . Workflow => SymbolKind . Function ,
132
132
SymbolType . Enum => SymbolKind . Enum ,
133
- SymbolType . Interface => SymbolKind . Interface ,
134
133
SymbolType . Class => SymbolKind . Class ,
135
134
SymbolType . Constructor => SymbolKind . Constructor ,
136
135
SymbolType . Method => SymbolKind . Method ,
@@ -150,7 +149,6 @@ SymbolType.Configuration or
150
149
SymbolType . Function or
151
150
SymbolType . Workflow or
152
151
SymbolType . Enum or
153
- SymbolType . Interface or
154
152
SymbolType . Class )
155
153
{
156
154
name += " { }" ;
Original file line number Diff line number Diff line change @@ -107,7 +107,6 @@ SymbolType.Configuration or
107
107
SymbolType . Function or
108
108
SymbolType . Workflow or
109
109
SymbolType . Enum or
110
- SymbolType . Interface or
111
110
SymbolType . Class )
112
111
{
113
112
name += " { }" ;
@@ -122,7 +121,6 @@ private static SymbolKind GetSymbolKind(SymbolType symbolType)
122
121
{
123
122
SymbolType . Configuration or SymbolType . Function or SymbolType . Workflow => SymbolKind . Function ,
124
123
SymbolType . Enum => SymbolKind . Enum ,
125
- SymbolType . Interface => SymbolKind . Interface ,
126
124
SymbolType . Class => SymbolKind . Class ,
127
125
SymbolType . Constructor => SymbolKind . Constructor ,
128
126
SymbolType . Method => SymbolKind . Method ,
You can’t perform that action at this time.
0 commit comments