Files
codeql/ruby/ql/test/library-tests/ast/ValueText.ql
2022-03-25 08:25:07 +00:00

11 lines
302 B
Plaintext

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