@@ -3476,8 +3476,75 @@ cfg.swift:
3476
3476
# 577| getBase(): [CallExpr] call to getMyProtocolImpl()
3477
3477
# 577| getFunction(): [DeclRefExpr] getMyProtocolImpl()
3478
3478
# 577| getMethodRef(): [DeclRefExpr] source()
3479
- # 580| [Comment] // ---
3480
- # 580|
3479
+ # 580| [NamedFunction] singleStmtExpr(_:)
3480
+ # 580| InterfaceType = (Int) -> ()
3481
+ # 580| getParam(0): [ParamDecl] x
3482
+ # 580| Type = Int
3483
+ # 580| getBody(): [BraceStmt] { ... }
3484
+ # 581| getVariable(0): [ConcreteVarDecl] a
3485
+ # 581| Type = Int
3486
+ # 585| getVariable(1): [ConcreteVarDecl] b
3487
+ # 585| Type = Int
3488
+ # 581| getElement(0): [PatternBindingDecl] var ... = ...
3489
+ # 581| getInit(0): [SingleValueStmtExpr] SingleValueStmtExpr
3490
+ # 581| getStmt(): [SwitchStmt] switch x { ... }
3491
+ # 581| getExpr(): [DeclRefExpr] x
3492
+ # 582| getCase(0): [CaseStmt] case ...
3493
+ # 582| getLabel(0): [CaseLabelItem] =~ ...
3494
+ # 582| getPattern(): [ExprPattern] =~ ...
3495
+ # 582| getSubExpr(): [BinaryExpr] ... .~=(_:_:) ...
3496
+ # 582| getFunction(): [MethodLookupExpr] .~=(_:_:)
3497
+ # 582| getBase(): [TypeExpr] Range<Int>.Type
3498
+ # 582| getTypeRepr(): [TypeRepr] Range<Int>
3499
+ # 582| getMethodRef(): [DeclRefExpr] ~=(_:_:)
3500
+ # 582| getArgument(0): [Argument] : ... ...<(_:_:) ...
3501
+ # 582| getExpr(): [BinaryExpr] ... ...<(_:_:) ...
3502
+ # 582| getFunction(): [MethodLookupExpr] ...<(_:_:)
3503
+ # 582| getBase(): [TypeExpr] Int.Type
3504
+ # 582| getTypeRepr(): [TypeRepr] Int
3505
+ # 582| getMethodRef(): [DeclRefExpr] ..<(_:_:)
3506
+ # 582| getArgument(0): [Argument] : 0
3507
+ # 582| getExpr(): [IntegerLiteralExpr] 0
3508
+ # 582| getArgument(1): [Argument] : 5
3509
+ # 582| getExpr(): [IntegerLiteralExpr] 5
3510
+ # 582| getArgument(1): [Argument] : $match
3511
+ # 582| getExpr(): [DeclRefExpr] $match
3512
+ # 582| getBody(): [BraceStmt] { ... }
3513
+ # 582| getElement(0): [ThenStmt] ThenStmt
3514
+ # 582| getResult(): [IntegerLiteralExpr] 1
3515
+ # 583| getCase(1): [CaseStmt] case ...
3516
+ # 583| getLabel(0): [CaseLabelItem] _
3517
+ # 583| getPattern(): [AnyPattern] _
3518
+ # 583| getBody(): [BraceStmt] { ... }
3519
+ # 583| getElement(0): [ThenStmt] ThenStmt
3520
+ # 583| getResult(): [IntegerLiteralExpr] 2
3521
+ # 581| getPattern(0): [NamedPattern] a
3522
+ # 585| getElement(1): [PatternBindingDecl] var ... = ...
3523
+ # 585| getInit(0): [SingleValueStmtExpr] SingleValueStmtExpr
3524
+ # 585| getStmt(): [IfStmt] if ... then { ... } else { ... }
3525
+ # 585| getCondition(): [StmtCondition] StmtCondition
3526
+ # 585| getElement(0): [ConditionElement] ... .<(_:_:) ...
3527
+ # 585| getBoolean(): [BinaryExpr] ... .<(_:_:) ...
3528
+ # 585| getFunction(): [MethodLookupExpr] .<(_:_:)
3529
+ # 585| getBase(): [TypeExpr] Int.Type
3530
+ # 585| getTypeRepr(): [TypeRepr] Int
3531
+ # 585| getMethodRef(): [DeclRefExpr] <(_:_:)
3532
+ # 585| getArgument(0): [Argument] : x
3533
+ # 585| getExpr(): [DeclRefExpr] x
3534
+ # 585| getArgument(1): [Argument] : 42
3535
+ # 585| getExpr(): [IntegerLiteralExpr] 42
3536
+ # 585| getBoolean().getFullyConverted(): [ParenExpr] (...)
3537
+ # 585| getThen(): [BraceStmt] { ... }
3538
+ # 585| getElement(0): [ThenStmt] ThenStmt
3539
+ # 585| getResult(): [IntegerLiteralExpr] 1
3540
+ # 585| getElse(): [BraceStmt] { ... }
3541
+ # 585| getElement(0): [ThenStmt] ThenStmt
3542
+ # 585| getResult(): [IntegerLiteralExpr] 2
3543
+ # 585| getPattern(0): [NamedPattern] b
3544
+ # 582| [ConcreteVarDecl] $match
3545
+ # 582| Type = Int
3546
+ # 587| [Comment] // ---
3547
+ # 587|
3481
3548
declarations.swift:
3482
3549
# 1| [StructDecl] Foo
3483
3550
# 2| getMember(0): [PatternBindingDecl] var ... = ...
0 commit comments