Skip to content

Commit 164a18f

Browse files
committed
JS: Factor out extractFiles
1 parent da3d1a3 commit 164a18f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

javascript/extractor/src/com/semmle/js/extractor/AutoBuild.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,17 @@ private void extractSource() throws IOException {
608608
boolean hasTypeScriptFiles = extractedFiles.size() > 0;
609609

610610
// extract remaining files
611+
extractFiles(
612+
filesToExtract, extractedFiles, defaultExtractor, customExtractors, hasTypeScriptFiles);
613+
}
614+
615+
private void extractFiles(
616+
Set<Path> filesToExtract,
617+
Set<Path> extractedFiles,
618+
FileExtractor defaultExtractor,
619+
Map<String, FileExtractor> customExtractors,
620+
boolean hasTypeScriptFiles) {
621+
611622
for (Path f : filesToExtract) {
612623
if (extractedFiles.contains(f))
613624
continue;

0 commit comments

Comments
 (0)