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 660e52f commit 3689481Copy full SHA for 3689481
ruby/ql/lib/codeql/ruby/controlflow/internal/Completion.qll
@@ -84,6 +84,8 @@ private predicate mayRaise(Call c) {
84
abstract class Completion extends TCompletion {
85
/** Holds if this completion is valid for node `n`. */
86
predicate isValidFor(AstNode n) {
87
+ exists(AstNode other | n = other.getDesugared() and this.isValidFor(other))
88
+ or
89
this = n.(NonReturningCall).getACompletion()
90
or
91
completionIsValidForStmt(n, this)
@@ -229,8 +231,6 @@ private predicate inMatchingContext(AstNode n) {
229
231
230
232
n = any(VariableReferencePattern p).getVariableAccess()
233
- n = any(CasePattern c).getDesugared()
- or
234
n.(Trees::DefaultValueParameterTree).hasDefaultValue()
235
}
236
0 commit comments