Skip to content

Commit 2d1e21b

Browse files
authored
Convert #file to #fileID for debug purposes (#708)
1 parent 65b9f7b commit 2d1e21b

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

Sources/ComposableArchitecture/Internal/Deprecations.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ extension Reducer {
4646
action toLocalAction: CasePath<GlobalAction, (Int, Action)>,
4747
environment toLocalEnvironment: @escaping (GlobalEnvironment) -> Environment,
4848
breakpointOnNil: Bool = true,
49-
_ file: StaticString = #file,
49+
_ file: StaticString = #fileID,
5050
_ line: UInt = #line
5151
) -> Reducer<GlobalState, GlobalAction, GlobalEnvironment> {
5252
.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
@@ -757,7 +757,7 @@ public struct Reducer<State, Action, Environment> {
757757
action toLocalAction: CasePath<GlobalAction, (ID, Action)>,
758758
environment toLocalEnvironment: @escaping (GlobalEnvironment) -> Environment,
759759
breakpointOnNil: Bool = true,
760-
_ file: StaticString = #file,
760+
_ file: StaticString = #fileID,
761761
_ line: UInt = #line
762762
) -> Reducer<GlobalState, GlobalAction, GlobalEnvironment> {
763763
.init { globalState, globalAction, globalEnvironment in
@@ -828,7 +828,7 @@ public struct Reducer<State, Action, Environment> {
828828
action toLocalAction: CasePath<GlobalAction, (Key, Action)>,
829829
environment toLocalEnvironment: @escaping (GlobalEnvironment) -> Environment,
830830
breakpointOnNil: Bool = true,
831-
_ file: StaticString = #file,
831+
_ file: StaticString = #fileID,
832832
_ line: UInt = #line
833833
) -> Reducer<GlobalState, GlobalAction, GlobalEnvironment> {
834834
.init { globalState, globalAction, globalEnvironment in

Sources/ComposableArchitecture/SwiftUI/SwitchStore.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ extension SwitchStore {
162162

163163
public init<State1, Action1, Content1>(
164164
_ store: Store<State, Action>,
165-
file: StaticString = #file,
165+
file: StaticString = #fileID,
166166
line: UInt = #line,
167167
@ViewBuilder content: @escaping () -> CaseLet<State, Action, State1, Action1, Content1>
168168
)
@@ -221,7 +221,7 @@ extension SwitchStore {
221221

222222
public init<State1, Action1, Content1, State2, Action2, Content2>(
223223
_ store: Store<State, Action>,
224-
file: StaticString = #file,
224+
file: StaticString = #fileID,
225225
line: UInt = #line,
226226
@ViewBuilder content: @escaping () -> TupleView<
227227
(
@@ -301,7 +301,7 @@ extension SwitchStore {
301301

302302
public init<State1, Action1, Content1, State2, Action2, Content2, State3, Action3, Content3>(
303303
_ store: Store<State, Action>,
304-
file: StaticString = #file,
304+
file: StaticString = #fileID,
305305
line: UInt = #line,
306306
@ViewBuilder content: @escaping () -> TupleView<
307307
(
@@ -398,7 +398,7 @@ extension SwitchStore {
398398
State4, Action4, Content4
399399
>(
400400
_ store: Store<State, Action>,
401-
file: StaticString = #file,
401+
file: StaticString = #fileID,
402402
line: UInt = #line,
403403
@ViewBuilder content: @escaping () -> TupleView<
404404
(
@@ -508,7 +508,7 @@ extension SwitchStore {
508508
State5, Action5, Content5
509509
>(
510510
_ store: Store<State, Action>,
511-
file: StaticString = #file,
511+
file: StaticString = #fileID,
512512
line: UInt = #line,
513513
@ViewBuilder content: @escaping () -> TupleView<
514514
(
@@ -631,7 +631,7 @@ extension SwitchStore {
631631
State6, Action6, Content6
632632
>(
633633
_ store: Store<State, Action>,
634-
file: StaticString = #file,
634+
file: StaticString = #fileID,
635635
line: UInt = #line,
636636
@ViewBuilder content: @escaping () -> TupleView<
637637
(
@@ -767,7 +767,7 @@ extension SwitchStore {
767767
State7, Action7, Content7
768768
>(
769769
_ store: Store<State, Action>,
770-
file: StaticString = #file,
770+
file: StaticString = #fileID,
771771
line: UInt = #line,
772772
@ViewBuilder content: @escaping () -> TupleView<
773773
(
@@ -916,7 +916,7 @@ extension SwitchStore {
916916
State8, Action8, Content8
917917
>(
918918
_ store: Store<State, Action>,
919-
file: StaticString = #file,
919+
file: StaticString = #fileID,
920920
line: UInt = #line,
921921
@ViewBuilder content: @escaping () -> TupleView<
922922
(
@@ -1078,7 +1078,7 @@ extension SwitchStore {
10781078
State9, Action9, Content9
10791079
>(
10801080
_ store: Store<State, Action>,
1081-
file: StaticString = #file,
1081+
file: StaticString = #fileID,
10821082
line: UInt = #line,
10831083
@ViewBuilder content: @escaping () -> TupleView<
10841084
(

0 commit comments

Comments
 (0)