Skip to content

Commit b73f74f

Browse files
authored
Make file/line parameters explicit (#729)
1 parent 54b6247 commit b73f74f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Sources/ComposableArchitecture/Internal/Deprecations.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ extension Reducer {
4646
action toLocalAction: CasePath<GlobalAction, (Int, Action)>,
4747
environment toLocalEnvironment: @escaping (GlobalEnvironment) -> Environment,
4848
breakpointOnNil: Bool = true,
49-
_ file: StaticString = #fileID,
50-
_ line: UInt = #line
49+
file: StaticString = #fileID,
50+
line: UInt = #line
5151
) -> Reducer<GlobalState, GlobalAction, GlobalEnvironment> {
5252
.init { globalState, globalAction, globalEnvironment in
5353
guard let (index, localAction) = toLocalAction.extract(from: globalAction) else {

Sources/ComposableArchitecture/Reducer.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ 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 = #fileID,
467-
_ line: UInt = #line
466+
file: StaticString = #fileID,
467+
line: UInt = #line
468468
) -> Reducer<GlobalState, GlobalAction, GlobalEnvironment> {
469469
.init { globalState, globalAction, globalEnvironment in
470470
guard let localAction = toLocalAction.extract(from: globalAction) else { return .none }
@@ -672,8 +672,8 @@ 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 = #fileID,
676-
_ line: UInt = #line
675+
file: StaticString = #fileID,
676+
line: UInt = #line
677677
) -> Reducer<
678678
State?, Action, Environment
679679
> {
@@ -757,8 +757,8 @@ 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 = #fileID,
761-
_ line: UInt = #line
760+
file: StaticString = #fileID,
761+
line: UInt = #line
762762
) -> Reducer<GlobalState, GlobalAction, GlobalEnvironment> {
763763
.init { globalState, globalAction, globalEnvironment in
764764
guard let (id, localAction) = toLocalAction.extract(from: globalAction) else { return .none }
@@ -828,8 +828,8 @@ 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 = #fileID,
832-
_ line: UInt = #line
831+
file: StaticString = #fileID,
832+
line: UInt = #line
833833
) -> Reducer<GlobalState, GlobalAction, GlobalEnvironment> {
834834
.init { globalState, globalAction, globalEnvironment in
835835
guard let (key, localAction) = toLocalAction.extract(from: globalAction) else { return .none }

0 commit comments

Comments
 (0)