def add(self, file):
        '''
        Add a file to the index and parse it.
        '''
        source = open(file).readlines()
        tree = ast.parse(''.join(source))
        self._file = File(file, source)
        self.generic_visit(tree)

        Add a file to the index and parse it.
        
recipes/Python/578206_Pythcode_clone_detector_Dont_Repeat/recipe-578206.py