@@ -1366,27 +1366,30 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
1366
1366
1367
1367
if let Some ( refd) = c. referenced ( ) {
1368
1368
if refd != * c {
1369
- println ! ( ) ;
1369
+ println ! ( "" ) ;
1370
1370
print_cursor ( depth,
1371
1371
String :: from ( prefix) + "referenced." ,
1372
1372
& refd) ;
1373
+ print_cursor ( depth, String :: from ( prefix) + "referenced." , & refd) ;
1373
1374
}
1374
1375
}
1375
1376
1376
1377
let canonical = c. canonical ( ) ;
1377
1378
if canonical != * c {
1378
- println ! ( ) ;
1379
+ println ! ( "" ) ;
1379
1380
print_cursor ( depth,
1380
1381
String :: from ( prefix) + "canonical." ,
1381
1382
& canonical) ;
1383
+ print_cursor ( depth, String :: from ( prefix) + "canonical." , & canonical) ;
1382
1384
}
1383
1385
1384
1386
if let Some ( specialized) = c. specialized ( ) {
1385
1387
if specialized != * c {
1386
- println ! ( ) ;
1388
+ println ! ( "" ) ;
1387
1389
print_cursor ( depth,
1388
1390
String :: from ( prefix) + "specialized." ,
1389
1391
& specialized) ;
1392
+ print_cursor ( depth, String :: from ( prefix) + "specialized." , & specialized) ;
1390
1393
}
1391
1394
}
1392
1395
}
@@ -1419,56 +1422,56 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
1419
1422
1420
1423
let canonical = ty. canonical_type ( ) ;
1421
1424
if canonical != * ty {
1422
- println ! ( ) ;
1425
+ println ! ( "" ) ;
1423
1426
print_type ( depth, String :: from ( prefix) + "canonical." , & canonical) ;
1424
1427
}
1425
1428
1426
1429
if let Some ( pointee) = ty. pointee_type ( ) {
1427
1430
if pointee != * ty {
1428
- println ! ( ) ;
1431
+ println ! ( "" ) ;
1429
1432
print_type ( depth, String :: from ( prefix) + "pointee." , & pointee) ;
1430
1433
}
1431
1434
}
1432
1435
1433
1436
if let Some ( elem) = ty. elem_type ( ) {
1434
1437
if elem != * ty {
1435
- println ! ( ) ;
1438
+ println ! ( "" ) ;
1436
1439
print_type ( depth, String :: from ( prefix) + "elements." , & elem) ;
1437
1440
}
1438
1441
}
1439
1442
1440
1443
if let Some ( ret) = ty. ret_type ( ) {
1441
1444
if ret != * ty {
1442
- println ! ( ) ;
1445
+ println ! ( "" ) ;
1443
1446
print_type ( depth, String :: from ( prefix) + "return." , & ret) ;
1444
1447
}
1445
1448
}
1446
1449
1447
1450
let named = ty. named ( ) ;
1448
1451
if named != * ty && named. is_valid ( ) {
1449
- println ! ( ) ;
1452
+ println ! ( "" ) ;
1450
1453
print_type ( depth, String :: from ( prefix) + "named." , & named) ;
1451
1454
}
1452
1455
}
1453
1456
1454
1457
print_indent ( depth, "(" ) ;
1455
1458
print_cursor ( depth, "" , c) ;
1456
1459
1457
- println ! ( ) ;
1460
+ println ! ( "" ) ;
1458
1461
let ty = c. cur_type ( ) ;
1459
1462
print_type ( depth, "type." , & ty) ;
1460
1463
1461
1464
let declaration = ty. declaration ( ) ;
1462
1465
if declaration != * c && declaration. kind ( ) != CXCursor_NoDeclFound {
1463
- println ! ( ) ;
1466
+ println ! ( "" ) ;
1464
1467
print_cursor ( depth, "type.declaration." , & declaration) ;
1465
1468
}
1466
1469
1467
1470
// Recurse.
1468
1471
let mut found_children = false ;
1469
1472
c. visit ( |s| {
1470
1473
if !found_children {
1471
- println ! ( ) ;
1474
+ println ! ( "" ) ;
1472
1475
found_children = true ;
1473
1476
}
1474
1477
ast_dump ( & s, depth + 1 )
0 commit comments