Skip to content

Commit

Permalink
PAI-98 Code review changes. Using String(describing: Self.self).
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartosz Janda committed Mar 29, 2017
1 parent b5f0559 commit 7ffea42
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion GeneratedModels/HealthAlerts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ extension HealthPermissionPage {
public struct HealthAuthorizationDontAllowAlert: SystemAlert, HealthAlertOk {

/// Represents all possible messages in `HealthAuthorizationDontAllowAlert` service alert.
public static let messages = readMessages(from: "HealthAuthorizationDontAllowAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down
6 changes: 3 additions & 3 deletions GeneratedModels/LocationAlerts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ extension LocationAlertOk {
public struct LocationAlwaysAlert: SystemAlert, LocationAlertAllow, LocationAlertDeny {

/// Represents all possible messages in `LocationAlwaysAlert` service alert.
public static let messages = readMessages(from: "LocationAlwaysAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -108,7 +108,7 @@ public struct LocationAlwaysAlert: SystemAlert, LocationAlertAllow, LocationAler
public struct LocationUpgradeWhenInUseAlwaysAlert: SystemAlert, LocationAlertAllow, LocationAlertCancel {

/// Represents all possible messages in `LocationUpgradeWhenInUseAlwaysAlert` service alert.
public static let messages = readMessages(from: "LocationUpgradeWhenInUseAlwaysAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -153,7 +153,7 @@ public struct LocationUpgradeWhenInUseAlwaysAlert: SystemAlert, LocationAlertAll
public struct LocationWhenInUseAlert: SystemAlert, LocationAlertAllow, LocationAlertDeny {

/// Represents all possible messages in `LocationWhenInUseAlert` service alert.
public static let messages = readMessages(from: "LocationWhenInUseAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down
26 changes: 13 additions & 13 deletions GeneratedModels/ServiceRequestAlerts.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ extension SystemAlertDeny {
public struct AddressBookAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `AddressBookAlert` service alert.
public static let messages = readMessages(from: "AddressBookAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -92,7 +92,7 @@ public struct AddressBookAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {
public struct BluetoothPeripheralAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `BluetoothPeripheralAlert` service alert.
public static let messages = readMessages(from: "BluetoothPeripheralAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -137,7 +137,7 @@ public struct BluetoothPeripheralAlert: SystemAlert, SystemAlertAllow, SystemAle
public struct CalendarAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `CalendarAlert` service alert.
public static let messages = readMessages(from: "CalendarAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -182,7 +182,7 @@ public struct CalendarAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {
public struct CallsAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `CallsAlert` service alert.
public static let messages = readMessages(from: "CallsAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -227,7 +227,7 @@ public struct CallsAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {
public struct CameraAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `CameraAlert` service alert.
public static let messages = readMessages(from: "CameraAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -272,7 +272,7 @@ public struct CameraAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {
public struct MediaLibraryAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `MediaLibraryAlert` service alert.
public static let messages = readMessages(from: "MediaLibraryAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -317,7 +317,7 @@ public struct MediaLibraryAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny
public struct MicrophoneAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `MicrophoneAlert` service alert.
public static let messages = readMessages(from: "MicrophoneAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -362,7 +362,7 @@ public struct MicrophoneAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {
public struct MotionAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `MotionAlert` service alert.
public static let messages = readMessages(from: "MotionAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -407,7 +407,7 @@ public struct MotionAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {
public struct PhotosAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `PhotosAlert` service alert.
public static let messages = readMessages(from: "PhotosAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -452,7 +452,7 @@ public struct PhotosAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {
public struct RemindersAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `RemindersAlert` service alert.
public static let messages = readMessages(from: "RemindersAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -497,7 +497,7 @@ public struct RemindersAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {
public struct SiriAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `SiriAlert` service alert.
public static let messages = readMessages(from: "SiriAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -542,7 +542,7 @@ public struct SiriAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {
public struct SpeechRecognitionAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `SpeechRecognitionAlert` service alert.
public static let messages = readMessages(from: "SpeechRecognitionAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down Expand Up @@ -587,7 +587,7 @@ public struct SpeechRecognitionAlert: SystemAlert, SystemAlertAllow, SystemAlert
public struct WillowAlert: SystemAlert, SystemAlertAllow, SystemAlertDeny {

/// Represents all possible messages in `WillowAlert` service alert.
public static let messages = readMessages(from: "WillowAlert")
public static let messages = readMessages()

/// System service alert element.
public var alert: XCUIElement
Expand Down
2 changes: 1 addition & 1 deletion ModelGenie/health_alerts_generator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func generateHealthAlerts() {
writer.beginIndent()
writer.append(line: "")
writer.append(line: "/// Represents all possible messages in `\(item.key)` service alert.")
writer.append(line: "public static let messages = readMessages(from: \"\(item.key)\")")
writer.append(line: "public static let messages = readMessages()")
writer.finishIndent()
writer.beginIndent()
writer.append(line: "")
Expand Down
2 changes: 1 addition & 1 deletion ModelGenie/location_alerts_generator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func generateLocationAlerts() {
writer.beginIndent()
writer.append(line: "")
writer.append(line: "/// Represents all possible messages in `\(item.key)` service alert.")
writer.append(line: "public static let messages = readMessages(from: \"\(item.key)\")")
writer.append(line: "public static let messages = readMessages()")
writer.finishIndent()
writer.beginIndent()
writer.append(line: "")
Expand Down
2 changes: 1 addition & 1 deletion ModelGenie/service_request_alerts_generator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func generateServiceRequestAlerts() {
writer.beginIndent()
writer.append(line: "")
writer.append(line: "/// Represents all possible messages in `\(item.key)` service alert.")
writer.append(line: "public static let messages = readMessages(from: \"\(item.key)\")")
writer.append(line: "public static let messages = readMessages()")
writer.finishIndent()
writer.beginIndent()
writer.append(line: "")
Expand Down

0 comments on commit 7ffea42

Please sign in to comment.