Skip to content

Commit 7406067

Browse files
committed
Document dynamic Cocoa entry points for analysis
gitx/gitx#404 gitx/gitx#42
1 parent 17e939e commit 7406067

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎Classes/GitXSwift.swift‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@ final class RepositoryFocusRefreshTracker: NSObject { // swiftlint:disable:this
5353
@objc(PBHistoryRefreshSelectionPolicy)
5454
final class HistoryRefreshSelectionPolicy: NSObject { // swiftlint:disable:this unused_declaration
5555
@objc(shouldFollowCheckedOutBranchWithStageSelected:viewedRef:previousHeadRef:)
56+
// Called through PBHistoryRefreshSelectionPolicy's Objective-C selector.
57+
// swiftlint:disable:next unused_declaration
5658
static func shouldFollowCheckedOutBranch(
5759
stageSelected: Bool,
5860
viewedRef: String?,
5961
previousHeadRef: String?
60-
) -> Bool { // swiftlint:disable:this unused_declaration
62+
) -> Bool {
6163
!stageSelected && viewedRef != nil && viewedRef == previousHeadRef
6264
}
6365
}

‎Classes/git/PBHistoryArrayController.swift‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
import Cocoa
1+
// NSArrayController is resolved through the Objective-C runtime when the nib loads.
2+
import Cocoa // swiftlint:disable:this unused_import
23

34
/// Keeps the mutable Working State row pinned above the arranged commit list.
45
@objc(PBHistoryArrayController)
5-
final class PBHistoryArrayController: NSArrayController {
6+
final class PBHistoryArrayController: NSArrayController { // swiftlint:disable:this unused_declaration
67
private var storedPinnedObject: Any?
78

89
@objc dynamic var pinnedObject: Any? {

0 commit comments

Comments
 (0)