@@ -228,9 +228,12 @@ impl CodeGenerator for Item {
228
228
result : & mut CodegenResult ,
229
229
_extra : & ( ) ) {
230
230
if self . is_hidden ( ctx) || result. seen ( self . id ( ) ) {
231
+ debug ! ( "<Item as CodeGenerator>::codegen: Ignoring hidden or seen: self = {:?}" , self ) ;
231
232
return ;
232
233
}
233
234
235
+ debug ! ( "<Item as CodeGenerator>::codegen: self = {:?}" , self ) ;
236
+
234
237
result. set_seen ( self . id ( ) ) ;
235
238
236
239
match * self . kind ( ) {
@@ -264,6 +267,8 @@ impl CodeGenerator for Module {
264
267
ctx : & BindgenContext ,
265
268
result : & mut CodegenResult ,
266
269
item : & Item ) {
270
+ debug ! ( "<Module as CodeGenerator>::codegen: item = {:?}" , item) ;
271
+
267
272
if !ctx. options ( ) . enable_cxx_namespaces {
268
273
for child in self . children ( ) {
269
274
ctx. resolve_item ( * child) . codegen ( ctx, result, & ( ) ) ;
@@ -299,6 +304,8 @@ impl CodeGenerator for Var {
299
304
ctx : & BindgenContext ,
300
305
result : & mut CodegenResult ,
301
306
item : & Item ) {
307
+ debug ! ( "<Var as CodeGenerator>::codegen: item = {:?}" , item) ;
308
+
302
309
let canonical_name = item. canonical_name ( ctx) ;
303
310
304
311
if result. seen_var ( & canonical_name) {
@@ -349,6 +356,8 @@ impl CodeGenerator for Type {
349
356
ctx : & BindgenContext ,
350
357
result : & mut CodegenResult ,
351
358
item : & Item ) {
359
+ debug ! ( "<Type as CodeGenerator>::codegen: item = {:?}" , item) ;
360
+
352
361
match * self . kind ( ) {
353
362
TypeKind :: Void |
354
363
TypeKind :: NullPtr |
@@ -600,6 +609,9 @@ impl CodeGenerator for CompInfo {
600
609
result : & mut CodegenResult ,
601
610
item : & Item ) {
602
611
use aster:: struct_field:: StructFieldBuilder ;
612
+
613
+ debug ! ( "<CompInfo as CodeGenerator>::codegen: item = {:?}" , item) ;
614
+
603
615
// Don't output classes with template parameters that aren't types, and
604
616
// also don't output template specializations, neither total or partial.
605
617
//
@@ -1361,6 +1373,8 @@ impl CodeGenerator for Enum {
1361
1373
ctx : & BindgenContext ,
1362
1374
result : & mut CodegenResult ,
1363
1375
item : & Item ) {
1376
+ debug ! ( "<Enum as CodeGenerator>::codegen: item = {:?}" , item) ;
1377
+
1364
1378
let name = item. canonical_name ( ctx) ;
1365
1379
let enum_ty = item. expect_type ( ) ;
1366
1380
let layout = enum_ty. layout ( ctx) ;
@@ -1800,6 +1814,8 @@ impl CodeGenerator for Function {
1800
1814
ctx : & BindgenContext ,
1801
1815
result : & mut CodegenResult ,
1802
1816
item : & Item ) {
1817
+ debug ! ( "<Function as CodeGenerator>::codegen: item = {:?}" , item) ;
1818
+
1803
1819
let name = self . name ( ) ;
1804
1820
let mut canonical_name = item. canonical_name ( ctx) ;
1805
1821
let mangled_name = self . mangled_name ( ) ;
0 commit comments