mojo/public/tools/mojom/mojom/parse/conditional_features.py
def RemoveDisabledDefinitions(mojom, enabled_features):
  """Removes conditionally disabled definitions from a Mojom node."""
  mojom.import_list = ast.ImportList([
      imported_file for imported_file in mojom.import_list
      if _IsEnabled(imported_file, enabled_features)
  ])
  mojom.definition_list = [
      definition for definition in mojom.definition_list
      if _IsEnabled(definition, enabled_features)
  ]
  for definition in mojom.definition_list:
    _FilterDefinition(definition, enabled_features)
Removes conditionally disabled definitions from a Mojom node.
Removes conditionally disabled definitions from a Mojom node.
Removes conditionally disabled definitions from a Mojom node .
def RemoveDisabledDefinitions(mojom, enabled_features):
  mojom.import_list = ast.ImportList([
      imported_file for imported_file in mojom.import_list
      if _IsEnabled(imported_file, enabled_features)
  ])
  mojom.definition_list = [
      definition for definition in mojom.definition_list
      if _IsEnabled(definition, enabled_features)
  ]
  for definition in mojom.definition_list:
    _FilterDefinition(definition, enabled_features)
def RemoveDisabledDefinitions ( mojom , enabled_features ) : mojom . import_list = ast . ImportList ( [ imported_file for imported_file in mojom . import_list if _IsEnabled ( imported_file , enabled_features ) ] ) mojom . definition_list = [ definition for definition in mojom . definition_list if _IsEnabled ( definition , enabled_features ) ] for definition in mojom . definition_list : _FilterDefinition ( definition , enabled_features )
Removes conditionally disabled definitions from a Mojom node.
Removes conditionally disabled definitions from a Mojom node .
"""Removes conditionally disabled definitions from a Mojom node."""
mojom
enabled_features