mirror of
https://github.com/github/codeql.git
synced 2026-04-20 22:44:52 +02:00
26 lines
729 B
Plaintext
26 lines
729 B
Plaintext
import codeql.ruby.AST
|
|
|
|
query predicate unaryOperations(UnaryOperation o, string operator, Expr operand, string pClass) {
|
|
operator = o.getOperator() and
|
|
operand = o.getOperand() and
|
|
pClass = o.getAPrimaryQlClass()
|
|
}
|
|
|
|
query predicate unaryLogicalOperations(
|
|
UnaryLogicalOperation o, string operator, Expr operand, string pClass
|
|
) {
|
|
unaryOperations(o, operator, operand, pClass)
|
|
}
|
|
|
|
query predicate unaryArithmeticOperations(
|
|
UnaryArithmeticOperation o, string operator, Expr operand, string pClass
|
|
) {
|
|
unaryOperations(o, operator, operand, pClass)
|
|
}
|
|
|
|
query predicate unaryBitwiseOperations(
|
|
UnaryBitwiseOperation o, string operator, Expr operand, string pClass
|
|
) {
|
|
unaryOperations(o, operator, operand, pClass)
|
|
}
|