tools/json_schema_compiler/js_externs_generator_test.py
def _GetNamespace(self, fake_content, filename, is_idl):
    """Returns a namespace object for the given content"""
    api_def = (idl_schema.Process(fake_content, filename) if is_idl
        else json_parse.Parse(fake_content))
    m = model.Model()
    return m.AddNamespace(api_def[0], filename)
Returns a namespace object for the given content
Returns a namespace object for the given content
Returns a namespace object for the given content
def _GetNamespace(self, fake_content, filename, is_idl):
    api_def = (idl_schema.Process(fake_content, filename) if is_idl
        else json_parse.Parse(fake_content))
    m = model.Model()
    return m.AddNamespace(api_def[0], filename)
def _GetNamespace ( self , fake_content , filename , is_idl ) : api_def = ( idl_schema . Process ( fake_content , filename ) if is_idl else json_parse . Parse ( fake_content ) ) m = model . Model ( ) return m . AddNamespace ( api_def [ 0 ] , filename )
Returns a namespace object for the given content
Returns a namespace object for the given content
"""Returns a namespace object for the given content"""
self
fake_content
filename
is_idl