mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
add support for map.set in Immutable model
This commit is contained in:
@@ -50,7 +50,12 @@ private module Immutable {
|
||||
pred = call.getOptionArgument(0, key) and
|
||||
result = call
|
||||
)
|
||||
// TODO: map set.
|
||||
or
|
||||
exists(DataFlow::CallNode call | call = immutableMap().getMember("set").getACall() |
|
||||
prop = mapValue(call.getArgument(0)) and
|
||||
pred = call.getArgument(1) and
|
||||
result = call
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user