@@ -1343,27 +1343,30 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
1343
1343
1344
1344
if let Some ( refd) = c. referenced ( ) {
1345
1345
if refd != * c {
1346
- println ! ( ) ;
1346
+ println ! ( "" ) ;
1347
1347
print_cursor ( depth,
1348
1348
String :: from ( prefix) + "referenced." ,
1349
1349
& refd) ;
1350
+ print_cursor ( depth, String :: from ( prefix) + "referenced." , & refd) ;
1350
1351
}
1351
1352
}
1352
1353
1353
1354
let canonical = c. canonical ( ) ;
1354
1355
if canonical != * c {
1355
- println ! ( ) ;
1356
+ println ! ( "" ) ;
1356
1357
print_cursor ( depth,
1357
1358
String :: from ( prefix) + "canonical." ,
1358
1359
& canonical) ;
1360
+ print_cursor ( depth, String :: from ( prefix) + "canonical." , & canonical) ;
1359
1361
}
1360
1362
1361
1363
if let Some ( specialized) = c. specialized ( ) {
1362
1364
if specialized != * c {
1363
- println ! ( ) ;
1365
+ println ! ( "" ) ;
1364
1366
print_cursor ( depth,
1365
1367
String :: from ( prefix) + "specialized." ,
1366
1368
& specialized) ;
1369
+ print_cursor ( depth, String :: from ( prefix) + "specialized." , & specialized) ;
1367
1370
}
1368
1371
}
1369
1372
}
@@ -1396,56 +1399,56 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
1396
1399
1397
1400
let canonical = ty. canonical_type ( ) ;
1398
1401
if canonical != * ty {
1399
- println ! ( ) ;
1402
+ println ! ( "" ) ;
1400
1403
print_type ( depth, String :: from ( prefix) + "canonical." , & canonical) ;
1401
1404
}
1402
1405
1403
1406
if let Some ( pointee) = ty. pointee_type ( ) {
1404
1407
if pointee != * ty {
1405
- println ! ( ) ;
1408
+ println ! ( "" ) ;
1406
1409
print_type ( depth, String :: from ( prefix) + "pointee." , & pointee) ;
1407
1410
}
1408
1411
}
1409
1412
1410
1413
if let Some ( elem) = ty. elem_type ( ) {
1411
1414
if elem != * ty {
1412
- println ! ( ) ;
1415
+ println ! ( "" ) ;
1413
1416
print_type ( depth, String :: from ( prefix) + "elements." , & elem) ;
1414
1417
}
1415
1418
}
1416
1419
1417
1420
if let Some ( ret) = ty. ret_type ( ) {
1418
1421
if ret != * ty {
1419
- println ! ( ) ;
1422
+ println ! ( "" ) ;
1420
1423
print_type ( depth, String :: from ( prefix) + "return." , & ret) ;
1421
1424
}
1422
1425
}
1423
1426
1424
1427
let named = ty. named ( ) ;
1425
1428
if named != * ty && named. is_valid ( ) {
1426
- println ! ( ) ;
1429
+ println ! ( "" ) ;
1427
1430
print_type ( depth, String :: from ( prefix) + "named." , & named) ;
1428
1431
}
1429
1432
}
1430
1433
1431
1434
print_indent ( depth, "(" ) ;
1432
1435
print_cursor ( depth, "" , c) ;
1433
1436
1434
- println ! ( ) ;
1437
+ println ! ( "" ) ;
1435
1438
let ty = c. cur_type ( ) ;
1436
1439
print_type ( depth, "type." , & ty) ;
1437
1440
1438
1441
let declaration = ty. declaration ( ) ;
1439
1442
if declaration != * c && declaration. kind ( ) != CXCursor_NoDeclFound {
1440
- println ! ( ) ;
1443
+ println ! ( "" ) ;
1441
1444
print_cursor ( depth, "type.declaration." , & declaration) ;
1442
1445
}
1443
1446
1444
1447
// Recurse.
1445
1448
let mut found_children = false ;
1446
1449
c. visit ( |s| {
1447
1450
if !found_children {
1448
- println ! ( ) ;
1451
+ println ! ( "" ) ;
1449
1452
found_children = true ;
1450
1453
}
1451
1454
ast_dump ( & s, depth + 1 )
0 commit comments