예제 #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()