mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
11 lines
359 B
Plaintext
11 lines
359 B
Plaintext
import codeql.ruby.AST
|
|
import codeql.ruby.ast.internal.Module as M
|
|
|
|
query MethodBase getMethod(Module m, string name) {
|
|
result = M::ExposedForTestingOnly::getMethod(m, name)
|
|
}
|
|
|
|
query MethodBase lookupMethod(Module m, string name) { result = M::lookupMethod(m, name) }
|
|
|
|
query predicate enclosingMethod(AstNode n, MethodBase m) { m = n.getEnclosingMethod() }
|