private void recordInterfaces ( FunctionType constructor , JSType relatedType , Property p ) { Iterable < ObjectType > interfaces = ancestorInterfaces . get ( constructor ) ; if ( interfaces == null ) { interfaces = constructor . getAncestorInterfaces ( ) ; ancestorInterfaces . put ( constructor , interfaces ) ; } for ( ObjectType itype : interfaces ) { JSType top = getTypeWithProperty ( p . name , itype ) ; if ( top != null ) { p . addType ( itype , relatedType ) ; } // If this interface invalidated this property, return now. if ( p . skipRenaming ) { return ; } } }
Records that this property could be referenced from any interface that this type inherits from .