Skip to content

Commit e9da5ee

Browse files
committed
Swift: update test expectations
1 parent b62a4aa commit e9da5ee

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

swift/ql/test/library-tests/ast/PrintAst.expected

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3403,6 +3403,7 @@ declarations.swift:
34033403
# 144| getElement(0): [CallExpr] call to id()
34043404
# 144| getFunction(): [MethodRefExpr] .id()
34053405
# 144| getBase(): [IntegerLiteralExpr] 42
3406+
# 144| [Diagnostics] Diagnostics
34063407
# 146| [ClassDecl] GenericClass
34073408
# 146| getGenericTypeParam(0): [GenericTypeParamDecl] A
34083409
# 146| getGenericTypeParam(1): [GenericTypeParamDecl] B
@@ -3481,6 +3482,11 @@ declarations.swift:
34813482
# 173| getElement(5): [IfConfigDecl] #if ...
34823483
# 174| getElement(6): [IntegerLiteralExpr] 9
34833484
# 175| getElement(7): [IntegerLiteralExpr] 10
3485+
# 163| [Diagnostics] Diagnostics
3486+
# 164| [Diagnostics] Diagnostics
3487+
# 165| [Diagnostics] Diagnostics
3488+
# 174| [Diagnostics] Diagnostics
3489+
# 175| [Diagnostics] Diagnostics
34843490
expressions.swift:
34853491
# 1| [TopLevelCodeDecl] { ... }
34863492
# 1| getBody(): [BraceStmt] { ... }
@@ -3646,6 +3652,7 @@ expressions.swift:
36463652
# 31| getDest(): [DiscardAssignmentExpr] _
36473653
# 31| getSource(): [IntegerLiteralExpr] 15
36483654
# 31| getSource().getFullyConverted(): [IsExpr] ... is ...
3655+
# 31| [Diagnostics] Diagnostics
36493656
# 32| [TopLevelCodeDecl] { ... }
36503657
# 32| getBody(): [BraceStmt] { ... }
36513658
# 32| getElement(0): [AssignExpr] ... = ...
@@ -3658,12 +3665,14 @@ expressions.swift:
36583665
# 33| getDest(): [DiscardAssignmentExpr] _
36593666
# 33| getSource(): [IntegerLiteralExpr] 15
36603667
# 33| getSource().getFullyConverted(): [ConditionalCheckedCastExpr] (Double?) ...
3668+
# 33| [Diagnostics] Diagnostics
36613669
# 34| [TopLevelCodeDecl] { ... }
36623670
# 34| getBody(): [BraceStmt] { ... }
36633671
# 34| getElement(0): [AssignExpr] ... = ...
36643672
# 34| getDest(): [DiscardAssignmentExpr] _
36653673
# 34| getSource(): [IntegerLiteralExpr] 15
36663674
# 34| getSource().getFullyConverted(): [ForcedCheckedCastExpr] (Double) ...
3675+
# 34| [Diagnostics] Diagnostics
36673676
# 35| [TopLevelCodeDecl] { ... }
36683677
# 35| getBody(): [BraceStmt] { ... }
36693678
# 35| getElement(0): [CallExpr] call to print(_:separator:terminator:)
@@ -3680,6 +3689,10 @@ expressions.swift:
36803689
# 35| getExpr(): [DefaultArgumentExpr] default separator
36813690
# 35| getArgument(2): [Argument] terminator: default terminator
36823691
# 35| getExpr(): [DefaultArgumentExpr] default terminator
3692+
# 35| [Diagnostics] Diagnostics
3693+
# 35| [Diagnostics] Diagnostics
3694+
# 35| [Diagnostics] Diagnostics
3695+
# 35| [Diagnostics] Diagnostics
36833696
# 37| [ConcreteFuncDecl] closured(closure:)
36843697
# 37| InterfaceType = ((Int, Int) -> Int) -> ()
36853698
# 37| getParam(0): [ParamDecl] closure
@@ -3691,6 +3704,7 @@ expressions.swift:
36913704
# 38| getExpr(): [IntegerLiteralExpr] 5
36923705
# 38| getArgument(1): [Argument] : 7
36933706
# 38| getExpr(): [IntegerLiteralExpr] 7
3707+
# 38| [Diagnostics] Diagnostics
36943708
# 41| [TopLevelCodeDecl] { ... }
36953709
# 41| getBody(): [BraceStmt] { ... }
36963710
# 41| getElement(0): [CallExpr] call to closured(closure:)
@@ -3956,13 +3970,15 @@ expressions.swift:
39563970
# 87| getBody(): [BraceStmt] { ... }
39573971
# 87| getElement(0): [ForceValueExpr] ...!
39583972
# 87| getSubExpr(): [DeclRefExpr] opt
3973+
# 87| [Diagnostics] Diagnostics
39593974
# 88| [TopLevelCodeDecl] { ... }
39603975
# 88| getBody(): [BraceStmt] { ... }
39613976
# 88| getElement(0): [ForceValueExpr] ...!
39623977
# 88| getSubExpr(): [SubscriptExpr] ...[...]
39633978
# 88| getBase(): [DeclRefExpr] d
39643979
# 88| getArgument(0): [Argument] : a
39653980
# 88| getExpr(): [StringLiteralExpr] a
3981+
# 88| [Diagnostics] Diagnostics
39663982
# 90| [ClassDecl] ToPtr
39673983
# 90| getMember(0): [DestructorDecl] deinit()
39683984
# 90| InterfaceType = (ToPtr) -> () -> ()
@@ -4003,6 +4019,7 @@ expressions.swift:
40034019
# 93| getArgument(0): [Argument] : opaque
40044020
# 93| getExpr(): [DeclRefExpr] opaque
40054021
# 93| getExpr().getFullyConverted(): [PointerToPointerExpr] (UnsafeRawPointer) ...
4022+
# 93| [Diagnostics] Diagnostics
40064023
# 95| [StructDecl] HasProperty
40074024
# 96| getMember(0): [PatternBindingDecl] var ... = ...
40084025
# 96| getPattern(0): [TypedPattern] ... as ...
@@ -4191,6 +4208,10 @@ expressions.swift:
41914208
# 138| getExpr(): [IntegerLiteralExpr] 3
41924209
# 138| getArgument(1): [Argument] : 4
41934210
# 138| getExpr(): [IntegerLiteralExpr] 4
4211+
# 132| [Diagnostics] Diagnostics
4212+
# 133| [Diagnostics] Diagnostics
4213+
# 134| [Diagnostics] Diagnostics
4214+
# 136| [Diagnostics] Diagnostics
41944215
# 141| [StructDecl] B
41954216
# 142| getMember(0): [PatternBindingDecl] var ... = ...
41964217
# 142| getPattern(0): [TypedPattern] ... as ...
@@ -4399,6 +4420,9 @@ expressions.swift:
43994420
# 163| getExpr(): [IntegerLiteralExpr] 1
44004421
# 163| getArgument(1): [Argument] : 0
44014422
# 163| getExpr(): [IntegerLiteralExpr] 0
4423+
# 152| [Diagnostics] Diagnostics
4424+
# 153| [Diagnostics] Diagnostics
4425+
# 154| [Diagnostics] Diagnostics
44024426
patterns.swift:
44034427
# 1| [ConcreteFuncDecl] basic_patterns()
44044428
# 1| InterfaceType = () -> ()
@@ -4437,6 +4461,11 @@ patterns.swift:
44374461
# 6| getInit(0): [StringLiteralExpr] paren
44384462
# 6| getPattern(0): [AnyPattern] _
44394463
# 6| getPattern(0).getFullyUnresolved(): [ParenPattern] (...)
4464+
# 2| [Diagnostics] Diagnostics
4465+
# 3| [Diagnostics] Diagnostics
4466+
# 4| [Diagnostics] Diagnostics
4467+
# 4| [Diagnostics] Diagnostics
4468+
# 4| [Diagnostics] Diagnostics
44404469
# 9| [ConcreteFuncDecl] switch_patterns()
44414470
# 9| InterfaceType = () -> ()
44424471
# 9| getBody(): [BraceStmt] { ... }
@@ -4575,16 +4604,38 @@ patterns.swift:
45754604
# 50| getPattern(): [BoolPattern] false
45764605
# 12| [ConcreteVarDecl] xx
45774606
# 12| Type = Int
4607+
# 12| [Diagnostics] Diagnostics
45784608
# 12| [ConcreteVarDecl] yy
45794609
# 12| Type = Int
4610+
# 12| [Diagnostics] Diagnostics
4611+
# 12| [Diagnostics] Diagnostics
4612+
# 15| [Diagnostics] Diagnostics
4613+
# 16| [Diagnostics] Diagnostics
4614+
# 17| [Diagnostics] Diagnostics
4615+
# 17| [Diagnostics] Diagnostics
4616+
# 26| [Diagnostics] Diagnostics
4617+
# 27| [Diagnostics] Diagnostics
4618+
# 28| [Diagnostics] Diagnostics
45804619
# 28| [ConcreteVarDecl] i
45814620
# 28| Type = Int
45824621
# 28| [ConcreteVarDecl] s
45834622
# 28| Type = String
4623+
# 28| [Diagnostics] Diagnostics
4624+
# 28| [Diagnostics] Diagnostics
4625+
# 33| [Diagnostics] Diagnostics
45844626
# 34| [ConcreteVarDecl] n
45854627
# 34| Type = Int
4628+
# 34| [Diagnostics] Diagnostics
4629+
# 34| [Diagnostics] Diagnostics
4630+
# 35| [Diagnostics] Diagnostics
4631+
# 41| [Diagnostics] Diagnostics
45864632
# 42| [ConcreteVarDecl] x
45874633
# 42| Type = String
4634+
# 42| [Diagnostics] Diagnostics
4635+
# 42| [Diagnostics] Diagnostics
4636+
# 43| [Diagnostics] Diagnostics
4637+
# 49| [Diagnostics] Diagnostics
4638+
# 50| [Diagnostics] Diagnostics
45884639
statements.swift:
45894640
# 1| [ConcreteFuncDecl] loop()
45904641
# 1| InterfaceType = () -> ()
@@ -4877,6 +4928,7 @@ statements.swift:
48774928
# 65| getSubPattern(): [NamedPattern] xx
48784929
# 65| getInitializer(): [DeclRefExpr] x
48794930
# 65| getThen(): [BraceStmt] { ... }
4931+
# 65| [Diagnostics] Diagnostics
48804932
# 67| [TopLevelCodeDecl] { ... }
48814933
# 67| getBody(): [BraceStmt] { ... }
48824934
# 67| getElement(0): [IfStmt] if ... then { ... }

0 commit comments

Comments
 (0)