tools/json_schema_compiler/model.py
def _GetEvents(parent, json, namespace):
  """Creates Function objects generated from the events in |json|.
  """
  events = OrderedDict()
  for event_json in json.get('events', []):
    event = Function(parent,
                     event_json['name'],
                     event_json,
                     namespace,
                     Origin(from_client=True))
    events[event.name] = event
  return events
Creates Function objects generated from the events in |json|.
  
Creates Function objects generated from the events in |json|.
Creates Function objects generated from the events in |json| .
def _GetEvents(parent, json, namespace):
  events = OrderedDict()
  for event_json in json.get('events', []):
    event = Function(parent,
                     event_json['name'],
                     event_json,
                     namespace,
                     Origin(from_client=True))
    events[event.name] = event
  return events
def _GetEvents ( parent , json , namespace ) : events = OrderedDict ( ) for event_json in json . get ( 'events' , [ ] ) : event = Function ( parent , event_json [ 'name' ] , event_json , namespace , Origin ( from_client = True ) ) events [ event . name ] = event return events
Creates Function objects generated from the events in |json|.
Creates Function objects generated from the events in |json| .
"""Creates Function objects generated from the events in |json|.
  """
parent
json
namespace