File tree Expand file tree Collapse file tree 9 files changed +3044
-3045
lines changed Expand file tree Collapse file tree 9 files changed +3044
-3045
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,6 @@ final class AppTests: XCTestCase {
273
273
)
274
274
275
275
let decoder = JSONDecoder ( )
276
- print ( response. syntaxJSON)
277
276
278
277
XCTAssertEqual (
279
278
try decoder. decode ( [ TreeNode ] . self, from: Data ( response. syntaxJSON. utf8) ) ,
Original file line number Diff line number Diff line change 41
41
}
42
42
}
43
43
],
44
- "type " : " other " ,
45
- "text " : " SourceFile "
44
+ "text " : " SourceFile " ,
45
+ "type " : " other "
46
46
},
47
47
{
48
- "text" : " CodeBlockItemList" ,
49
48
"id" : 1 ,
49
+ "parent" : 0 ,
50
50
"range" : {
51
51
"startColumn" : 1 ,
52
52
"endRow" : 1 ,
67
67
}
68
68
}
69
69
],
70
- "type " : " collection " ,
71
- "parent " : 0
70
+ "text " : " CodeBlockItemList " ,
71
+ "type " : " collection "
72
72
},
73
73
{
74
- "text" : " CodeBlockItem" ,
75
74
"id" : 2 ,
75
+ "parent" : 1 ,
76
76
"range" : {
77
77
"startColumn" : 1 ,
78
78
"endRow" : 1 ,
124
124
}
125
125
}
126
126
],
127
- "type " : " other " ,
128
- "parent " : 1
127
+ "text " : " CodeBlockItem " ,
128
+ "type " : " other "
129
129
},
130
130
{
131
- "text" : " VariableDecl" ,
132
131
"id" : 3 ,
132
+ "parent" : 2 ,
133
133
"range" : {
134
134
"startColumn" : 1 ,
135
135
"endRow" : 1 ,
194
194
}
195
195
}
196
196
],
197
- "type " : " decl " ,
198
- "parent " : 2
197
+ "text " : " VariableDecl " ,
198
+ "type " : " decl "
199
199
},
200
200
{
201
- "parent" : 3 ,
202
201
"id" : 4 ,
202
+ "parent" : 3 ,
203
203
"range" : {
204
204
"startColumn" : 1 ,
205
205
"endRow" : 1 ,
206
206
"endColumn" : 4 ,
207
207
"startRow" : 1
208
208
},
209
- "text" : " let" ,
210
209
"structure" : [],
210
+ "text" : " let" ,
211
211
"token" : {
212
212
"kind" : " letKeyword" ,
213
213
"leadingTrivia" : " " ,
216
216
"type" : " other"
217
217
},
218
218
{
219
- "text" : " PatternBindingList" ,
220
219
"id" : 5 ,
220
+ "parent" : 3 ,
221
221
"range" : {
222
222
"startColumn" : 5 ,
223
223
"endRow" : 1 ,
238
238
}
239
239
}
240
240
],
241
- "type " : " collection " ,
242
- "parent " : 3
241
+ "text " : " PatternBindingList " ,
242
+ "type " : " collection "
243
243
},
244
244
{
245
- "text" : " PatternBinding" ,
246
245
"id" : 6 ,
246
+ "parent" : 5 ,
247
247
"range" : {
248
248
"startColumn" : 5 ,
249
249
"endRow" : 1 ,
320
320
}
321
321
}
322
322
],
323
- "type " : " other " ,
324
- "parent " : 5
323
+ "text " : " PatternBinding " ,
324
+ "type " : " other "
325
325
},
326
326
{
327
- "text" : " IdentifierPattern" ,
328
327
"id" : 7 ,
328
+ "parent" : 6 ,
329
329
"range" : {
330
330
"startColumn" : 5 ,
331
331
"endRow" : 1 ,
353
353
}
354
354
}
355
355
],
356
- "type " : " pattern " ,
357
- "parent " : 6
356
+ "text " : " IdentifierPattern " ,
357
+ "type " : " pattern "
358
358
},
359
359
{
360
- "parent" : 7 ,
361
360
"id" : 8 ,
361
+ "parent" : 7 ,
362
362
"range" : {
363
363
"startColumn" : 5 ,
364
364
"endRow" : 1 ,
365
365
"endColumn" : 11 ,
366
366
"startRow" : 1
367
367
},
368
- "text" : " number" ,
369
368
"structure" : [],
369
+ "text" : " number" ,
370
370
"token" : {
371
371
"kind" : " identifier(\" number\" )" ,
372
372
"leadingTrivia" : " " ,
375
375
"type" : " other"
376
376
},
377
377
{
378
- "text" : " InitializerClause" ,
379
378
"id" : 9 ,
379
+ "parent" : 6 ,
380
380
"range" : {
381
381
"startColumn" : 12 ,
382
382
"endRow" : 1 ,
417
417
}
418
418
}
419
419
],
420
- "type " : " other " ,
421
- "parent " : 6
420
+ "text " : " InitializerClause " ,
421
+ "type " : " other "
422
422
},
423
423
{
424
- "parent" : 9 ,
425
424
"id" : 10 ,
425
+ "parent" : 9 ,
426
426
"range" : {
427
427
"startColumn" : 12 ,
428
428
"endRow" : 1 ,
429
429
"endColumn" : 13 ,
430
430
"startRow" : 1
431
431
},
432
- "text" : " =" ,
433
432
"structure" : [],
433
+ "text" : " =" ,
434
434
"token" : {
435
435
"kind" : " equal" ,
436
436
"leadingTrivia" : " " ,
439
439
"type" : " other"
440
440
},
441
441
{
442
- "text" : " IntegerLiteralExpr" ,
443
442
"id" : 11 ,
443
+ "parent" : 9 ,
444
444
"range" : {
445
445
"startColumn" : 14 ,
446
446
"endRow" : 1 ,
468
468
}
469
469
}
470
470
],
471
- "type " : " expr " ,
472
- "parent " : 9
471
+ "text " : " IntegerLiteralExpr " ,
472
+ "type " : " expr "
473
473
},
474
474
{
475
- "parent" : 11 ,
476
475
"id" : 12 ,
476
+ "parent" : 11 ,
477
477
"range" : {
478
478
"startColumn" : 14 ,
479
479
"endRow" : 1 ,
480
480
"endColumn" : 15 ,
481
481
"startRow" : 1
482
482
},
483
- "text" : " 0" ,
484
483
"structure" : [],
484
+ "text" : " 0" ,
485
485
"token" : {
486
486
"kind" : " integerLiteral(\" 0\" )" ,
487
487
"leadingTrivia" : " " ,
490
490
"type" : " other"
491
491
},
492
492
{
493
- "parent" : 0 ,
494
493
"id" : 13 ,
494
+ "parent" : 0 ,
495
495
"range" : {
496
496
"startColumn" : 15 ,
497
497
"endRow" : 1 ,
498
498
"endColumn" : 15 ,
499
499
"startRow" : 1
500
500
},
501
- "text" : " " ,
502
501
"structure" : [],
502
+ "text" : " " ,
503
503
"token" : {
504
504
"kind" : " eof" ,
505
505
"leadingTrivia" : " " ,
You can’t perform that action at this time.
0 commit comments