mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
11 lines
302 B
Plaintext
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()
|
|
}
|