Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed Duplicate Declarations from The PluginList Stencil File #901

Merged
merged 7 commits into from
Feb 26, 2025
19 changes: 0 additions & 19 deletions Sources/NodesGenerator/Resources/Stencils/PluginList.stencil
Original file line number Diff line number Diff line change
Expand Up @@ -79,25 +79,6 @@ public final class {{ plugin_list_name }}PluginListComponent: Component

// MARK: - Plugin List

/// Declares the type of key used to identify plugins within the collection.
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
internal typealias {{ plugin_list_name }}PluginListKeyType = String

/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
/// - NOTE: An alias to a tuple is supported.
internal typealias {{ plugin_list_name }}PluginListStateType = Void

{% if is_periphery_comment_enabled %}
// periphery:ignore
{% endif %}
/// @mockable
@MainActor
internal protocol {{ plugin_list_name }}PluginList {
func createAll() -> [{{ plugin_list_name }}Builder]
func create() -> {{ plugin_list_name }}Builder?
func create(key: {{ plugin_list_name }}PluginListKeyType) -> {{ plugin_list_name }}Builder?
}

{% if is_periphery_comment_enabled %}
// periphery:ignore
{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,6 @@ public final class <pluginListName>PluginListComponent: Component

// MARK: - Plugin List

/// Declares the type of key used to identify plugins within the collection.
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
internal typealias <pluginListName>PluginListKeyType = String

/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
/// - NOTE: An alias to a tuple is supported.
internal typealias <pluginListName>PluginListStateType = Void

/// @mockable
@MainActor
internal protocol <pluginListName>PluginList {
func createAll() -> [<pluginListName>Builder]
func create() -> <pluginListName>Builder?
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
}

internal final class <pluginListName>PluginListImp: PluginList
<
<pluginListName>PluginListKeyType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,6 @@ public final class <pluginListName>PluginListComponent: Component

// MARK: - Plugin List

/// Declares the type of key used to identify plugins within the collection.
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
internal typealias <pluginListName>PluginListKeyType = String

/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
/// - NOTE: An alias to a tuple is supported.
internal typealias <pluginListName>PluginListStateType = Void

// periphery:ignore
/// @mockable
@MainActor
internal protocol <pluginListName>PluginList {
func createAll() -> [<pluginListName>Builder]
func create() -> <pluginListName>Builder?
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
}

// periphery:ignore
internal final class <pluginListName>PluginListImp: PluginList
<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,6 @@ public final class <pluginListName>PluginListComponent: Component

// MARK: - Plugin List

/// Declares the type of key used to identify plugins within the collection.
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
internal typealias <pluginListName>PluginListKeyType = String

/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
/// - NOTE: An alias to a tuple is supported.
internal typealias <pluginListName>PluginListStateType = Void

// periphery:ignore
/// @mockable
@MainActor
internal protocol <pluginListName>PluginList {
func createAll() -> [<pluginListName>Builder]
func create() -> <pluginListName>Builder?
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
}

// periphery:ignore
internal final class <pluginListName>PluginListImp: PluginList
<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,6 @@ public final class <pluginListName>PluginListComponent: Component

// MARK: - Plugin List

/// Declares the type of key used to identify plugins within the collection.
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
internal typealias <pluginListName>PluginListKeyType = String

/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
/// - NOTE: An alias to a tuple is supported.
internal typealias <pluginListName>PluginListStateType = Void

/// @mockable
@MainActor
internal protocol <pluginListName>PluginList {
func createAll() -> [<pluginListName>Builder]
func create() -> <pluginListName>Builder?
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
}

internal final class <pluginListName>PluginListImp: PluginList
<
<pluginListName>PluginListKeyType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,6 @@ public final class <pluginListName>PluginListComponent: Component

// MARK: - Plugin List

/// Declares the type of key used to identify plugins within the collection.
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
internal typealias <pluginListName>PluginListKeyType = String

/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
/// - NOTE: An alias to a tuple is supported.
internal typealias <pluginListName>PluginListStateType = Void

// periphery:ignore
/// @mockable
@MainActor
internal protocol <pluginListName>PluginList {
func createAll() -> [<pluginListName>Builder]
func create() -> <pluginListName>Builder?
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
}

// periphery:ignore
internal final class <pluginListName>PluginListImp: PluginList
<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,23 +70,6 @@ public final class <pluginListName>PluginListComponent: Component

// MARK: - Plugin List

/// Declares the type of key used to identify plugins within the collection.
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
internal typealias <pluginListName>PluginListKeyType = String

/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
/// - NOTE: An alias to a tuple is supported.
internal typealias <pluginListName>PluginListStateType = Void

// periphery:ignore
/// @mockable
@MainActor
internal protocol <pluginListName>PluginList {
func createAll() -> [<pluginListName>Builder]
func create() -> <pluginListName>Builder?
func create(key: <pluginListName>PluginListKeyType) -> <pluginListName>Builder?
}

// periphery:ignore
internal final class <pluginListName>PluginListImp: PluginList
<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,6 @@ public final class ___VARIABLE_productName___PluginListComponent: Component

// MARK: - Plugin List

/// Declares the type of key used to identify plugins within the collection.
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
internal typealias ___VARIABLE_productName___PluginListKeyType = String

/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
/// - NOTE: An alias to a tuple is supported.
internal typealias ___VARIABLE_productName___PluginListStateType = Void

/// @mockable
@MainActor
internal protocol ___VARIABLE_productName___PluginList {
func createAll() -> [___VARIABLE_productName___Builder]
func create() -> ___VARIABLE_productName___Builder?
func create(key: ___VARIABLE_productName___PluginListKeyType) -> ___VARIABLE_productName___Builder?
}

internal final class ___VARIABLE_productName___PluginListImp: PluginList
<
___VARIABLE_productName___PluginListKeyType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,22 +67,6 @@ public final class ___VARIABLE_productName___PluginListComponent: Component

// MARK: - Plugin List

/// Declares the type of key used to identify plugins within the collection.
/// - NOTE: May be any ``Hashable`` type such as ``String`` or an enumeration.
internal typealias ___VARIABLE_productName___PluginListKeyType = String

/// Dynamic state from the caller provided to the plugins to use in determining whether they are enabled.
/// - NOTE: An alias to a tuple is supported.
internal typealias ___VARIABLE_productName___PluginListStateType = Void

/// @mockable
@MainActor
internal protocol ___VARIABLE_productName___PluginList {
func createAll() -> [___VARIABLE_productName___Builder]
func create() -> ___VARIABLE_productName___Builder?
func create(key: ___VARIABLE_productName___PluginListKeyType) -> ___VARIABLE_productName___Builder?
}

internal final class ___VARIABLE_productName___PluginListImp: PluginList
<
___VARIABLE_productName___PluginListKeyType,
Expand Down