parameters: (self, path, parser)
docstring: Scans provided file and passes its contents to the parser using
          parser.Parse method.
docstring_summary: Scans provided file and passes its contents to the parser using
          parser.Parse method.
docstring_tokens: Scans provided file and passes its contents to the parser using parser . Parse method .
function: def ScanFile(self, path, parser):
          """
          Scans provided file and passes its contents to the parser using
          parser.Parse method.
          """
  
          with codecs.open(path, 'r', 'utf-8') as f:
              try:
                  contents = f.read()
              except:
                  contents = ''
                  print('Failed reading file: %s, skipping content.' % path)
                  pass
          try:
              return parser.Parse(contents)
          except Exception as e:
              print("Exception while parsing file {}".format(path))
              raise
function_tokens: def ScanFile ( self , path , parser ) : with codecs . open ( path , 'r' , 'utf-8' ) as f : try : contents = f . read ( ) except : contents = '' print ( 'Failed reading file: %s, skipping content.' % path ) pass try : return parser . Parse ( contents ) except Exception as e : print ( "Exception while parsing file {}" . format ( path ) ) raise