mirror of
https://github.com/github/codeql.git
synced 2026-04-19 05:54:00 +02:00
Apply suggestions from code review
Co-authored-by: intrigus-lgtm <60750685+intrigus-lgtm@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
94b037fad1
commit
59f3f1f1e9
@@ -342,7 +342,7 @@ module Ssa {
|
||||
* An SSA definition inserted at a call that may update the value of a captured
|
||||
* variable. For example, in
|
||||
*
|
||||
* ```rb
|
||||
* ```rust
|
||||
* fn capture_mut() {
|
||||
* let mut y = 0;
|
||||
* (0..5).for_each(|| {
|
||||
|
||||
@@ -769,7 +769,7 @@ final class SingletonContentSet extends ContentSet, TSingletonContentSet {
|
||||
|
||||
class LambdaCallKind = Unit;
|
||||
|
||||
/** Holds if `creation` is an expression that creates a lambda of kind `kind` for `c`. */
|
||||
/** Holds if `creation` is an expression that creates a lambda of kind `kind`. */
|
||||
private predicate lambdaCreationExpr(Expr creation, LambdaCallKind kind) {
|
||||
creation instanceof ClosureExpr and exists(kind)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user