Skip to content

Commit 8fec7de

Browse files
committed
Convert #file to #fileID for debug purposes (#708)
1 parent 32efa48 commit 8fec7de

File tree

3 files changed

+996
-996
lines changed

3 files changed

+996
-996
lines changed

Sources/ComposableArchitecture/Internal/Deprecations.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ extension Reducer {
4848
action toLocalAction: CasePath<GlobalAction, (Int, Action)>,
4949
environment toLocalEnvironment: @escaping (GlobalEnvironment) -> Environment,
5050
breakpointOnNil: Bool = true,
51-
_ file: StaticString = #file,
51+
_ file: StaticString = #fileID,
5252
_ line: UInt = #line
5353
) -> Reducer<GlobalState, GlobalAction, GlobalEnvironment> {
5454
.init { globalState, globalAction, globalEnvironment in

Sources/ComposableArchitecture/Reducer.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ public struct Reducer<State, Action, Environment> {
463463
action toLocalAction: CasePath<GlobalAction, Action>,
464464
environment toLocalEnvironment: @escaping (GlobalEnvironment) -> Environment,
465465
breakpointOnNil: Bool = true,
466-
_ file: StaticString = #file,
466+
_ file: StaticString = #fileID,
467467
_ line: UInt = #line
468468
) -> Reducer<GlobalState, GlobalAction, GlobalEnvironment> {
469469
.init { globalState, globalAction, globalEnvironment in
@@ -672,7 +672,7 @@ public struct Reducer<State, Action, Environment> {
672672
/// - Returns: A reducer that works on optional state.
673673
public func optional(
674674
breakpointOnNil: Bool = true,
675-
_ file: StaticString = #file,
675+
_ file: StaticString = #fileID,
676676
_ line: UInt = #line
677677
) -> Reducer<
678678
State?, Action, Environment
@@ -758,7 +758,7 @@ public struct Reducer<State, Action, Environment> {
758758
action toLocalAction: CasePath<GlobalAction, (ID, Action)>,
759759
environment toLocalEnvironment: @escaping (GlobalEnvironment) -> Environment,
760760
breakpointOnNil: Bool = true,
761-
_ file: StaticString = #file,
761+
_ file: StaticString = #fileID,
762762
_ line: UInt = #line
763763

764764
) -> Reducer<GlobalState, GlobalAction, GlobalEnvironment> {
@@ -830,7 +830,7 @@ public struct Reducer<State, Action, Environment> {
830830
action toLocalAction: CasePath<GlobalAction, (Key, Action)>,
831831
environment toLocalEnvironment: @escaping (GlobalEnvironment) -> Environment,
832832
breakpointOnNil: Bool = true,
833-
_ file: StaticString = #file,
833+
_ file: StaticString = #fileID,
834834
_ line: UInt = #line
835835
) -> Reducer<GlobalState, GlobalAction, GlobalEnvironment> {
836836
.init { globalState, globalAction, globalEnvironment in

0 commit comments

Comments
 (0)