Files
codeql/ruby/ql/test/library-tests/modules/methods.ql
Tom Hvitved a9f2e5272f Merge pull request #10376 from hvitved/ruby/no-ast-by-default
Ruby: Do not expose AST layer through `ruby.qll`
2022-09-21 13:15:30 +02:00

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() }