File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed
lib/codeql/swift/elements/pattern
test/library-tests/controlflow/graph Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1
1
private import codeql.swift.generated.pattern.ExprPattern
2
2
3
3
class ExprPattern extends ExprPatternBase {
4
- override string toString ( ) { result = this . getSubExpr ( ) . toString ( ) }
4
+ override string toString ( ) { result = "=~ ..." }
5
5
}
Original file line number Diff line number Diff line change @@ -318,10 +318,10 @@ cfg.swift:
318
318
#-----| match -> let ...
319
319
320
320
# 39| let ...
321
- #-----| -> error
321
+ #-----| match -> print(_:separator:terminator:)
322
322
323
323
# 39| let ...
324
- #-----| match -> print(_:separator:terminator:)
324
+ #-----| -> error
325
325
326
326
# 40| print(_:separator:terminator:)
327
327
#-----| -> "..."
@@ -1512,45 +1512,45 @@ cfg.swift:
1512
1512
#-----| -> case ...
1513
1513
1514
1514
# 141| case ...
1515
- #-----| -> 0
1515
+ #-----| -> =~ ...
1516
1516
1517
1517
# 141| 0
1518
- #-----| -> 0
1518
+ #-----| -> =~ ...
1519
1519
1520
- # 141| 0
1521
- #-----| -> 0
1522
-
1523
- # 141| 0
1524
- #-----| no-match -> 1
1520
+ # 141| =~ ...
1521
+ #-----| no-match -> =~ ...
1525
1522
#-----| match -> true
1526
1523
1527
- # 141| 1
1528
- #-----| -> 1
1524
+ # 141| =~ ...
1525
+ #-----| -> 0
1529
1526
1530
1527
# 141| 1
1531
- #-----| -> 1
1528
+ #-----| -> =~ ...
1532
1529
1533
- # 141| 1
1530
+ # 141| =~ ...
1534
1531
#-----| match -> true
1535
1532
#-----| no-match -> case ...
1536
1533
1534
+ # 141| =~ ...
1535
+ #-----| -> 1
1536
+
1537
1537
# 142| return ...
1538
1538
#-----| return -> exit patterns(x:) (normal)
1539
1539
1540
1540
# 142| true
1541
1541
#-----| -> return ...
1542
1542
1543
1543
# 144| case ...
1544
- #-----| -> x
1544
+ #-----| -> =~ ...
1545
1545
1546
- # 144| x
1546
+ # 144| =~ ...
1547
1547
#-----| match -> true
1548
1548
#-----| no-match -> case ...
1549
1549
1550
1550
# 144| x
1551
- #-----| -> x
1551
+ #-----| -> =~ ...
1552
1552
1553
- # 144| x
1553
+ # 144| =~ ...
1554
1554
#-----| -> x
1555
1555
1556
1556
# 145| return ...
You can’t perform that action at this time.
0 commit comments