PS: Force lower casing on method edges.

This commit is contained in:
Mathias Vorreiter Pedersen
2025-04-03 20:33:04 +01:00
parent 4df449d4b0
commit 22bdcf0af2

View File

@@ -543,7 +543,9 @@ module API {
cached
predicate methodEdge(Node pred, string name, Node succ) {
exists(DataFlow::CallNode call | succ = MkMethodAccessNode(call) and name = call.getName() |
exists(DataFlow::CallNode call |
succ = MkMethodAccessNode(call) and name = call.getName().toLowerCase()
|
pred = getForwardEndNode(getALocalSourceStrict(call.getQualifier()))
)
}