Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__( self, *args, **kwds ):
Type.__init__( self, *args, **kwds )
self.__members = []
def __init__( self, scope, qname, tag, value_type ):
Type.__init__( self, scope, qname, tag )
self.__value_type = value_type
def __init__( self, scope, qname, tag=0, parent_type_names=None, members=[] ):
Type.__init__( self, scope, qname, tag )
self.__parent_type_names = parent_type_names is not None and parent_type_names or []
if members is None: # A forward declaration or an undefined type
self.__members = None
else:
self.__members = []
if len( members ) > 0:
for member in members:
assert isinstance( member, Declaration )
self.__members.append( member )
def __init__( self, scope, qname, tag, key_type, value_type ):
assert isinstance( key_type, Type )
assert isinstance( value_type, Type )
Type.__init__( self, scope, qname, tag )
self.__key_type = key_type
self.__value_type = value_type
def __init__( self, *args, **kwds ):
Type.__init__( self, *args, **kwds )
self.__enumerators = []