public List < SuggestedFix > drive ( Scanner scanner , Pattern includeFilePattern ) { JsFlumeCallback callback = new JsFlumeCallback ( scanner , includeFilePattern ) ; NodeTraversal . traverse ( compiler , rootNode , callback ) ; List < SuggestedFix > fixes = callback . getFixes ( ) ; fixes . addAll ( scanner . processAllMatches ( callback . getMatches ( ) ) ) ; return fixes ; }
Run a refactoring and return any suggested fixes as a result .