File tree Expand file tree Collapse file tree 2 files changed +24
-13
lines changed
swift/ql/test/library-tests/elements/expr Expand file tree Collapse file tree 2 files changed +24
-13
lines changed Original file line number Diff line number Diff line change 11import swift
22
33string describe ( ArithmeticOperation e ) {
4- ( e instanceof BinaryArithmeticOperation and result = "BinaryArithmeticOperation" ) or
5- ( e instanceof AddExpr and result = "AddExpr" ) or
6- ( e instanceof SubExpr and result = "SubExpr" ) or
7- ( e instanceof MulExpr and result = "MulExpr" ) or
8- ( e instanceof DivExpr and result = "DivExpr" ) or
9- ( e instanceof RemExpr and result = "RemExpr" ) or
10- ( e instanceof UnaryArithmeticOperation and result = "UnaryArithmeticOperation" ) or
11- ( e instanceof UnaryMinusExpr and result = "UnaryMinusExpr" )
4+ e instanceof BinaryArithmeticOperation and result = "BinaryArithmeticOperation"
5+ or
6+ e instanceof AddExpr and result = "AddExpr"
7+ or
8+ e instanceof SubExpr and result = "SubExpr"
9+ or
10+ e instanceof MulExpr and result = "MulExpr"
11+ or
12+ e instanceof DivExpr and result = "DivExpr"
13+ or
14+ e instanceof RemExpr and result = "RemExpr"
15+ or
16+ e instanceof UnaryArithmeticOperation and result = "UnaryArithmeticOperation"
17+ or
18+ e instanceof UnaryMinusExpr and result = "UnaryMinusExpr"
1219}
1320
1421from ArithmeticOperation e
Original file line number Diff line number Diff line change 11import swift
22
33string describe ( LogicalOperation e ) {
4- ( e instanceof BinaryLogicalOperation and result = "BinaryLogicalExpr" ) or
5- ( e instanceof LogicalAndExpr and result = "LogicalAndExpr" ) or
6- ( e instanceof LogicalOrExpr and result = "LogicalOrExpr" ) or
7- ( e instanceof UnaryLogicalOperation and result = "UnaryLogicalOperation" ) or
8- ( e instanceof NotExpr and result = "NotExpr" )
4+ e instanceof BinaryLogicalOperation and result = "BinaryLogicalExpr"
5+ or
6+ e instanceof LogicalAndExpr and result = "LogicalAndExpr"
7+ or
8+ e instanceof LogicalOrExpr and result = "LogicalOrExpr"
9+ or
10+ e instanceof UnaryLogicalOperation and result = "UnaryLogicalOperation"
11+ or
12+ e instanceof NotExpr and result = "NotExpr"
913}
1014
1115from LogicalOperation e
You can’t perform that action at this time.
0 commit comments