parameters: (t, other_types)
docstring: Returns an Objective-C type name for the given IDL type.
docstring_summary: Returns an Objective-C type name for the given IDL type.
docstring_tokens: Returns an Objective - C type name for the given IDL type .
function: def _MapObjcType(t, other_types):
    """Returns an Objective-C type name for the given IDL type."""
    if t.name == 'record':
      assert t.element_type[0].name in {'ByteString', 'DOMString', 'USVString'}
      return 'NSDictionary<NSString *, %s> *' % _MapObjcType(
          t.element_type[1], other_types)
    elif t.name == 'sequence':
      return 'NSArray<%s> *' % _MapObjcType(t.element_type, other_types)
    elif t.name in other_types:
      return 'Shaka%s *' % t.name
    else:
      type_map = {
          # IDL   ->  Objective-C
          'boolean': 'BOOL',
          'double': 'NSNumber *' if t.nullable else 'double',
          'DOMString': 'NSString *',
      }
      assert t.name != 'boolean' or not t.nullable, 'Cannot create nullable bool'
      assert t.name in type_map, 'Type %s not found' % t.name
      return type_map[t.name]
function_tokens: def _MapObjcType ( t , other_types ) : if t . name == 'record' : assert t . element_type [ 0 ] . name in { 'ByteString' , 'DOMString' , 'USVString' } return 'NSDictionary<NSString *, %s> *' % _MapObjcType ( t . element_type [ 1 ] , other_types ) elif t . name == 'sequence' : return 'NSArray<%s> *' % _MapObjcType ( t . element_type , other_types ) elif t . name in other_types : return 'Shaka%s *' % t . name else : type_map = { # IDL   ->  Objective-C 'boolean' : 'BOOL' , 'double' : 'NSNumber *' if t . nullable else 'double' , 'DOMString' : 'NSString *' , } assert t . name != 'boolean' or not t . nullable , 'Cannot create nullable bool' assert t . name in type_map , 'Type %s not found' % t . name return type_map [ t . name ]