示例#1
0
 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)
示例#2
0
 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)
示例#3
0
def helper(src,startcoords, endcoords, newname):
    writeFile(tmpfile,src)
    extractMethod(tmpfile, startcoords, endcoords, newname)
    return getQueuedFileContents(tmpfile)
示例#4
0
def helper(src, startcoords, endcoords, newname):
    writeFile(tmpfile, src)
    extractMethod(tmpfile, startcoords, endcoords, newname)
    return getQueuedFileContents(tmpfile)
示例#5
0
def helper(src,startcoords, endcoords, newname):
    sourcenode = createAST(src)
    extractMethod(tmpfile, startcoords, endcoords, newname)
    return sourcenode.getSource()