Skip to content

Commit b1bce9a

Browse files
Remove declarations from Plugin.swift (#886)
* Added Plugin Interface File * Remove declarations from Plugin.swift * Update Sources/NodesGenerator/Resources/Stencils/PluginInterface.stencil Co-authored-by: Christopher Fuller <[email protected]> * Regened Snapshots For Removed Declarations --------- Co-authored-by: Christopher Fuller <[email protected]>
1 parent c4ffc85 commit b1bce9a

File tree

61 files changed

+0
-637
lines changed

Some content is hidden

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

61 files changed

+0
-637
lines changed

Sources/NodesGenerator/Resources/Stencils/Plugin.stencil

-13
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,6 @@ public final class {{ plugin_name }}PluginComponent: Component
5858

5959
// MARK: - Plugin
6060

61-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
62-
/// - NOTE: An alias to a tuple is supported.
63-
internal typealias {{ plugin_name }}PluginStateType = Void
64-
65-
{% if is_periphery_comment_enabled %}
66-
// periphery:ignore
67-
{% endif %}
68-
/// @mockable
69-
@MainActor
70-
internal protocol {{ plugin_name }}Plugin {
71-
func create() -> {{ plugin_name }}Builder?
72-
}
73-
7461
{% if is_periphery_comment_enabled %}
7562
// periphery:ignore
7663
{% endif %}

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt

-10
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
/// @mockable
60-
@MainActor
61-
internal protocol Plugin {
62-
func create() -> Builder?
63-
}
64-
6555
internal final class PluginImp: Plugin
6656
<
6757
PluginComponent,

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt

-10
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
/// @mockable
60-
@MainActor
61-
internal protocol Plugin {
62-
func create() -> Builder?
63-
}
64-
6555
internal final class PluginImp: Plugin
6656
<
6757
PluginComponent,

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt

-10
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
/// @mockable
60-
@MainActor
61-
internal protocol Plugin {
62-
func create() -> Builder?
63-
}
64-
6555
internal final class PluginImp: Plugin
6656
<
6757
PluginComponent,

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt

-10
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
/// @mockable
60-
@MainActor
61-
internal protocol Plugin {
62-
func create() -> Builder?
63-
}
64-
6555
internal final class PluginImp: Plugin
6656
<
6757
PluginComponent,

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt

-10
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
/// @mockable
60-
@MainActor
61-
internal protocol Plugin {
62-
func create() -> Builder?
63-
}
64-
6555
internal final class PluginImp: Plugin
6656
<
6757
PluginComponent,

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt

-10
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
/// @mockable
60-
@MainActor
61-
internal protocol Plugin {
62-
func create() -> Builder?
63-
}
64-
6555
internal final class PluginImp: Plugin
6656
<
6757
PluginComponent,

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt

-10
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
/// @mockable
60-
@MainActor
61-
internal protocol Plugin {
62-
func create() -> Builder?
63-
}
64-
6555
internal final class PluginImp: Plugin
6656
<
6757
PluginComponent,

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt

-11
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ public final class PluginComponent: Component
5252

5353
// MARK: - Plugin
5454

55-
/// Dynamic state from the caller provided to the plugin to use in determining whether it is enabled.
56-
/// - NOTE: An alias to a tuple is supported.
57-
internal typealias PluginStateType = Void
58-
59-
// periphery:ignore
60-
/// @mockable
61-
@MainActor
62-
internal protocol Plugin {
63-
func create() -> Builder?
64-
}
65-
6655
// periphery:ignore
6756
internal final class PluginImp: Plugin
6857
<

0 commit comments

Comments
 (0)