mirror of
https://github.com/github/codeql.git
synced 2026-01-24 11:52:56 +01:00
11 lines
348 B
Plaintext
11 lines
348 B
Plaintext
import ruby
|
|
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() }
|