parameters: (callback, src_root)
docstring: Invoke a callback on the text of each source file.
docstring_summary: Invoke a callback on the text of each source file.
docstring_tokens: Invoke a callback on the text of each source file .
function: def foreach_source_file(callback, src_root):
      """Invoke a callback on the text of each source file."""
      for source_file in get_all_source_files(prefix=src_root):
          if list_files:
              print('scanning file: ' + source_file)
          with open(source_file, 'r', encoding='utf-8') as fh:
              callback(source_file, fh.read())
function_tokens: def foreach_source_file ( callback , src_root ) : for source_file in get_all_source_files ( prefix = src_root ) : if list_files : print ( 'scanning file: ' + source_file ) with open ( source_file , 'r' , encoding = 'utf-8' ) as fh : callback ( source_file , fh . read ( ) )