mojo/public/tools/mojom/mojom/generate/translate.py
def _GetScopeForKind(module, kind):
  """For a given kind, returns a tuple of progressively more specific names
  used to qualify the kind. For example if kind is an enum named Bar nested in a
  struct Foo within module 'foo', this would return ('foo', 'Foo', 'Bar')"""
  if isinstance(kind, mojom.Enum) and kind.parent_kind:
    # Enums may be nested in other kinds.
    return _GetScopeForKind(module, kind.parent_kind) + (kind.mojom_name, )

  module_fragment = (module.mojom_namespace, ) if module.mojom_namespace else ()
  kind_fragment = (kind.mojom_name, ) if kind else ()
  return module_fragment + kind_fragment
For a given kind, returns a tuple of progressively more specific names
  used to qualify the kind. For example if kind is an enum named Bar nested in a
  struct Foo within module 'foo', this would return ('foo', 'Foo', 'Bar')
For a given kind, returns a tuple of progressively more specific names
used to qualify the kind.
For a given kind returns a tuple of progressively more specific names used to qualify the kind .
def _GetScopeForKind(module, kind):
  if isinstance(kind, mojom.Enum) and kind.parent_kind:
    return _GetScopeForKind(module, kind.parent_kind) + (kind.mojom_name, )
  module_fragment = (module.mojom_namespace, ) if module.mojom_namespace else ()
  kind_fragment = (kind.mojom_name, ) if kind else ()
  return module_fragment + kind_fragment
def _GetScopeForKind ( module , kind ) : if isinstance ( kind , mojom . Enum ) and kind . parent_kind : return _GetScopeForKind ( module , kind . parent_kind ) + ( kind . mojom_name , ) module_fragment = ( module . mojom_namespace , ) if module . mojom_namespace else ( ) kind_fragment = ( kind . mojom_name , ) if kind else ( ) return module_fragment + kind_fragment
For a given kind, returns a tuple of progressively more specific names
used to qualify the kind.
For a given kind returns a tuple of progressively more specific names used to qualify the kind .
"""For a given kind, returns a tuple of progressively more specific names
  used to qualify the kind. For example if kind is an enum named Bar nested in a
  struct Foo within module 'foo', this would return ('foo', 'Foo', 'Bar')""" # Enums may be nested in other kinds.
module
kind