Skip to content

Commit e9e3ef3

Browse files
committed
Ruby: 'self' is not really a local variable
1 parent 799c945 commit e9e3ef3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ruby/ql/lib/codeql/ruby/controlflow/internal/ControlFlowGraphImpl.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,8 @@ module Trees {
455455
}
456456
}
457457

458-
private class PatternVariableAccessTree extends LocalVariableAccessTree, CasePattern {
458+
private class PatternVariableAccessTree extends LocalVariableAccessTree, LocalVariableWriteAccess,
459+
CasePattern {
459460
final override predicate last(AstNode last, Completion c) {
460461
super.last(last, c) and
461462
c.(MatchingCompletion).getValue() = true

0 commit comments

Comments
 (0)