@@ -90,7 +90,7 @@ public class ClassificationTests: XCTestCase {
90
90
expected: [
91
91
ClassificationSpec ( source: " let " , kind: . keyword) ,
92
92
ClassificationSpec ( source: " x " , kind: . identifier) ,
93
- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
93
+ ClassificationSpec ( source: " Int " , kind: . type ) ,
94
94
]
95
95
)
96
96
}
@@ -103,11 +103,11 @@ public class ClassificationTests: XCTestCase {
103
103
expected: [
104
104
ClassificationSpec ( source: " let " , kind: . keyword) ,
105
105
ClassificationSpec ( source: " x " , kind: . identifier) ,
106
- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
106
+ ClassificationSpec ( source: " Int " , kind: . type ) ,
107
107
ClassificationSpec ( source: " 4 " , kind: . integerLiteral) ,
108
- ClassificationSpec ( source: " + " , kind: . operatorIdentifier ) ,
108
+ ClassificationSpec ( source: " + " , kind: . operator ) ,
109
109
ClassificationSpec ( source: " 5 " , kind: . integerLiteral) ,
110
- ClassificationSpec ( source: " / " , kind: . operatorIdentifier ) ,
110
+ ClassificationSpec ( source: " / " , kind: . operator ) ,
111
111
ClassificationSpec ( source: " 6 " , kind: . integerLiteral) ,
112
112
]
113
113
)
@@ -117,7 +117,7 @@ public class ClassificationTests: XCTestCase {
117
117
expected: [
118
118
ClassificationSpec ( source: " infix " , kind: . keyword) ,
119
119
ClassificationSpec ( source: " operator " , kind: . keyword) ,
120
- ClassificationSpec ( source: " *--* " , kind: . operatorIdentifier ) ,
120
+ ClassificationSpec ( source: " *--* " , kind: . operator ) ,
121
121
]
122
122
)
123
123
}
@@ -131,13 +131,13 @@ public class ClassificationTests: XCTestCase {
131
131
ClassificationSpec ( source: " func " , kind: . keyword) ,
132
132
ClassificationSpec ( source: " foo " , kind: . identifier) ,
133
133
ClassificationSpec ( source: " x " , kind: . identifier) ,
134
- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
134
+ ClassificationSpec ( source: " Int " , kind: . type ) ,
135
135
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 ) ,
138
138
ClassificationSpec ( source: " return " , kind: . keyword) ,
139
139
ClassificationSpec ( source: " x " , kind: . identifier) ,
140
- ClassificationSpec ( source: " + " , kind: . operatorIdentifier ) ,
140
+ ClassificationSpec ( source: " + " , kind: . operator ) ,
141
141
ClassificationSpec ( source: " y " , kind: . identifier) ,
142
142
]
143
143
)
@@ -219,18 +219,18 @@ public class ClassificationTests: XCTestCase {
219
219
#endif
220
220
""" ,
221
221
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 ) ,
225
225
ClassificationSpec ( source: " var " , kind: . keyword) ,
226
226
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 ) ,
229
229
ClassificationSpec ( source: " var " , kind: . keyword) ,
230
230
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 ) ,
234
234
]
235
235
)
236
236
}
@@ -242,10 +242,10 @@ public class ClassificationTests: XCTestCase {
242
242
#else
243
243
""" ,
244
244
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 ) ,
249
249
]
250
250
)
251
251
}
@@ -269,7 +269,7 @@ public class ClassificationTests: XCTestCase {
269
269
assertClassification (
270
270
#"#sourceLocation(file: "x", line: 1)"# ,
271
271
expected: [
272
- ClassificationSpec ( source: " #sourceLocation " , kind: . poundDirective ) ,
272
+ ClassificationSpec ( source: " #sourceLocation " , kind: . keyword ) ,
273
273
ClassificationSpec ( source: " file " , kind: . keyword) ,
274
274
ClassificationSpec ( source: #""x""# , kind: . stringLiteral) ,
275
275
ClassificationSpec ( source: " line " , kind: . keyword) ,
@@ -330,7 +330,7 @@ public class ClassificationTests: XCTestCase {
330
330
ClassificationSpec ( source: " OSX " , kind: . keyword) ,
331
331
ClassificationSpec ( source: " 10 " , kind: . integerLiteral) ,
332
332
ClassificationSpec ( source: " 10 " , kind: . integerLiteral) ,
333
- ClassificationSpec ( source: " * " , kind: . operatorIdentifier ) ,
333
+ ClassificationSpec ( source: " * " , kind: . operator ) ,
334
334
]
335
335
)
336
336
}
@@ -345,7 +345,7 @@ public class ClassificationTests: XCTestCase {
345
345
ClassificationSpec ( source: " @IBOutlet " , kind: . attribute) ,
346
346
ClassificationSpec ( source: " var " , kind: . keyword) ,
347
347
ClassificationSpec ( source: " foo " , kind: . identifier) ,
348
- ClassificationSpec ( source: " String " , kind: . typeIdentifier ) ,
348
+ ClassificationSpec ( source: " String " , kind: . type ) ,
349
349
]
350
350
)
351
351
}
@@ -363,8 +363,8 @@ public class ClassificationTests: XCTestCase {
363
363
ClassificationSpec ( source: " indirect " , kind: . keyword) ,
364
364
ClassificationSpec ( source: " case " , kind: . keyword) ,
365
365
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 ) ,
368
368
]
369
369
)
370
370
}
@@ -410,7 +410,7 @@ public class ClassificationTests: XCTestCase {
410
410
expected: [
411
411
ClassificationSpec ( source: " infix " , kind: . keyword) ,
412
412
ClassificationSpec ( source: " operator " , kind: . keyword) ,
413
- ClassificationSpec ( source: " *-* " , kind: . operatorIdentifier ) ,
413
+ ClassificationSpec ( source: " *-* " , kind: . operator ) ,
414
414
ClassificationSpec ( source: " FunnyPrecedence " , kind: . identifier) ,
415
415
]
416
416
)
@@ -441,7 +441,7 @@ public class ClassificationTests: XCTestCase {
441
441
expected: [
442
442
ClassificationSpec ( source: " protocol " , kind: . keyword) ,
443
443
ClassificationSpec ( source: " Prot2 " , kind: . identifier) ,
444
- ClassificationSpec ( source: " Prot " , kind: . typeIdentifier ) ,
444
+ ClassificationSpec ( source: " Prot " , kind: . type ) ,
445
445
]
446
446
)
447
447
}
@@ -453,13 +453,13 @@ public class ClassificationTests: XCTestCase {
453
453
ClassificationSpec ( source: " func " , kind: . keyword) ,
454
454
ClassificationSpec ( source: " genFn " , kind: . identifier) ,
455
455
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 ) ,
459
459
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 ) ,
463
463
]
464
464
)
465
465
}
@@ -469,9 +469,7 @@ public class ClassificationTests: XCTestCase {
469
469
#""This is string \(1) interpolation""# ,
470
470
expected: [
471
471
ClassificationSpec ( source: #""This is string "# , kind: . stringLiteral) ,
472
- ClassificationSpec ( source: " ( " , kind: . stringInterpolationAnchor) ,
473
472
ClassificationSpec ( source: " 1 " , kind: . integerLiteral) ,
474
- ClassificationSpec ( source: " ) " , kind: . stringInterpolationAnchor) ,
475
473
ClassificationSpec ( source: #" interpolation""# , kind: . stringLiteral) ,
476
474
]
477
475
)
@@ -531,12 +529,12 @@ public class ClassificationTests: XCTestCase {
531
529
ClassificationSpec ( source: " func " , kind: . keyword) ,
532
530
ClassificationSpec ( source: " keywordInCaseAndLocalArgLabel " , kind: . identifier) ,
533
531
ClassificationSpec ( source: " for " , kind: . identifier) ,
534
- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
532
+ ClassificationSpec ( source: " Int " , kind: . type ) ,
535
533
ClassificationSpec ( source: " for " , kind: . identifier) ,
536
534
ClassificationSpec ( source: " in " , kind: . identifier) ,
537
- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
535
+ ClassificationSpec ( source: " Int " , kind: . type ) ,
538
536
ClassificationSpec ( source: " class " , kind: . identifier) ,
539
- ClassificationSpec ( source: " Int " , kind: . typeIdentifier ) ,
537
+ ClassificationSpec ( source: " Int " , kind: . type ) ,
540
538
]
541
539
)
542
540
}
0 commit comments