parameters: (filename, tree)
docstring: Set the filename attribute to filename on every node in tree
docstring_summary: Set the filename attribute to filename on every node in tree
docstring_tokens: Set the filename attribute to filename on every node in tree
function: def set_filename(filename, tree):
      """Set the filename attribute to filename on every node in tree"""
      worklist = [tree]
      while worklist:
          node = worklist.pop(0)
          node.filename = filename
          worklist.extend(node.getChildNodes())
function_tokens: def set_filename ( filename , tree ) : worklist = [ tree ] while worklist : node = worklist . pop ( 0 ) node . filename = filename worklist . extend ( node . getChildNodes ( ) )