Ruby: Add ql doc to lookupSingletonMethod

This commit is contained in:
Tom Hvitved
2022-10-07 10:55:30 +02:00
parent 48bdf13c89
commit 69fc59930f

View File

@@ -736,6 +736,10 @@ private predicate singletonMethodOnModule(MethodBase method, string name, Module
)
}
/**
* Holds if `method` is a singleton method named `name`, defined on module
* `m`, or any transitive base class of `m`.
*/
pragma[nomagic]
private MethodBase lookupSingletonMethod(Module m, string name) {
singletonMethodOnModule(result, name, m)