def extract(self, filename_path, begin_line, begin_col, end_line, end_col, name): filename_path = self.normalizeFilename(filename_path) extractMethod.extractMethod(filename_path, coords(begin_line, begin_col), coords(end_line, end_col), name)
def helper(src,startcoords, endcoords, newname): writeFile(tmpfile,src) extractMethod(tmpfile, startcoords, endcoords, newname) return getQueuedFileContents(tmpfile)
def helper(src, startcoords, endcoords, newname): writeFile(tmpfile, src) extractMethod(tmpfile, startcoords, endcoords, newname) return getQueuedFileContents(tmpfile)
def helper(src,startcoords, endcoords, newname): sourcenode = createAST(src) extractMethod(tmpfile, startcoords, endcoords, newname) return sourcenode.getSource()