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