@@ -24,14 +24,14 @@ public struct Builder {
24
24
case staticInitializer( GlobalVariable )
25
25
}
26
26
27
- let insertAt : InsertionPoint
27
+ public let insertionPoint : InsertionPoint
28
28
let location : Location
29
29
private let notificationHandler : BridgedChangeNotificationHandler
30
30
private let notifyNewInstruction : ( Instruction ) -> ( )
31
31
32
32
/// Return 'nil' when inserting at the start of a function or in a global initializer.
33
33
public var insertionBlock : BasicBlock ? {
34
- switch insertAt {
34
+ switch insertionPoint {
35
35
case let . before( inst) :
36
36
return inst. parentBlock
37
37
case let . atEndOf( block) :
@@ -42,7 +42,7 @@ public struct Builder {
42
42
}
43
43
44
44
public var bridged : BridgedBuilder {
45
- switch insertAt {
45
+ switch insertionPoint {
46
46
case . before( let inst) :
47
47
return BridgedBuilder ( insertAt: . beforeInst, insertionObj: inst. bridged. obj,
48
48
loc: location. bridged)
@@ -73,7 +73,7 @@ public struct Builder {
73
73
public init ( insertAt: InsertionPoint , location: Location ,
74
74
_ notifyNewInstruction: @escaping ( Instruction ) -> ( ) ,
75
75
_ notificationHandler: BridgedChangeNotificationHandler ) {
76
- self . insertAt = insertAt
76
+ self . insertionPoint = insertAt
77
77
self . location = location;
78
78
self . notifyNewInstruction = notifyNewInstruction
79
79
self . notificationHandler = notificationHandler
0 commit comments