@@ -1320,20 +1320,20 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
1320
1320
1321
1321
if let Some ( refd) = c. referenced ( ) {
1322
1322
if refd != * c {
1323
- println ! ( ) ;
1323
+ println ! ( "" ) ;
1324
1324
print_cursor ( depth, String :: from ( prefix) + "referenced." , & refd) ;
1325
1325
}
1326
1326
}
1327
1327
1328
1328
let canonical = c. canonical ( ) ;
1329
1329
if canonical != * c {
1330
- println ! ( ) ;
1330
+ println ! ( "" ) ;
1331
1331
print_cursor ( depth, String :: from ( prefix) + "canonical." , & canonical) ;
1332
1332
}
1333
1333
1334
1334
if let Some ( specialized) = c. specialized ( ) {
1335
1335
if specialized != * c {
1336
- println ! ( ) ;
1336
+ println ! ( "" ) ;
1337
1337
print_cursor ( depth, String :: from ( prefix) + "specialized." , & specialized) ;
1338
1338
}
1339
1339
}
@@ -1364,56 +1364,56 @@ pub fn ast_dump(c: &Cursor, depth: isize) -> CXChildVisitResult {
1364
1364
1365
1365
let canonical = ty. canonical_type ( ) ;
1366
1366
if canonical != * ty {
1367
- println ! ( ) ;
1367
+ println ! ( "" ) ;
1368
1368
print_type ( depth, String :: from ( prefix) + "canonical." , & canonical) ;
1369
1369
}
1370
1370
1371
1371
if let Some ( pointee) = ty. pointee_type ( ) {
1372
1372
if pointee != * ty {
1373
- println ! ( ) ;
1373
+ println ! ( "" ) ;
1374
1374
print_type ( depth, String :: from ( prefix) + "pointee." , & pointee) ;
1375
1375
}
1376
1376
}
1377
1377
1378
1378
if let Some ( elem) = ty. elem_type ( ) {
1379
1379
if elem != * ty {
1380
- println ! ( ) ;
1380
+ println ! ( "" ) ;
1381
1381
print_type ( depth, String :: from ( prefix) + "elements." , & elem) ;
1382
1382
}
1383
1383
}
1384
1384
1385
1385
if let Some ( ret) = ty. ret_type ( ) {
1386
1386
if ret != * ty {
1387
- println ! ( ) ;
1387
+ println ! ( "" ) ;
1388
1388
print_type ( depth, String :: from ( prefix) + "return." , & ret) ;
1389
1389
}
1390
1390
}
1391
1391
1392
1392
let named = ty. named ( ) ;
1393
1393
if named != * ty && named. is_valid ( ) {
1394
- println ! ( ) ;
1394
+ println ! ( "" ) ;
1395
1395
print_type ( depth, String :: from ( prefix) + "named." , & named) ;
1396
1396
}
1397
1397
}
1398
1398
1399
1399
print_indent ( depth, "(" ) ;
1400
1400
print_cursor ( depth, "" , c) ;
1401
1401
1402
- println ! ( ) ;
1402
+ println ! ( "" ) ;
1403
1403
let ty = c. cur_type ( ) ;
1404
1404
print_type ( depth, "type." , & ty) ;
1405
1405
1406
1406
let declaration = ty. declaration ( ) ;
1407
1407
if declaration != * c && declaration. kind ( ) != CXCursor_NoDeclFound {
1408
- println ! ( ) ;
1408
+ println ! ( "" ) ;
1409
1409
print_cursor ( depth, "type.declaration." , & declaration) ;
1410
1410
}
1411
1411
1412
1412
// Recurse.
1413
1413
let mut found_children = false ;
1414
1414
c. visit ( |s| {
1415
1415
if !found_children {
1416
- println ! ( ) ;
1416
+ println ! ( "" ) ;
1417
1417
found_children = true ;
1418
1418
}
1419
1419
ast_dump ( & s, depth + 1 )
0 commit comments