tools/json_schema_compiler/model.py
def _GetTypes(parent, json, namespace, origin):
  """Creates Type objects extracted from |json|.
  """
  assert hasattr(namespace, 'manifest_keys'), \
    'Types should be parsed after parsing manifest keys.'

  types = OrderedDict()
  for type_json in json.get('types', []):
    type_ = Type(parent, type_json['id'], type_json, namespace, origin)
    types[type_.name] = type_
  return types
Creates Type objects extracted from |json|.
  
Creates Type objects extracted from |json|.
Creates Type objects extracted from |json| .
def _GetTypes(parent, json, namespace, origin):
  assert hasattr(namespace, 'manifest_keys'), \
    'Types should be parsed after parsing manifest keys.'
  types = OrderedDict()
  for type_json in json.get('types', []):
    type_ = Type(parent, type_json['id'], type_json, namespace, origin)
    types[type_.name] = type_
  return types
def _GetTypes ( parent , json , namespace , origin ) : assert hasattr ( namespace , 'manifest_keys' ) , 'Types should be parsed after parsing manifest keys.' types = OrderedDict ( ) for type_json in json . get ( 'types' , [ ] ) : type_ = Type ( parent , type_json [ 'id' ] , type_json , namespace , origin ) types [ type_ . name ] = type_ return types
Creates Type objects extracted from |json|.
Creates Type objects extracted from |json| .
"""Creates Type objects extracted from |json|.
  """
parent
json
namespace
origin