mirror of
https://github.com/github/codeql.git
synced 2025-12-20 02:44:30 +01:00
26 lines
718 B
Plaintext
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)
|
|
}
|