mirror of
https://github.com/github/codeql.git
synced 2025-12-19 10:23:15 +01:00
17 lines
444 B
Plaintext
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), ", ")
|