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 11private import codeql.swift.generated.pattern.ExprPattern
22
33class ExprPattern extends ExprPatternBase {
4- override string toString ( ) { result = this . getSubExpr ( ) . toString ( ) }
4+ override string toString ( ) { result = "=~ ..." }
55}
Original file line number Diff line number Diff line change @@ -318,10 +318,10 @@ cfg.swift:
318318#-----| match -> let ...
319319
320320# 39| let ...
321- #-----| -> error
321+ #-----| match -> print(_:separator:terminator:)
322322
323323# 39| let ...
324- #-----| match -> print(_:separator:terminator:)
324+ #-----| -> error
325325
326326# 40| print(_:separator:terminator:)
327327#-----| -> "..."
@@ -1512,45 +1512,45 @@ cfg.swift:
15121512#-----| -> case ...
15131513
15141514# 141| case ...
1515- #-----| -> 0
1515+ #-----| -> =~ ...
15161516
15171517# 141| 0
1518- #-----| -> 0
1518+ #-----| -> =~ ...
15191519
1520- # 141| 0
1521- #-----| -> 0
1522-
1523- # 141| 0
1524- #-----| no-match -> 1
1520+ # 141| =~ ...
1521+ #-----| no-match -> =~ ...
15251522#-----| match -> true
15261523
1527- # 141| 1
1528- #-----| -> 1
1524+ # 141| =~ ...
1525+ #-----| -> 0
15291526
15301527# 141| 1
1531- #-----| -> 1
1528+ #-----| -> =~ ...
15321529
1533- # 141| 1
1530+ # 141| =~ ...
15341531#-----| match -> true
15351532#-----| no-match -> case ...
15361533
1534+ # 141| =~ ...
1535+ #-----| -> 1
1536+
15371537# 142| return ...
15381538#-----| return -> exit patterns(x:) (normal)
15391539
15401540# 142| true
15411541#-----| -> return ...
15421542
15431543# 144| case ...
1544- #-----| -> x
1544+ #-----| -> =~ ...
15451545
1546- # 144| x
1546+ # 144| =~ ...
15471547#-----| match -> true
15481548#-----| no-match -> case ...
15491549
15501550# 144| x
1551- #-----| -> x
1551+ #-----| -> =~ ...
15521552
1553- # 144| x
1553+ # 144| =~ ...
15541554#-----| -> x
15551555
15561556# 145| return ...
You can’t perform that action at this time.
0 commit comments