-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data flow: Rework lambda flow [DO NOT MERGE] #17975
base: main
Are you sure you want to change the base?
Conversation
@@ -585,8 +599,7 @@ | |||
|
|||
class LambdaCallKind = Method; // the "apply" method in the functional interface | |||
|
|||
/** Holds if `creation` is an expression that creates a lambda of kind `kind` for `c`. */ | |||
predicate lambdaCreation(Node creation, LambdaCallKind kind, DataFlowCallable c) { | |||
predicate lambdaCreationHelper(Node creation, LambdaCallKind kind, DataFlowCallable c) { |
Check warning
Code scanning / CodeQL
Candidate predicate not marked as `nomagic` Warning
lambdaCreation
n.(PostUpdateNode).getPreUpdateNode().(ExprNode).getControlFlowNode(), | ||
n.(LocalFunctionCreationPostUpdateNode).getUnderlyingControlFlowNode() | ||
] | ||
[n.(PostUpdateNode).getPreUpdateNode().(ExprNode).getControlFlowNode(),] |
Check warning
Code scanning / CodeQL
Singleton set literal Warning
TSyntheticFieldContent(SyntheticField s) or | ||
TLambdaReturnContent(Method m) or | ||
TLambdaArgumentContent(Method m, ArgumentPosition pos) { | ||
exists(m.getParameter(pos)) or pos = -1 |
Check warning
Code scanning / CodeQL
Var only used in one side of disjunct. Warning
variable m
TSyntheticFieldApproxContent() or | ||
TLambdaReturnContentApprox(Method m) or | ||
TLambdaArgumentApprox(Method m, ArgumentPosition pos) { | ||
exists(m.getParameter(pos)) or pos = -1 |
Check warning
Code scanning / CodeQL
Var only used in one side of disjunct. Warning
No description provided.