@@ -457,8 +457,8 @@ public class DBGConsoleLog: IDEActivityLogSection {
457457}
458458
459459public class IDEActivityLogAnalyzerControlFlowStepEdge : Encodable {
460- let startLocation : DVTDocumentLocation
461- let endLocation : DVTDocumentLocation
460+ public let startLocation : DVTDocumentLocation
461+ public let endLocation : DVTDocumentLocation
462462
463463 public init ( startLocation: DVTDocumentLocation , endLocation: DVTDocumentLocation ) {
464464 self . startLocation = startLocation
@@ -468,9 +468,9 @@ public class IDEActivityLogAnalyzerControlFlowStepEdge: Encodable {
468468
469469public class IDEActivityLogAnalyzerEventStepMessage : IDEActivityLogMessage {
470470
471- let parentIndex : UInt64
472- let description : String
473- let callDepth : UInt64
471+ public let parentIndex : UInt64
472+ public let description : String
473+ public let callDepth : UInt64
474474
475475 public init ( title: String ,
476476 shortTitle: String ,
@@ -520,3 +520,51 @@ public class IDEActivityLogAnalyzerEventStepMessage: IDEActivityLogMessage {
520520 try container. encode ( callDepth, forKey: . callDepth)
521521 }
522522}
523+
524+ // MARK: IDEInterfaceBuilderKit
525+
526+ public class IBMemberID : Encodable {
527+ public let memberIdentifier : String
528+
529+ public init ( memberIdentifier: String ) {
530+ self . memberIdentifier = memberIdentifier
531+ }
532+ }
533+
534+ public class IBAttributeSearchLocation : Encodable {
535+ public let offsetFromStart : UInt64
536+ public let offsetFromEnd : UInt64
537+ public let keyPath : String
538+
539+ public init ( offsetFromStart: UInt64 , offsetFromEnd: UInt64 , keyPath: String ) {
540+ self . offsetFromEnd = offsetFromEnd
541+ self . offsetFromStart = offsetFromStart
542+ self . keyPath = keyPath
543+ }
544+ }
545+
546+ public class IBDocumentMemberLocation : DVTDocumentLocation {
547+ public let memberIdentifier : IBMemberID
548+ public let attributeSearchLocation : IBAttributeSearchLocation ?
549+
550+ public init ( documentURLString: String ,
551+ timestamp: Double ,
552+ memberIdentifier: IBMemberID ,
553+ attributeSearchLocation: IBAttributeSearchLocation ? ) {
554+ self . memberIdentifier = memberIdentifier
555+ self . attributeSearchLocation = attributeSearchLocation
556+ super. init ( documentURLString: documentURLString, timestamp: timestamp)
557+ }
558+
559+ private enum CodingKeys : String , CodingKey {
560+ case memberIdentifier
561+ case attributeSearchLocation
562+ }
563+
564+ override public func encode( to encoder: Encoder ) throws {
565+ try super. encode ( to: encoder)
566+ var container = encoder. container ( keyedBy: CodingKeys . self)
567+ try container. encode ( memberIdentifier, forKey: . memberIdentifier)
568+ try container. encode ( attributeSearchLocation, forKey: . attributeSearchLocation)
569+ }
570+ }
0 commit comments