From dac019e1fb0763bc48e451d2fe0debb56d753934 Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Wed, 11 Aug 2021 11:03:37 -0400 Subject: [PATCH] Convert #file to #fileID for debug purposes --- .../Internal/Deprecations.swift | 2 +- Sources/ComposableArchitecture/Reducer.swift | 8 ++++---- .../SwiftUI/SwitchStore.swift | 18 +++++++++--------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Sources/ComposableArchitecture/Internal/Deprecations.swift b/Sources/ComposableArchitecture/Internal/Deprecations.swift index ee392b068f66..7844395053e7 100644 --- a/Sources/ComposableArchitecture/Internal/Deprecations.swift +++ b/Sources/ComposableArchitecture/Internal/Deprecations.swift @@ -46,7 +46,7 @@ extension Reducer { action toLocalAction: CasePath, environment toLocalEnvironment: @escaping (GlobalEnvironment) -> Environment, breakpointOnNil: Bool = true, - _ file: StaticString = #file, + _ file: StaticString = #fileID, _ line: UInt = #line ) -> Reducer { .init { globalState, globalAction, globalEnvironment in diff --git a/Sources/ComposableArchitecture/Reducer.swift b/Sources/ComposableArchitecture/Reducer.swift index b4f23f507ca9..41cec06c193f 100644 --- a/Sources/ComposableArchitecture/Reducer.swift +++ b/Sources/ComposableArchitecture/Reducer.swift @@ -463,7 +463,7 @@ public struct Reducer { action toLocalAction: CasePath, environment toLocalEnvironment: @escaping (GlobalEnvironment) -> Environment, breakpointOnNil: Bool = true, - _ file: StaticString = #file, + _ file: StaticString = #fileID, _ line: UInt = #line ) -> Reducer { .init { globalState, globalAction, globalEnvironment in @@ -672,7 +672,7 @@ public struct Reducer { /// - Returns: A reducer that works on optional state. public func optional( breakpointOnNil: Bool = true, - _ file: StaticString = #file, + _ file: StaticString = #fileID, _ line: UInt = #line ) -> Reducer< State?, Action, Environment @@ -757,7 +757,7 @@ public struct Reducer { action toLocalAction: CasePath, environment toLocalEnvironment: @escaping (GlobalEnvironment) -> Environment, breakpointOnNil: Bool = true, - _ file: StaticString = #file, + _ file: StaticString = #fileID, _ line: UInt = #line ) -> Reducer { .init { globalState, globalAction, globalEnvironment in @@ -828,7 +828,7 @@ public struct Reducer { action toLocalAction: CasePath, environment toLocalEnvironment: @escaping (GlobalEnvironment) -> Environment, breakpointOnNil: Bool = true, - _ file: StaticString = #file, + _ file: StaticString = #fileID, _ line: UInt = #line ) -> Reducer { .init { globalState, globalAction, globalEnvironment in diff --git a/Sources/ComposableArchitecture/SwiftUI/SwitchStore.swift b/Sources/ComposableArchitecture/SwiftUI/SwitchStore.swift index 125890c3cf2a..37b135bb50fd 100644 --- a/Sources/ComposableArchitecture/SwiftUI/SwitchStore.swift +++ b/Sources/ComposableArchitecture/SwiftUI/SwitchStore.swift @@ -162,7 +162,7 @@ extension SwitchStore { public init( _ store: Store, - file: StaticString = #file, + file: StaticString = #fileID, line: UInt = #line, @ViewBuilder content: @escaping () -> CaseLet ) @@ -221,7 +221,7 @@ extension SwitchStore { public init( _ store: Store, - file: StaticString = #file, + file: StaticString = #fileID, line: UInt = #line, @ViewBuilder content: @escaping () -> TupleView< ( @@ -301,7 +301,7 @@ extension SwitchStore { public init( _ store: Store, - file: StaticString = #file, + file: StaticString = #fileID, line: UInt = #line, @ViewBuilder content: @escaping () -> TupleView< ( @@ -398,7 +398,7 @@ extension SwitchStore { State4, Action4, Content4 >( _ store: Store, - file: StaticString = #file, + file: StaticString = #fileID, line: UInt = #line, @ViewBuilder content: @escaping () -> TupleView< ( @@ -508,7 +508,7 @@ extension SwitchStore { State5, Action5, Content5 >( _ store: Store, - file: StaticString = #file, + file: StaticString = #fileID, line: UInt = #line, @ViewBuilder content: @escaping () -> TupleView< ( @@ -631,7 +631,7 @@ extension SwitchStore { State6, Action6, Content6 >( _ store: Store, - file: StaticString = #file, + file: StaticString = #fileID, line: UInt = #line, @ViewBuilder content: @escaping () -> TupleView< ( @@ -767,7 +767,7 @@ extension SwitchStore { State7, Action7, Content7 >( _ store: Store, - file: StaticString = #file, + file: StaticString = #fileID, line: UInt = #line, @ViewBuilder content: @escaping () -> TupleView< ( @@ -916,7 +916,7 @@ extension SwitchStore { State8, Action8, Content8 >( _ store: Store, - file: StaticString = #file, + file: StaticString = #fileID, line: UInt = #line, @ViewBuilder content: @escaping () -> TupleView< ( @@ -1078,7 +1078,7 @@ extension SwitchStore { State9, Action9, Content9 >( _ store: Store, - file: StaticString = #file, + file: StaticString = #fileID, line: UInt = #line, @ViewBuilder content: @escaping () -> TupleView< (