tools/resources/list_unused_grit_header.py
def GetOutputHeaderFile(tree):
  """Find the output file for a given tree.

  Args:
    tree: The tree to scan.

  Returns:
    A grit header file name.
  """
  root = tree.getroot()
  assert root.tag == 'grit'
  output_node = FindNodeWithTag(root, 'outputs')
  assert output_node != None
  return GetOutputFileForNode(output_node)
Find the output file for a given tree.

  Args:
    tree: The tree to scan.

  Returns:
    A grit header file name.
  
Find the output file for a given tree.
Find the output file for a given tree .
def GetOutputHeaderFile(tree):
  root = tree.getroot()
  assert root.tag == 'grit'
  output_node = FindNodeWithTag(root, 'outputs')
  assert output_node != None
  return GetOutputFileForNode(output_node)
def GetOutputHeaderFile ( tree ) : root = tree . getroot ( ) assert root . tag == 'grit' output_node = FindNodeWithTag ( root , 'outputs' ) assert output_node != None return GetOutputFileForNode ( output_node )
Find the output file for a given tree.
Find the output file for a given tree .
"""Find the output file for a given tree.

  Args:
    tree: The tree to scan.

  Returns:
    A grit header file name.
  """
A grit header file name.
A grit header file name .
tree
The tree to scan.
The tree to scan .