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 29a2055 commit 7332cecCopy full SHA for 7332cec
ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPublic.qll
@@ -890,6 +890,9 @@ class ModuleNode instanceof Module {
890
/** Gets a constant or `self` variable that refers to this module. */
891
LocalSourceNode getAnImmediateReference() {
892
result.asExpr().getExpr() = super.getAnImmediateReference()
893
+ or
894
+ // Include 'self' parameters; these are not expressions and so not found by the case above
895
+ result = this.getAnOwnModuleSelf()
896
}
897
898
/**
0 commit comments