Skip to content

Commit 4b57b44

Browse files
committed
JS: Factor out some code
1 parent a405b7b commit 4b57b44

File tree

1 file changed

+2
-3
lines changed
  • javascript/ql/lib/semmle/javascript/internal

1 file changed

+2
-3
lines changed

javascript/ql/lib/semmle/javascript/internal/Overlay.qll

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ private predicate isOverlay() { databaseMetadata("isOverlay", "true") }
66

77
overlay[local]
88
private string getFileFromEntity(@locatable node) {
9-
exists(@location loc, @file file |
9+
exists(@location loc |
1010
hasLocation(node, loc) and
11-
locations_default(loc, file, _, _, _, _) and
12-
files(file, result)
11+
result = getFileFromLocation(loc)
1312
)
1413
}
1514

0 commit comments

Comments
 (0)