Skip to content

Commit 4073512

Browse files
Remove “purpose” from all comments (#876)
1 parent ecfc533 commit 4073512

File tree

761 files changed

+0
-2415
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

761 files changed

+0
-2415
lines changed

Sources/NodesGenerator/Resources/Stencils/Analytics.stencil

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,12 @@ import {{ import }}
1717
*
1818
*/
1919

20-
/// PURPOSE:
2120
/// The interface for analytics tracked by this Node.
2221
///
2322
/// Add requirements to this protocol to provide analytics tracking methods for this Node.
2423
/// @mockable
2524
internal protocol {{ node_name }}Analytics: AnyObject {}
2625

27-
/// PURPOSE:
2826
/// Custom analytics implementation for this Node.
2927
{% if analytics_properties %}
3028
internal final class {{ node_name }}AnalyticsImp {

Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {{ import }}
66
{% endfor %}
77
{% endif %}
88

9-
/// PURPOSE:
109
/// The interface of the Flow.
1110
/// @mockable
1211
@MainActor
@@ -16,7 +15,6 @@ internal protocol {{ node_name }}Flow: {{ plugin_list_name }}Flow {}
1615
internal protocol {{ node_name }}Flow: {{ view_controllable_flow_type }} {}
1716
{% endif %}
1817

19-
/// PURPOSE:
2018
/// Declares the dependencies required by this Node that will be injected (not created by this Node itself).
2119
/// @mockable
2220
@MainActor
@@ -30,21 +28,18 @@ public protocol {{ node_name }}Dependency: Dependency {
3028
public protocol {{ node_name }}Dependency: Dependency {}
3129
{% endif %}
3230

33-
/// PURPOSE:
3431
/// A dependency needed by the Builder (such as a Listener), passed in from the caller (i.e. is not on the DI graph).
3532
///
3633
/// Can be a tuple or struct containing multiple values when necessary.
3734
internal typealias {{ node_name }}DynamicBuildDependency = {{ node_name }}Listener
3835

39-
/// PURPOSE:
4036
/// A dependency used by the Component itself, passed into the Component's initializer (in the Component factory).
4137
///
4238
/// Can be a tuple or struct containing multiple values when necessary.
4339
internal typealias {{ node_name }}DynamicComponentDependency = Void
4440

4541
// MARK: - Component
4642

47-
/// PURPOSE:
4843
/// Declares dependencies that are owned by this Node.
4944
public final class {{ node_name }}Component: Component
5045
<
@@ -121,7 +116,6 @@ public final class {{ node_name }}Component: Component
121116
{% if is_periphery_comment_enabled %}
122117
// periphery:ignore
123118
{% endif %}
124-
/// PURPOSE:
125119
/// The Builder interface (available to mock for testability).
126120
/// @mockable
127121
@MainActor
@@ -138,7 +132,6 @@ internal protocol {{ node_name }}Builder: AnyObject {
138132
{% if is_periphery_comment_enabled %}
139133
// periphery:ignore
140134
{% endif %}
141-
/// PURPOSE:
142135
/// Concrete implementation of the Builder, where everything is created and associated.
143136
internal final class {{ node_name }}BuilderImp: AbstractBuilder
144137
<

Sources/NodesGenerator/Resources/Stencils/Builder.stencil

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {{ import }}
66
{% endfor %}
77
{% endif %}
88

9-
/// PURPOSE:
109
/// The interface of the Flow.
1110
/// @mockable
1211
@MainActor
@@ -25,7 +24,6 @@ internal protocol {{ node_name }}Flow: Flow {}
2524
{% endif %}
2625
{% if node_name != "App" %}
2726

28-
/// PURPOSE:
2927
/// Declares the dependencies required by this Node that will be injected (not created by this Node itself).
3028
/// @mockable
3129
@MainActor
@@ -40,7 +38,6 @@ public protocol {{ node_name }}Dependency: Dependency {}
4038
{% endif %}
4139
{% endif %}
4240

43-
/// PURPOSE:
4441
/// A dependency needed by the Builder (such as a Listener), passed in from the caller (i.e. is not on the DI graph).
4542
///
4643
/// Can be a tuple or struct containing multiple values when necessary.
@@ -52,15 +49,13 @@ internal typealias {{ node_name }}DynamicBuildDependency = Void
5249
internal typealias {{ node_name }}DynamicBuildDependency = ({{ node_name }}Listener, {{ node_name }}ViewControllable)
5350
{% endif %}
5451

55-
/// PURPOSE:
5652
/// A dependency used by the Component itself, passed into the Component's initializer (in the Component factory).
5753
///
5854
/// Can be a tuple or struct containing multiple values when necessary.
5955
internal typealias {{ node_name }}DynamicComponentDependency = Void
6056

6157
// MARK: - Component
6258

63-
/// PURPOSE:
6459
/// Declares dependencies that are owned by this Node.
6560
{% if node_name == "App" %}
6661
public final class {{ node_name }}Component: BootstrapComponent {
@@ -167,7 +162,6 @@ public final class {{ node_name }}Component: Component
167162
{% if is_periphery_comment_enabled %}
168163
// periphery:ignore
169164
{% endif %}
170-
/// PURPOSE:
171165
/// The Builder interface (available to mock for testability).
172166
/// @mockable
173167
@MainActor
@@ -193,7 +187,6 @@ internal protocol {{ node_name }}Builder: AnyObject {
193187
{% if is_periphery_comment_enabled %}
194188
// periphery:ignore
195189
{% endif %}
196-
/// PURPOSE:
197190
/// Concrete implementation of the Builder, where everything is created and associated.
198191
internal final class {{ node_name }}BuilderImp: AbstractBuilder
199192
<

Sources/NodesGenerator/Resources/Stencils/Context.stencil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ import {{ import }}
77
{% endif %}
88
{% if node_name != "App" %}
99

10-
/// PURPOSE:
1110
/// The Context delegates callbacks to its (external) Listener, typically the parent Context.
1211
/// @mockable
1312
@MainActor
1413
internal protocol {{ node_name }}Listener: AnyObject {}
1514
{% endif %}
1615

17-
/// PURPOSE:
1816
/// The interface that the Context will speak to the Flow through. Used to initiate navigation as
1917
/// an example.
2018
/// @mockable
@@ -32,7 +30,6 @@ internal protocol {{ node_name }}FlowInterface: Flow {
3230
internal protocol {{ node_name }}FlowInterface: Flow {}
3331
{% endif %}
3432

35-
/// PURPOSE:
3633
/// Contains the business logic of the Node. The lifecycle of the Node is bookended between the
3734
/// `didBecomeActive` and `willResignActive` methods.
3835
{% if context_generic_types %}

Sources/NodesGenerator/Resources/Stencils/Flow.stencil

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {{ import }}
66
{% endfor %}
77
{% endif %}
88

9-
/// PURPOSE:
109
/// The interface that the Flow will speak to the Context through. Used for informing the Context of
1110
/// presentation lifecycle events, as an example.
1211
/// @mockable
@@ -20,7 +19,6 @@ internal protocol {{ node_name }}ContextInterface: Context, RootListener {}
2019
{% else %}
2120
internal protocol {{ node_name }}ContextInterface: Context {}
2221

23-
/// PURPOSE:
2422
/// The interface of the View used for presenting the View of child Nodes. May inherit additional base
2523
/// protocols to add further pre-baked presentation behavior and/or add new methods for custom presentation
2624
/// implementation as necessary.
@@ -31,7 +29,6 @@ internal protocol {{ node_name }}ContextInterface: Context {}
3129
internal protocol {{ node_name }}ViewControllable: {{ view_controllable_type }} {}
3230
{% endif %}
3331

34-
/// PURPOSE:
3532
/// Responsible for presenting views and starting child Flows, and should not contain business logic.
3633
internal final class {{ node_name }}FlowImp: AbstractFlow
3734
<

Sources/NodesGenerator/Resources/Stencils/Plugin.stencil

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,11 @@ import {{ import }}
66
{% endfor %}
77
{% endif %}
88

9-
/// PURPOSE:
109
/// Declares the dependencies required by this Plugin that will be injected (not created by this Plugin itself).
1110
/// @mockable
1211
@MainActor
1312
public protocol {{ plugin_name }}PluginDependency: Dependency {}
1413

15-
/// PURPOSE:
1614
/// Declares dependencies that are owned by this Plugin.
1715
public final class {{ plugin_name }}PluginComponent: Component
1816
<
@@ -61,14 +59,12 @@ public final class {{ plugin_name }}PluginComponent: Component
6159
}
6260
}
6361

64-
/// PURPOSE:
6562
/// To provide additional state used in determining if the Plugin is enabled (can be any type relevant to the Plugin).
6663
internal typealias {{ plugin_name }}PluginStateType = Void
6764

6865
{% if is_periphery_comment_enabled %}
6966
// periphery:ignore
7067
{% endif %}
71-
/// PURPOSE:
7268
/// The Plugin interface (available to mock for testability).
7369
/// @mockable
7470
@MainActor
@@ -79,7 +75,6 @@ internal protocol {{ plugin_name }}Plugin {
7975
{% if is_periphery_comment_enabled %}
8076
// periphery:ignore
8177
{% endif %}
82-
/// PURPOSE:
8378
/// Concrete implementation of the Plugin.
8479
internal final class {{ plugin_name }}PluginImp: Plugin
8580
<

Sources/NodesGenerator/Resources/Stencils/PluginList.stencil

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {{ import }}
99
{% if is_periphery_comment_enabled %}
1010
// periphery:ignore
1111
{% endif %}
12-
/// PURPOSE:
1312
/// The common Flow interface.
1413
/// @mockable
1514
@MainActor
@@ -18,7 +17,6 @@ internal protocol {{ plugin_list_name }}Flow: {{ view_controllable_flow_type }}
1817
{% if is_periphery_comment_enabled %}
1918
// periphery:ignore
2019
{% endif %}
21-
/// PURPOSE:
2220
/// The common Listener interface.
2321
/// @mockable
2422
@MainActor
@@ -27,7 +25,6 @@ internal protocol {{ plugin_list_name }}Listener: AnyObject {}
2725
{% if is_periphery_comment_enabled %}
2826
// periphery:ignore
2927
{% endif %}
30-
/// PURPOSE:
3128
/// The common Builder interface.
3229
/// @mockable
3330
@MainActor
@@ -37,13 +34,11 @@ internal protocol {{ plugin_list_name }}Builder: AnyObject {
3734
) -> {{ plugin_list_name }}Flow
3835
}
3936

40-
/// PURPOSE:
4137
/// Declares the dependencies required by this Plugin List that will be injected (not created by this Plugin List itself).
4238
/// @mockable
4339
@MainActor
4440
public protocol {{ plugin_list_name }}PluginListDependency: Dependency {}
4541

46-
/// PURPOSE:
4742
/// Declares dependencies that are owned by this Plugin List.
4843
public final class {{ plugin_list_name }}PluginListComponent: Component
4944
<
@@ -88,18 +83,15 @@ public final class {{ plugin_list_name }}PluginListComponent: Component
8883
*/
8984
}
9085

91-
/// PURPOSE:
9286
/// The type used for the keys of the Plugin List (can be any `Hashable` type such as `String` or an enumeration).
9387
internal typealias {{ plugin_list_name }}PluginListKeyType = String
9488

95-
/// PURPOSE:
9689
/// To provide additional state used in determining if the plugins are enabled (can be any type relevant to the plugins).
9790
internal typealias {{ plugin_list_name }}PluginListStateType = Void
9891

9992
{% if is_periphery_comment_enabled %}
10093
// periphery:ignore
10194
{% endif %}
102-
/// PURPOSE:
10395
/// The Plugin List protocol (available to mock for testability).
10496
/// @mockable
10597
@MainActor
@@ -112,7 +104,6 @@ internal protocol {{ plugin_list_name }}PluginList {
112104
{% if is_periphery_comment_enabled %}
113105
// periphery:ignore
114106
{% endif %}
115-
/// PURPOSE:
116107
/// Concrete implementation of the Plugin List providing the Plugin collection and (optionally) the creation order.
117108
internal final class {{ plugin_list_name }}PluginListImp: PluginList
118109
<

Sources/NodesGenerator/Resources/Stencils/State.stencil

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {{ import }}
66
{% endfor %}
77
{% endif %}
88

9-
/// PURPOSE:
109
/// The state of the Node.
1110
internal struct {{ node_name }}State: Equatable {
1211

Sources/NodesGenerator/Resources/Stencils/ViewController-SwiftUI.stencil

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@ import {{ import }}
66
{% endfor %}
77
{% endif %}
88

9-
/// PURPOSE:
109
/// The interface that the View will speak to the Context through. Used for informing the Context of
1110
/// view events and user interactions.
1211
/// @mockable
1312
@MainActor
1413
internal protocol {{ node_name }}Receiver: AnyObject {}
1514

16-
/// PURPOSE:
1715
/// Host of the SwiftUI view.
1816
internal final class {{ node_name }}ViewController: {{ view_controller_type }}
1917
<
@@ -35,7 +33,6 @@ internal final class {{ node_name }}ViewController: {{ view_controller_type }}
3533

3634
extension {{ node_name }}ViewController: {{ node_name }}ViewControllable {}
3735

38-
/// PURPOSE:
3936
/// Concrete implementation of the View.
4037
internal struct {{ node_name }}View {
4138

@@ -78,7 +75,6 @@ extension {{ node_name }}View: View {
7875
{% if is_periphery_comment_enabled %}
7976
// periphery:ignore
8077
{% endif %}
81-
/// PURPOSE:
8278
/// The SwiftUI preview (excluded from release builds).
8379
internal struct {{ node_name }}View_Previews: PreviewProvider {
8480

Sources/NodesGenerator/Resources/Stencils/ViewController.stencil

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import {{ import }}
66
{% endfor %}
77
{% endif %}
88

9-
/// PURPOSE:
109
/// The interface that the View will speak to the Context through. Used for informing the Context of
1110
/// view events and user interactions.
1211
/// @mockable
@@ -19,7 +18,6 @@ internal protocol {{ node_name }}Receiver: AnyObject {
1918
internal protocol {{ node_name }}Receiver: AnyObject {}
2019
{% endif %}
2120

22-
/// PURPOSE:
2321
/// Concrete implementation of the UI.
2422
internal final class {{ node_name }}ViewController: {{ view_controller_type }}, StateObserver {
2523
{% if view_controller_static_content %}

0 commit comments

Comments
 (0)