mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
29 lines
889 B
Plaintext
29 lines
889 B
Plaintext
import swift
|
|
|
|
string describe(BitwiseOperation e) {
|
|
e instanceof BinaryBitwiseOperation and result = "BinaryBitwiseOperation"
|
|
or
|
|
e instanceof AndBitwiseExpr and result = "AndBitwiseExpr"
|
|
or
|
|
e instanceof OrBitwiseExpr and result = "OrBitwiseExpr"
|
|
or
|
|
e instanceof XorBitwiseExpr and result = "XorBitwiseExpr"
|
|
or
|
|
e instanceof PointwiseAndExpr and result = "PointwiseAndExpr"
|
|
or
|
|
e instanceof PointwiseOrExpr and result = "PointwiseOrExpr"
|
|
or
|
|
e instanceof PointwiseXorExpr and result = "PointwiseXorExpr"
|
|
or
|
|
e instanceof ShiftLeftBitwiseExpr and result = "ShiftLeftBitwiseExpr"
|
|
or
|
|
e instanceof ShiftRightBitwiseExpr and result = "ShiftRightBitwiseExpr"
|
|
or
|
|
e instanceof UnaryBitwiseOperation and result = "UnaryBitwiseOperation"
|
|
or
|
|
e instanceof NotBitwiseExpr and result = "NotBitwiseExpr"
|
|
}
|
|
|
|
from BitwiseOperation e
|
|
select e, concat(describe(e), ", ")
|