mirror of
https://github.com/github/codeql.git
synced 2026-04-29 02:35:15 +02:00
Ruby: fix missing 'self' parameters in ModuleNode.getAnImmediateReferenc
This commit is contained in:
@@ -890,6 +890,9 @@ class ModuleNode instanceof Module {
|
||||
/** Gets a constant or `self` variable that refers to this module. */
|
||||
LocalSourceNode getAnImmediateReference() {
|
||||
result.asExpr().getExpr() = super.getAnImmediateReference()
|
||||
or
|
||||
// Include 'self' parameters; these are not expressions and so not found by the case above
|
||||
result = this.getAnOwnModuleSelf()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user