We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 384e7c7 commit bfe42a6Copy full SHA for bfe42a6
ruby/ql/lib/codeql/ruby/dataflow/SSA.qll
@@ -309,9 +309,7 @@ module Ssa {
309
* an entry definition for `self` is inserted at the start of the `do` block.
310
*/
311
class CapturedSelfDefinition extends CapturedEntryDefinition {
312
- private SelfVariable v;
313
-
314
- CapturedSelfDefinition() { this.getSourceVariable() = v }
+ CapturedSelfDefinition() { this.getSourceVariable() instanceof SelfVariable }
315
}
316
317
/**
0 commit comments