Skip to content

Commit 697f5cd

Browse files
committed
remove Tokens alias
1 parent f392e2f commit 697f5cd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Tests/SourceKitLSPTests/SemanticTokensTests.swift

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import SourceKitLSP
1818
import XCTest
1919

2020
private typealias Token = SyntaxHighlightingToken
21-
private typealias Tokens = SyntaxHighlightingTokens
2221

2322
final class SemanticTokensTests: XCTestCase {
2423
/// The mock client used to communicate with the SourceKit-LSP server.
@@ -129,7 +128,7 @@ final class SemanticTokensTests: XCTestCase {
129128
)
130129
}
131130

132-
private func performSemanticTokensRequest(range: Range<Position>? = nil) async throws -> Tokens {
131+
private func performSemanticTokensRequest(range: Range<Position>? = nil) async throws -> SyntaxHighlightingTokens {
133132
try await SkipUnless.sourcekitdHasSemanticTokensRequest()
134133
let response: DocumentSemanticTokensResponse!
135134

@@ -138,7 +137,7 @@ final class SemanticTokensTests: XCTestCase {
138137
DocumentSemanticTokensRangeRequest(
139138
textDocument: TextDocumentIdentifier(uri),
140139
range: range
141-
)
140+
)
142141
)
143142
} else {
144143
response = try await testClient.send(
@@ -148,13 +147,13 @@ final class SemanticTokensTests: XCTestCase {
148147
)
149148
}
150149

151-
return Tokens(lspEncodedTokens: response.data)
150+
return SyntaxHighlightingTokens(lspEncodedTokens: response.data)
152151
}
153152

154153
private func openAndPerformSemanticTokensRequest(
155154
text: String,
156155
range: Range<Position>? = nil
157-
) async throws -> Tokens {
156+
) async throws -> SyntaxHighlightingTokens {
158157
openDocument(text: text)
159158
return try await performSemanticTokensRequest(range: range)
160159
}

0 commit comments

Comments
 (0)