JS: Avoid materializing DataFlow::Node.getFile

This commit is contained in:
Asger F
2019-07-16 15:45:20 +01:00
parent d8165d0313
commit 498e4d2d57

View File

@@ -112,7 +112,8 @@ module GlobalAccessPath {
exists(DataFlow::Node rhs |
fromRhs(rhs) = accessPath and
not isSelfAssignment(rhs) and
rhs.getFile() = file
// Note: Avoid unneeded materialization of DataFlow::Node.getFile()
rhs.getAstNode().getFile() = file
)
}