Skip to content

Commit ce91f7a

Browse files
Removed Duplicate Declarations from The PluginList Stencil File (#901)
* Added PluginListInterface File * Removed Duplicate Declarations from The PlugList Stencil File * Update Sources/NodesGenerator/Resources/Stencils/PluginListInterface.stencil Co-authored-by: Christopher Fuller <[email protected]> * Regened Snapshots --------- Co-authored-by: Christopher Fuller <[email protected]>
1 parent c35a8df commit ce91f7a

9 files changed

+0
-151
lines changed

Sources/NodesGenerator/Resources/Stencils/PluginList.stencil

-19
Original file line numberDiff line numberDiff line change
@@ -79,25 +79,6 @@ public final class {{ plugin_list_name }}PluginListComponent: Component
7979

8080
// MARK: - Plugin List
8181

82-
/// Declares the type of key used to identify plugins within the collection.
83-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
84-
internal typealias {{ plugin_list_name }}PluginListKeyType = String
85-
86-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
87-
/// - NOTE: An alias to a tuple is supported.
88-
internal typealias {{ plugin_list_name }}PluginListStateType = Void
89-
90-
{% if is_periphery_comment_enabled %}
91-
// periphery:ignore
92-
{% endif %}
93-
/// @mockable
94-
@MainActor
95-
internal protocol {{ plugin_list_name }}PluginList {
96-
func createAll() -> [{{ plugin_list_name }}Builder]
97-
func create() -> {{ plugin_list_name }}Builder?
98-
func create(key: {{ plugin_list_name }}PluginListKeyType) -> {{ plugin_list_name }}Builder?
99-
}
100-
10182
{% if is_periphery_comment_enabled %}
10283
// periphery:ignore
10384
{% endif %}

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-0.txt

-16
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,6 @@ public final class <pluginListName>PluginListComponent: Component
6464

6565
// MARK: - Plugin List
6666

67-
/// Declares the type of key used to identify plugins within the collection.
68-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
69-
internal typealias <pluginListName>PluginListKeyType = String
70-
71-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
72-
/// - NOTE: An alias to a tuple is supported.
73-
internal typealias <pluginListName>PluginListStateType = Void
74-
75-
/// @mockable
76-
@MainActor
77-
internal protocol <pluginListName>PluginList {
78-
func createAll() -> [<pluginListName>Builder]
79-
func create() -> <pluginListName>Builder?
80-
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
81-
}
82-
8367
internal final class <pluginListName>PluginListImp: PluginList
8468
<
8569
<pluginListName>PluginListKeyType,

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-1.txt

-17
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,6 @@ public final class <pluginListName>PluginListComponent: Component
6969

7070
// MARK: - Plugin List
7171

72-
/// Declares the type of key used to identify plugins within the collection.
73-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
74-
internal typealias <pluginListName>PluginListKeyType = String
75-
76-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
77-
/// - NOTE: An alias to a tuple is supported.
78-
internal typealias <pluginListName>PluginListStateType = Void
79-
80-
// periphery:ignore
81-
/// @mockable
82-
@MainActor
83-
internal protocol <pluginListName>PluginList {
84-
func createAll() -> [<pluginListName>Builder]
85-
func create() -> <pluginListName>Builder?
86-
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
87-
}
88-
8972
// periphery:ignore
9073
internal final class <pluginListName>PluginListImp: PluginList
9174
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-2.txt

-17
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,6 @@ public final class <pluginListName>PluginListComponent: Component
7070

7171
// MARK: - Plugin List
7272

73-
/// Declares the type of key used to identify plugins within the collection.
74-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
75-
internal typealias <pluginListName>PluginListKeyType = String
76-
77-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
78-
/// - NOTE: An alias to a tuple is supported.
79-
internal typealias <pluginListName>PluginListStateType = Void
80-
81-
// periphery:ignore
82-
/// @mockable
83-
@MainActor
84-
internal protocol <pluginListName>PluginList {
85-
func createAll() -> [<pluginListName>Builder]
86-
func create() -> <pluginListName>Builder?
87-
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
88-
}
89-
9073
// periphery:ignore
9174
internal final class <pluginListName>PluginListImp: PluginList
9275
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-0.txt

-16
Original file line numberDiff line numberDiff line change
@@ -64,22 +64,6 @@ public final class <pluginListName>PluginListComponent: Component
6464

6565
// MARK: - Plugin List
6666

67-
/// Declares the type of key used to identify plugins within the collection.
68-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
69-
internal typealias <pluginListName>PluginListKeyType = String
70-
71-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
72-
/// - NOTE: An alias to a tuple is supported.
73-
internal typealias <pluginListName>PluginListStateType = Void
74-
75-
/// @mockable
76-
@MainActor
77-
internal protocol <pluginListName>PluginList {
78-
func createAll() -> [<pluginListName>Builder]
79-
func create() -> <pluginListName>Builder?
80-
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
81-
}
82-
8367
internal final class <pluginListName>PluginListImp: PluginList
8468
<
8569
<pluginListName>PluginListKeyType,

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-1.txt

-17
Original file line numberDiff line numberDiff line change
@@ -69,23 +69,6 @@ public final class <pluginListName>PluginListComponent: Component
6969

7070
// MARK: - Plugin List
7171

72-
/// Declares the type of key used to identify plugins within the collection.
73-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
74-
internal typealias <pluginListName>PluginListKeyType = String
75-
76-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
77-
/// - NOTE: An alias to a tuple is supported.
78-
internal typealias <pluginListName>PluginListStateType = Void
79-
80-
// periphery:ignore
81-
/// @mockable
82-
@MainActor
83-
internal protocol <pluginListName>PluginList {
84-
func createAll() -> [<pluginListName>Builder]
85-
func create() -> <pluginListName>Builder?
86-
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
87-
}
88-
8972
// periphery:ignore
9073
internal final class <pluginListName>PluginListImp: PluginList
9174
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-2.txt

-17
Original file line numberDiff line numberDiff line change
@@ -70,23 +70,6 @@ public final class <pluginListName>PluginListComponent: Component
7070

7171
// MARK: - Plugin List
7272

73-
/// Declares the type of key used to identify plugins within the collection.
74-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
75-
internal typealias <pluginListName>PluginListKeyType = String
76-
77-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
78-
/// - NOTE: An alias to a tuple is supported.
79-
internal typealias <pluginListName>PluginListStateType = Void
80-
81-
// periphery:ignore
82-
/// @mockable
83-
@MainActor
84-
internal protocol <pluginListName>PluginList {
85-
func createAll() -> [<pluginListName>Builder]
86-
func create() -> <pluginListName>Builder?
87-
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
88-
}
89-
9073
// periphery:ignore
9174
internal final class <pluginListName>PluginListImp: PluginList
9275
<

Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-PluginList-PluginList.txt

-16
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,6 @@ public final class ___VARIABLE_productName___PluginListComponent: Component
6767

6868
// MARK: - Plugin List
6969

70-
/// Declares the type of key used to identify plugins within the collection.
71-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
72-
internal typealias ___VARIABLE_productName___PluginListKeyType = String
73-
74-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
75-
/// - NOTE: An alias to a tuple is supported.
76-
internal typealias ___VARIABLE_productName___PluginListStateType = Void
77-
78-
/// @mockable
79-
@MainActor
80-
internal protocol ___VARIABLE_productName___PluginList {
81-
func createAll() -> [___VARIABLE_productName___Builder]
82-
func create() -> ___VARIABLE_productName___Builder?
83-
func create(key: ___VARIABLE_productName___PluginListKeyType) -> ___VARIABLE_productName___Builder?
84-
}
85-
8670
internal final class ___VARIABLE_productName___PluginListImp: PluginList
8771
<
8872
___VARIABLE_productName___PluginListKeyType,

Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-PluginList-PluginList.txt

-16
Original file line numberDiff line numberDiff line change
@@ -67,22 +67,6 @@ public final class ___VARIABLE_productName___PluginListComponent: Component
6767

6868
// MARK: - Plugin List
6969

70-
/// Declares the type of key used to identify plugins within the collection.
71-
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
72-
internal typealias ___VARIABLE_productName___PluginListKeyType = String
73-
74-
/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
75-
/// - NOTE: An alias to a tuple is supported.
76-
internal typealias ___VARIABLE_productName___PluginListStateType = Void
77-
78-
/// @mockable
79-
@MainActor
80-
internal protocol ___VARIABLE_productName___PluginList {
81-
func createAll() -> [___VARIABLE_productName___Builder]
82-
func create() -> ___VARIABLE_productName___Builder?
83-
func create(key: ___VARIABLE_productName___PluginListKeyType) -> ___VARIABLE_productName___Builder?
84-
}
85-
8670
internal final class ___VARIABLE_productName___PluginListImp: PluginList
8771
<
8872
___VARIABLE_productName___PluginListKeyType,

0 commit comments

Comments
 (0)