deprecate exports and replace uses with the new getAnExportedValue

This commit is contained in:
Erik Krogh Kristensen
2020-09-30 13:24:29 +02:00
parent c5b5a4fd55
commit d316cb512e
18 changed files with 157 additions and 109 deletions

View File

@@ -20,9 +20,9 @@ predicate definedInModule(GlobalVariable v, NodeModule m) {
)
}
from NodeModule m, GlobalVariable f, InvokeExpr invk, ASTNode export, GlobalVarAccess acc
from NodeModule m, GlobalVariable f, InvokeExpr invk, DataFlow::Node export, GlobalVarAccess acc
where
m.exports(f.getName(), export) and
export = m.getAnExportedValue(f.getName()) and
acc = f.getAnAccess() and
invk.getCallee() = acc and
invk.getTopLevel() = m and