@@ -418,10 +418,10 @@ pub fn type_def_has_callback(row: TypeDef) -> bool {
418418 false
419419 }
420420 let type_name = row. type_name ( ) ;
421- if type_name. namespace . is_empty ( ) {
421+ if type_name. namespace ( ) . is_empty ( ) {
422422 check ( row)
423423 } else {
424- for row in row. reader ( ) . get_type_def ( type_name. namespace , type_name. name ) {
424+ for row in row. reader ( ) . get_type_def ( type_name. namespace ( ) , type_name. name ( ) ) {
425425 if check ( row) {
426426 return true ;
427427 }
@@ -473,7 +473,7 @@ pub fn type_interfaces(ty: &Type) -> Vec<Interface> {
473473 "StaticAttribute" | "ActivatableAttribute" => {
474474 for ( _, arg) in attribute. args ( ) {
475475 if let Value :: TypeName ( type_name) = arg {
476- let def = row. reader ( ) . get_type_def ( type_name. namespace , type_name. name ) . next ( ) . expect ( "Type not found" ) ;
476+ let def = row. reader ( ) . get_type_def ( type_name. namespace ( ) , type_name. name ( ) ) . next ( ) . expect ( "Type not found" ) ;
477477 result. push ( Interface { ty : Type :: TypeDef ( def, Vec :: new ( ) ) , kind : InterfaceKind :: Static } ) ;
478478 break ;
479479 }
@@ -601,10 +601,10 @@ pub fn type_def_has_explicit_layout(row: TypeDef) -> bool {
601601 false
602602 }
603603 let type_name = row. type_name ( ) ;
604- if type_name. namespace . is_empty ( ) {
604+ if type_name. namespace ( ) . is_empty ( ) {
605605 check ( row)
606606 } else {
607- for row in row. reader ( ) . get_type_def ( type_name. namespace , type_name. name ) {
607+ for row in row. reader ( ) . get_type_def ( type_name. namespace ( ) , type_name. name ( ) ) {
608608 if check ( row) {
609609 return true ;
610610 }
@@ -635,10 +635,10 @@ pub fn type_def_has_packing(row: TypeDef) -> bool {
635635 false
636636 }
637637 let type_name = row. type_name ( ) ;
638- if type_name. namespace . is_empty ( ) {
638+ if type_name. namespace ( ) . is_empty ( ) {
639639 check ( row)
640640 } else {
641- for row in row. reader ( ) . get_type_def ( type_name. namespace , type_name. name ) {
641+ for row in row. reader ( ) . get_type_def ( type_name. namespace ( ) , type_name. name ( ) ) {
642642 if check ( row) {
643643 return true ;
644644 }
@@ -741,7 +741,7 @@ pub fn type_def_bases(mut row: TypeDef) -> Vec<TypeDef> {
741741 loop {
742742 match row. extends ( ) {
743743 Some ( base) if base != TypeName :: Object => {
744- row = row. reader ( ) . get_type_def ( base. namespace , base. name ) . next ( ) . expect ( "Type not found" ) ;
744+ row = row. reader ( ) . get_type_def ( base. namespace ( ) , base. name ( ) ) . next ( ) . expect ( "Type not found" ) ;
745745 bases. push ( row) ;
746746 }
747747 _ => break ,
0 commit comments