Files
codeql/ruby/ql/test/library-tests/ast/ValueText.ql
2022-09-13 19:59:56 +02:00

11 lines
313 B
Plaintext

import codeql.ruby.AST
import codeql.ruby.controlflow.CfgNodes
query predicate exprValue(Expr e, ConstantValue v, string t) {
v = e.getConstantValue() and t = v.getValueType()
}
query predicate exprCfgNodeValue(ExprCfgNode n, ConstantValue v, string t) {
v = n.getConstantValue() and t = v.getValueType()
}