@@ -3384,6 +3384,100 @@ cfg.swift:
33843384# 555| getBody(): [BraceStmt] { ... }
33853385# 555| getElement(0): [ReturnStmt] return ...
33863386# 555| getResult(): [IntegerLiteralExpr] 1
3387+ # 558| [Comment] // ---
3388+ # 558|
3389+ # 560| [ProtocolDecl] MyProtocol
3390+ #-----| getGenericTypeParam(0): [GenericTypeParamDecl] Self
3391+ # 561| getMember(0): [NamedFunction] source()
3392+ # 561| InterfaceType = <Self where Self : MyProtocol> (Self) -> () -> Int
3393+ # 561| getSelfParam(): [ParamDecl] self
3394+ # 561| Type = Self
3395+ # 564| [ClassDecl] MyProcotolImpl
3396+ # 565| getMember(0): [NamedFunction] source()
3397+ # 565| InterfaceType = (MyProcotolImpl) -> () -> Int
3398+ # 565| getSelfParam(): [ParamDecl] self
3399+ # 565| Type = MyProcotolImpl
3400+ # 565| getBody(): [BraceStmt] { ... }
3401+ # 565| getElement(0): [ReturnStmt] return ...
3402+ # 565| getResult(): [IntegerLiteralExpr] 0
3403+ # 564| getMember(1): [Deinitializer] MyProcotolImpl.deinit()
3404+ # 564| InterfaceType = (MyProcotolImpl) -> () -> ()
3405+ # 564| getSelfParam(): [ParamDecl] self
3406+ # 564| Type = MyProcotolImpl
3407+ # 564| getBody(): [BraceStmt] { ... }
3408+ # 564| getMember(2): [Initializer] MyProcotolImpl.init()
3409+ # 564| InterfaceType = (MyProcotolImpl.Type) -> () -> MyProcotolImpl
3410+ # 564| getSelfParam(): [ParamDecl] self
3411+ # 564| Type = MyProcotolImpl
3412+ # 564| getBody(): [BraceStmt] { ... }
3413+ # 564| getElement(0): [ReturnStmt] return
3414+ # 568| [NamedFunction] getMyProtocol()
3415+ # 568| InterfaceType = () -> MyProtocol
3416+ # 568| getBody(): [BraceStmt] { ... }
3417+ # 568| getElement(0): [ReturnStmt] return ...
3418+ # 568| getResult(): [CallExpr] call to MyProcotolImpl.init()
3419+ # 568| getFunction(): [MethodLookupExpr] MyProcotolImpl.init()
3420+ # 568| getBase(): [TypeExpr] MyProcotolImpl.Type
3421+ # 568| getTypeRepr(): [TypeRepr] MyProcotolImpl
3422+ # 568| getMethodRef(): [DeclRefExpr] MyProcotolImpl.init()
3423+ # 568| getResult().getFullyConverted(): [ErasureExpr] (MyProtocol) ...
3424+ # 569| [NamedFunction] getMyProtocolImpl()
3425+ # 569| InterfaceType = () -> MyProcotolImpl
3426+ # 569| getBody(): [BraceStmt] { ... }
3427+ # 569| getElement(0): [ReturnStmt] return ...
3428+ # 569| getResult(): [CallExpr] call to MyProcotolImpl.init()
3429+ # 569| getFunction(): [MethodLookupExpr] MyProcotolImpl.init()
3430+ # 569| getBase(): [TypeExpr] MyProcotolImpl.Type
3431+ # 569| getTypeRepr(): [TypeRepr] MyProcotolImpl
3432+ # 569| getMethodRef(): [DeclRefExpr] MyProcotolImpl.init()
3433+ # 571| [NamedFunction] sink(arg:)
3434+ # 571| InterfaceType = (Int) -> ()
3435+ # 571| getParam(0): [ParamDecl] arg
3436+ # 571| Type = Int
3437+ # 571| getBody(): [BraceStmt] { ... }
3438+ # 573| [NamedFunction] testOpenExistentialExpr(x:y:)
3439+ # 573| InterfaceType = (MyProtocol, MyProcotolImpl) -> ()
3440+ # 573| getParam(0): [ParamDecl] x
3441+ # 573| Type = MyProtocol
3442+ # 573| getParam(1): [ParamDecl] y
3443+ # 573| Type = MyProcotolImpl
3444+ # 573| getBody(): [BraceStmt] { ... }
3445+ # 574| getElement(0): [CallExpr] call to sink(arg:)
3446+ # 574| getFunction(): [DeclRefExpr] sink(arg:)
3447+ # 574| getArgument(0): [Argument] arg: OpenExistentialExpr
3448+ # 574| getExpr(): [OpenExistentialExpr] OpenExistentialExpr
3449+ # 574| getSubExpr(): [CallExpr] call to source()
3450+ # 574| getFunction(): [MethodLookupExpr] .source()
3451+ # 574| getBase(): [OpaqueValueExpr] OpaqueValueExpr
3452+ # 574| getMethodRef(): [DeclRefExpr] source()
3453+ # 574| getExistential(): [DeclRefExpr] x
3454+ # 575| getElement(1): [CallExpr] call to sink(arg:)
3455+ # 575| getFunction(): [DeclRefExpr] sink(arg:)
3456+ # 575| getArgument(0): [Argument] arg: call to source()
3457+ # 575| getExpr(): [CallExpr] call to source()
3458+ # 575| getFunction(): [MethodLookupExpr] .source()
3459+ # 575| getBase(): [DeclRefExpr] y
3460+ # 575| getMethodRef(): [DeclRefExpr] source()
3461+ # 576| getElement(2): [CallExpr] call to sink(arg:)
3462+ # 576| getFunction(): [DeclRefExpr] sink(arg:)
3463+ # 576| getArgument(0): [Argument] arg: OpenExistentialExpr
3464+ # 576| getExpr(): [OpenExistentialExpr] OpenExistentialExpr
3465+ # 576| getSubExpr(): [CallExpr] call to source()
3466+ # 576| getFunction(): [MethodLookupExpr] .source()
3467+ # 576| getBase(): [OpaqueValueExpr] OpaqueValueExpr
3468+ # 576| getMethodRef(): [DeclRefExpr] source()
3469+ # 576| getExistential(): [CallExpr] call to getMyProtocol()
3470+ # 576| getFunction(): [DeclRefExpr] getMyProtocol()
3471+ # 577| getElement(3): [CallExpr] call to sink(arg:)
3472+ # 577| getFunction(): [DeclRefExpr] sink(arg:)
3473+ # 577| getArgument(0): [Argument] arg: call to source()
3474+ # 577| getExpr(): [CallExpr] call to source()
3475+ # 577| getFunction(): [MethodLookupExpr] .source()
3476+ # 577| getBase(): [CallExpr] call to getMyProtocolImpl()
3477+ # 577| getFunction(): [DeclRefExpr] getMyProtocolImpl()
3478+ # 577| getMethodRef(): [DeclRefExpr] source()
3479+ # 580| [Comment] // ---
3480+ # 580|
33873481declarations.swift:
33883482# 1| [StructDecl] Foo
33893483# 2| getMember(0): [PatternBindingDecl] var ... = ...
0 commit comments