Files
codeql/ruby/ql/test/library-tests/ast/operations/unary.ql
2021-10-15 11:47:28 +02:00

26 lines
718 B
Plaintext

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