@@ -36,7 +36,7 @@ function Get-Sum {
36
36
37
37
foreach ( Token t in scriptFile . ScriptTokens )
38
38
{
39
- List < SemanticToken > mappedTokens = new List < SemanticToken > ( PsesSemanticTokens . ConvertToSemanticTokens ( t ) ) ;
39
+ List < SemanticToken > mappedTokens = new List < SemanticToken > ( PsesSemanticTokensHandler . ConvertToSemanticTokens ( t ) ) ;
40
40
switch ( t . Text )
41
41
{
42
42
case "function" :
@@ -72,12 +72,12 @@ public async Task TokenizesStringExpansion()
72
72
Version . Parse ( "5.0" ) ) ;
73
73
74
74
Token commandToken = scriptFile . ScriptTokens [ 0 ] ;
75
- List < SemanticToken > mappedTokens = new List < SemanticToken > ( PsesSemanticTokens . ConvertToSemanticTokens ( commandToken ) ) ;
75
+ List < SemanticToken > mappedTokens = new List < SemanticToken > ( PsesSemanticTokensHandler . ConvertToSemanticTokens ( commandToken ) ) ;
76
76
Assert . Single ( mappedTokens ) ;
77
77
Assert . Equal ( SemanticTokenType . Function , mappedTokens [ 0 ] . Type ) ;
78
78
79
79
Token stringExpandableToken = scriptFile . ScriptTokens [ 1 ] ;
80
- mappedTokens = new List < SemanticToken > ( PsesSemanticTokens . ConvertToSemanticTokens ( stringExpandableToken ) ) ;
80
+ mappedTokens = new List < SemanticToken > ( PsesSemanticTokensHandler . ConvertToSemanticTokens ( stringExpandableToken ) ) ;
81
81
Assert . Collection ( mappedTokens ,
82
82
sToken => Assert . Equal ( SemanticTokenType . Function , sToken . Type ) ,
83
83
sToken => Assert . Equal ( SemanticTokenType . Function , sToken . Type ) ,
@@ -101,7 +101,7 @@ function Get-A*A {
101
101
102
102
foreach ( Token t in scriptFile . ScriptTokens )
103
103
{
104
- List < SemanticToken > mappedTokens = new List < SemanticToken > ( PsesSemanticTokens . ConvertToSemanticTokens ( t ) ) ;
104
+ List < SemanticToken > mappedTokens = new List < SemanticToken > ( PsesSemanticTokensHandler . ConvertToSemanticTokens ( t ) ) ;
105
105
switch ( t . Text )
106
106
{
107
107
case "function" :
@@ -126,7 +126,7 @@ public async Task RecognizesArrayMemberInExpandableString()
126
126
127
127
foreach ( Token t in scriptFile . ScriptTokens )
128
128
{
129
- List < SemanticToken > mappedTokens = new List < SemanticToken > ( PsesSemanticTokens . ConvertToSemanticTokens ( t ) ) ;
129
+ List < SemanticToken > mappedTokens = new List < SemanticToken > ( PsesSemanticTokensHandler . ConvertToSemanticTokens ( t ) ) ;
130
130
switch ( t . Text )
131
131
{
132
132
case "$Array" :
@@ -149,7 +149,7 @@ public async Task RecognizesCurlyQuotedString()
149
149
text ,
150
150
Version . Parse ( "5.0" ) ) ;
151
151
152
- List < SemanticToken > mappedTokens = new List < SemanticToken > ( PsesSemanticTokens . ConvertToSemanticTokens ( scriptFile . ScriptTokens [ 0 ] ) ) ;
152
+ List < SemanticToken > mappedTokens = new List < SemanticToken > ( PsesSemanticTokensHandler . ConvertToSemanticTokens ( scriptFile . ScriptTokens [ 0 ] ) ) ;
153
153
Assert . Collection ( mappedTokens , sToken => Assert . Equal ( SemanticTokenType . String , mappedTokens [ 0 ] . Type ) ) ;
154
154
}
155
155
@@ -171,7 +171,7 @@ enum MyEnum{
171
171
172
172
foreach ( Token t in scriptFile . ScriptTokens )
173
173
{
174
- List < SemanticToken > mappedTokens = new List < SemanticToken > ( PsesSemanticTokens . ConvertToSemanticTokens ( t ) ) ;
174
+ List < SemanticToken > mappedTokens = new List < SemanticToken > ( PsesSemanticTokensHandler . ConvertToSemanticTokens ( t ) ) ;
175
175
switch ( t . Text )
176
176
{
177
177
case "enum" :
0 commit comments