mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Fix lambda flow.
This commit is contained in:
@@ -3050,8 +3050,11 @@ predicate additionalLambdaFlowStep(Node nodeFrom, Node nodeTo, boolean preserves
|
||||
exists(AssignableDefinition def |
|
||||
def.getTargetAccess() = fa and
|
||||
nodeFrom.asExpr() = def.getSource() and
|
||||
nodeTo = TFlowInsensitiveFieldNode(f) and
|
||||
nodeTo = TFlowInsensitiveFieldNode(f)
|
||||
|
|
||||
nodeFrom.getEnclosingCallable() instanceof Constructor
|
||||
or
|
||||
nodeFrom.getEnclosingCallable() instanceof ObjectInitMethod
|
||||
)
|
||||
or
|
||||
nodeFrom = TFlowInsensitiveFieldNode(f) and
|
||||
|
||||
Reference in New Issue
Block a user