mirror of
https://github.com/github/codeql.git
synced 2026-02-20 08:53:49 +01:00
Add clarifying comment
This commit is contained in:
@@ -162,6 +162,9 @@ private class RegularMethodCall extends MethodCall, TRegularMethodCall {
|
||||
not exists(g.getReceiver()) and
|
||||
toGenerated(result) = g.getMethod().(Generated::ScopeResolution).getScope()
|
||||
or
|
||||
// If there's no explicit receiver (or scope resolution that acts like a
|
||||
// receiver), then the receiver is implicitly `self`. N.B. `::Foo()` is
|
||||
// not valid Ruby.
|
||||
not exists(g.getReceiver()) and
|
||||
not exists(g.getMethod().(Generated::ScopeResolution).getScope()) and
|
||||
result = TRegularMethodCallImplicitSelf(g)
|
||||
|
||||
Reference in New Issue
Block a user