@@ -24,14 +24,14 @@ public struct Builder {
2424 case staticInitializer( GlobalVariable )
2525 }
2626
27- let insertAt : InsertionPoint
27+ public let insertionPoint : InsertionPoint
2828 let location : Location
2929 private let notificationHandler : BridgedChangeNotificationHandler
3030 private let notifyNewInstruction : ( Instruction ) -> ( )
3131
3232 /// Return 'nil' when inserting at the start of a function or in a global initializer.
3333 public var insertionBlock : BasicBlock ? {
34- switch insertAt {
34+ switch insertionPoint {
3535 case let . before( inst) :
3636 return inst. parentBlock
3737 case let . atEndOf( block) :
@@ -42,7 +42,7 @@ public struct Builder {
4242 }
4343
4444 public var bridged : BridgedBuilder {
45- switch insertAt {
45+ switch insertionPoint {
4646 case . before( let inst) :
4747 return BridgedBuilder ( insertAt: . beforeInst, insertionObj: inst. bridged. obj,
4848 loc: location. bridged)
@@ -73,7 +73,7 @@ public struct Builder {
7373 public init ( insertAt: InsertionPoint , location: Location ,
7474 _ notifyNewInstruction: @escaping ( Instruction ) -> ( ) ,
7575 _ notificationHandler: BridgedChangeNotificationHandler ) {
76- self . insertAt = insertAt
76+ self . insertionPoint = insertAt
7777 self . location = location;
7878 self . notifyNewInstruction = notifyNewInstruction
7979 self . notificationHandler = notificationHandler
0 commit comments