Files
codeql/swift/ql/test/library-tests/elements/expr/logicaloperation/logicaloperation.ql
2022-06-29 11:49:21 +01:00

17 lines
444 B
Plaintext

import swift
string describe(LogicalOperation e) {
e instanceof BinaryLogicalOperation and result = "BinaryLogicalExpr"
or
e instanceof LogicalAndExpr and result = "LogicalAndExpr"
or
e instanceof LogicalOrExpr and result = "LogicalOrExpr"
or
e instanceof UnaryLogicalOperation and result = "UnaryLogicalOperation"
or
e instanceof NotExpr and result = "NotExpr"
}
from LogicalOperation e
select e, concat(describe(e), ", ")