mirror of
https://github.com/github/codeql.git
synced 2026-02-19 08:23:45 +01:00
Restrict type to MethodCallCfgNode
This commit is contained in:
@@ -72,7 +72,7 @@ predicate returnStep(DataFlowPrivate::ReturnNode nodeFrom, Node nodeTo) {
|
||||
*/
|
||||
predicate basicStoreStep(Node nodeFrom, LocalSourceNode nodeTo, string content) {
|
||||
// TODO: support SetterMethodCall inside TuplePattern
|
||||
exists(ExprNodes::AssignmentCfgNode assignment, ExprNodes::CallCfgNode call |
|
||||
exists(ExprNodes::AssignmentCfgNode assignment, ExprNodes::MethodCallCfgNode call |
|
||||
assignment.getLhs() = call and
|
||||
content = getSetterCallAttributeName(call.getExpr()) and
|
||||
nodeTo.(DataFlowPublic::ExprNode).getExprNode() = call.getReceiver() and
|
||||
|
||||
Reference in New Issue
Block a user