Exemplo n.º 1
0
 def _exportable_impl( self ):
     if not self.name:
         named_parent = declarations.get_named_parent( self )
         if not named_parent:
             return messages.W1057 % str( self )
         if isinstance( named_parent, declarations.namespace_t ):
             return messages.W1018 % str( self )
     if self.class_type == declarations.CLASS_TYPES.UNION:
         if self.is_wrapper_needed():
             return messages.W1059 % str( self )
         if self.name:
             return messages.W1060 % str( self )
     if isinstance( self.parent, declarations.namespace_t ):
         return ''
     if not self in self.parent.public_members:
         return messages.W1019
     return ''
Exemplo n.º 2
0
 def _exportable_impl(self):
     if not self.name:
         named_parent = declarations.get_named_parent(self)
         if not named_parent:
             return messages.W1057 % str(self)
         if isinstance(named_parent, declarations.namespace_t):
             return messages.W1018 % str(self)
     if self.class_type == declarations.CLASS_TYPES.UNION:
         if self.is_wrapper_needed():
             return messages.W1059 % str(self)
         if self.name:
             return messages.W1060 % str(self)
     if isinstance(self.parent, declarations.namespace_t):
         return ''
     if not self in self.parent.public_members:
         return messages.W1019
     return ''