@@ -90,7 +90,7 @@ public class ClassificationTests: XCTestCase {
9090 expected: [
9191 ClassificationSpec ( source: " let " , kind: . keyword) ,
9292 ClassificationSpec ( source: " x " , kind: . identifier) ,
93- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
93+ ClassificationSpec ( source: " Int " , kind: . type ) ,
9494 ]
9595 )
9696 }
@@ -103,11 +103,11 @@ public class ClassificationTests: XCTestCase {
103103 expected: [
104104 ClassificationSpec ( source: " let " , kind: . keyword) ,
105105 ClassificationSpec ( source: " x " , kind: . identifier) ,
106- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
106+ ClassificationSpec ( source: " Int " , kind: . type ) ,
107107 ClassificationSpec ( source: " 4 " , kind: . integerLiteral) ,
108- ClassificationSpec ( source: " + " , kind: . operatorIdentifier ) ,
108+ ClassificationSpec ( source: " + " , kind: . operator ) ,
109109 ClassificationSpec ( source: " 5 " , kind: . integerLiteral) ,
110- ClassificationSpec ( source: " / " , kind: . operatorIdentifier ) ,
110+ ClassificationSpec ( source: " / " , kind: . operator ) ,
111111 ClassificationSpec ( source: " 6 " , kind: . integerLiteral) ,
112112 ]
113113 )
@@ -117,7 +117,7 @@ public class ClassificationTests: XCTestCase {
117117 expected: [
118118 ClassificationSpec ( source: " infix " , kind: . keyword) ,
119119 ClassificationSpec ( source: " operator " , kind: . keyword) ,
120- ClassificationSpec ( source: " *--* " , kind: . operatorIdentifier ) ,
120+ ClassificationSpec ( source: " *--* " , kind: . operator ) ,
121121 ]
122122 )
123123 }
@@ -131,13 +131,13 @@ public class ClassificationTests: XCTestCase {
131131 ClassificationSpec ( source: " func " , kind: . keyword) ,
132132 ClassificationSpec ( source: " foo " , kind: . identifier) ,
133133 ClassificationSpec ( source: " x " , kind: . identifier) ,
134- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
134+ ClassificationSpec ( source: " Int " , kind: . type ) ,
135135 ClassificationSpec ( source: " y " , kind: . identifier) ,
136- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
137- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
136+ ClassificationSpec ( source: " Int " , kind: . type ) ,
137+ ClassificationSpec ( source: " Int " , kind: . type ) ,
138138 ClassificationSpec ( source: " return " , kind: . keyword) ,
139139 ClassificationSpec ( source: " x " , kind: . identifier) ,
140- ClassificationSpec ( source: " + " , kind: . operatorIdentifier ) ,
140+ ClassificationSpec ( source: " + " , kind: . operator ) ,
141141 ClassificationSpec ( source: " y " , kind: . identifier) ,
142142 ]
143143 )
@@ -219,18 +219,18 @@ public class ClassificationTests: XCTestCase {
219219 #endif
220220 """ ,
221221 expected: [
222- ClassificationSpec ( source: " #if " , kind: . poundDirective ) ,
223- ClassificationSpec ( source: " os " , kind: . buildConfigId ) ,
224- ClassificationSpec ( source: " macOS " , kind: . buildConfigId ) ,
222+ ClassificationSpec ( source: " #if " , kind: . ifConfigDirective ) ,
223+ ClassificationSpec ( source: " os " , kind: . ifConfigDirective ) ,
224+ ClassificationSpec ( source: " macOS " , kind: . ifConfigDirective ) ,
225225 ClassificationSpec ( source: " var " , kind: . keyword) ,
226226 ClassificationSpec ( source: " x " , kind: . identifier) ,
227- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
228- ClassificationSpec ( source: " #elseif " , kind: . poundDirective ) ,
227+ ClassificationSpec ( source: " Int " , kind: . type ) ,
228+ ClassificationSpec ( source: " #elseif " , kind: . ifConfigDirective ) ,
229229 ClassificationSpec ( source: " var " , kind: . keyword) ,
230230 ClassificationSpec ( source: " x " , kind: . identifier) ,
231- ClassificationSpec ( source: " Float " , kind: . typeIdentifier ) ,
232- ClassificationSpec ( source: " #else " , kind: . poundDirective ) ,
233- ClassificationSpec ( source: " #endif " , kind: . poundDirective ) ,
231+ ClassificationSpec ( source: " Float " , kind: . type ) ,
232+ ClassificationSpec ( source: " #else " , kind: . ifConfigDirective ) ,
233+ ClassificationSpec ( source: " #endif " , kind: . ifConfigDirective ) ,
234234 ]
235235 )
236236 }
@@ -242,10 +242,10 @@ public class ClassificationTests: XCTestCase {
242242 #else
243243 """ ,
244244 expected: [
245- ClassificationSpec ( source: " #if " , kind: . poundDirective ) ,
246- ClassificationSpec ( source: " ! " , kind: . operatorIdentifier ) ,
247- ClassificationSpec ( source: " CONF " , kind: . buildConfigId ) ,
248- ClassificationSpec ( source: " #else " , kind: . poundDirective ) ,
245+ ClassificationSpec ( source: " #if " , kind: . ifConfigDirective ) ,
246+ ClassificationSpec ( source: " ! " , kind: . operator ) ,
247+ ClassificationSpec ( source: " CONF " , kind: . ifConfigDirective ) ,
248+ ClassificationSpec ( source: " #else " , kind: . ifConfigDirective ) ,
249249 ]
250250 )
251251 }
@@ -269,7 +269,7 @@ public class ClassificationTests: XCTestCase {
269269 assertClassification (
270270 #"#sourceLocation(file: "x", line: 1)"# ,
271271 expected: [
272- ClassificationSpec ( source: " #sourceLocation " , kind: . poundDirective ) ,
272+ ClassificationSpec ( source: " #sourceLocation " , kind: . keyword ) ,
273273 ClassificationSpec ( source: " file " , kind: . keyword) ,
274274 ClassificationSpec ( source: #""x""# , kind: . stringLiteral) ,
275275 ClassificationSpec ( source: " line " , kind: . keyword) ,
@@ -330,7 +330,7 @@ public class ClassificationTests: XCTestCase {
330330 ClassificationSpec ( source: " OSX " , kind: . keyword) ,
331331 ClassificationSpec ( source: " 10 " , kind: . integerLiteral) ,
332332 ClassificationSpec ( source: " 10 " , kind: . integerLiteral) ,
333- ClassificationSpec ( source: " * " , kind: . operatorIdentifier ) ,
333+ ClassificationSpec ( source: " * " , kind: . operator ) ,
334334 ]
335335 )
336336 }
@@ -345,7 +345,7 @@ public class ClassificationTests: XCTestCase {
345345 ClassificationSpec ( source: " @IBOutlet " , kind: . attribute) ,
346346 ClassificationSpec ( source: " var " , kind: . keyword) ,
347347 ClassificationSpec ( source: " foo " , kind: . identifier) ,
348- ClassificationSpec ( source: " String " , kind: . typeIdentifier ) ,
348+ ClassificationSpec ( source: " String " , kind: . type ) ,
349349 ]
350350 )
351351 }
@@ -363,8 +363,8 @@ public class ClassificationTests: XCTestCase {
363363 ClassificationSpec ( source: " indirect " , kind: . keyword) ,
364364 ClassificationSpec ( source: " case " , kind: . keyword) ,
365365 ClassificationSpec ( source: " cons " , kind: . identifier) ,
366- ClassificationSpec ( source: " T " , kind: . typeIdentifier ) ,
367- ClassificationSpec ( source: " List " , kind: . typeIdentifier ) ,
366+ ClassificationSpec ( source: " T " , kind: . type ) ,
367+ ClassificationSpec ( source: " List " , kind: . type ) ,
368368 ]
369369 )
370370 }
@@ -410,7 +410,7 @@ public class ClassificationTests: XCTestCase {
410410 expected: [
411411 ClassificationSpec ( source: " infix " , kind: . keyword) ,
412412 ClassificationSpec ( source: " operator " , kind: . keyword) ,
413- ClassificationSpec ( source: " *-* " , kind: . operatorIdentifier ) ,
413+ ClassificationSpec ( source: " *-* " , kind: . operator ) ,
414414 ClassificationSpec ( source: " FunnyPrecedence " , kind: . identifier) ,
415415 ]
416416 )
@@ -441,7 +441,7 @@ public class ClassificationTests: XCTestCase {
441441 expected: [
442442 ClassificationSpec ( source: " protocol " , kind: . keyword) ,
443443 ClassificationSpec ( source: " Prot2 " , kind: . identifier) ,
444- ClassificationSpec ( source: " Prot " , kind: . typeIdentifier ) ,
444+ ClassificationSpec ( source: " Prot " , kind: . type ) ,
445445 ]
446446 )
447447 }
@@ -453,13 +453,13 @@ public class ClassificationTests: XCTestCase {
453453 ClassificationSpec ( source: " func " , kind: . keyword) ,
454454 ClassificationSpec ( source: " genFn " , kind: . identifier) ,
455455 ClassificationSpec ( source: " T " , kind: . identifier) ,
456- ClassificationSpec ( source: " Prot " , kind: . typeIdentifier ) ,
457- ClassificationSpec ( source: " T " , kind: . typeIdentifier ) ,
458- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
456+ ClassificationSpec ( source: " Prot " , kind: . type ) ,
457+ ClassificationSpec ( source: " T " , kind: . type ) ,
458+ ClassificationSpec ( source: " Int " , kind: . type ) ,
459459 ClassificationSpec ( source: " where " , kind: . keyword) ,
460- ClassificationSpec ( source: " T " , kind: . typeIdentifier ) ,
461- ClassificationSpec ( source: " Blarg " , kind: . typeIdentifier ) ,
462- ClassificationSpec ( source: " Prot2 " , kind: . typeIdentifier ) ,
460+ ClassificationSpec ( source: " T " , kind: . type ) ,
461+ ClassificationSpec ( source: " Blarg " , kind: . type ) ,
462+ ClassificationSpec ( source: " Prot2 " , kind: . type ) ,
463463 ]
464464 )
465465 }
@@ -469,9 +469,7 @@ public class ClassificationTests: XCTestCase {
469469 #""This is string \(1) interpolation""# ,
470470 expected: [
471471 ClassificationSpec ( source: #""This is string "# , kind: . stringLiteral) ,
472- ClassificationSpec ( source: " ( " , kind: . stringInterpolationAnchor) ,
473472 ClassificationSpec ( source: " 1 " , kind: . integerLiteral) ,
474- ClassificationSpec ( source: " ) " , kind: . stringInterpolationAnchor) ,
475473 ClassificationSpec ( source: #" interpolation""# , kind: . stringLiteral) ,
476474 ]
477475 )
@@ -531,12 +529,12 @@ public class ClassificationTests: XCTestCase {
531529 ClassificationSpec ( source: " func " , kind: . keyword) ,
532530 ClassificationSpec ( source: " keywordInCaseAndLocalArgLabel " , kind: . identifier) ,
533531 ClassificationSpec ( source: " for " , kind: . identifier) ,
534- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
532+ ClassificationSpec ( source: " Int " , kind: . type ) ,
535533 ClassificationSpec ( source: " for " , kind: . identifier) ,
536534 ClassificationSpec ( source: " in " , kind: . identifier) ,
537- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
535+ ClassificationSpec ( source: " Int " , kind: . type ) ,
538536 ClassificationSpec ( source: " class " , kind: . identifier) ,
539- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
537+ ClassificationSpec ( source: " Int " , kind: . type ) ,
540538 ]
541539 )
542540 }
0 commit comments