From 2b19d51fea72eb83fdd5fb07330e2e68dd86e8be Mon Sep 17 00:00:00 2001 From: Christopher Fuller Date: Fri, 21 Feb 2025 23:13:13 -0800 Subject: [PATCH] Use two slashes for freestanding comments --- .../Stencils/Builder-SwiftUI.stencil | 44 +++++++++---------- .../Resources/Stencils/Builder.stencil | 44 +++++++++---------- .../Resources/Stencils/Plugin.stencil | 44 +++++++++---------- .../Resources/Stencils/PluginList.stencil | 44 +++++++++---------- ...ateAppPreset.Contents-AppBuilder-swift.txt | 44 +++++++++---------- ...eRootPreset.Contents-RootBuilder-swift.txt | 44 +++++++++---------- ...eset.Contents-WindowSceneBuilder-swift.txt | 44 +++++++++---------- ...dowPreset.Contents-WindowBuilder-swift.txt | 44 +++++++++---------- ...tRenderNode.Builder-AppKit-mockCount-0.txt | 44 +++++++++---------- ...tRenderNode.Builder-AppKit-mockCount-1.txt | 44 +++++++++---------- ...tRenderNode.Builder-AppKit-mockCount-2.txt | 44 +++++++++---------- ...Node.Builder-AppKitSwiftUI-mockCount-0.txt | 44 +++++++++---------- ...Node.Builder-AppKitSwiftUI-mockCount-1.txt | 44 +++++++++---------- ...Node.Builder-AppKitSwiftUI-mockCount-2.txt | 44 +++++++++---------- ...tRenderNode.Builder-Custom-mockCount-0.txt | 44 +++++++++---------- ...tRenderNode.Builder-Custom-mockCount-1.txt | 44 +++++++++---------- ...tRenderNode.Builder-Custom-mockCount-2.txt | 44 +++++++++---------- ...stRenderNode.Builder-UIKit-mockCount-0.txt | 44 +++++++++---------- ...stRenderNode.Builder-UIKit-mockCount-1.txt | 44 +++++++++---------- ...stRenderNode.Builder-UIKit-mockCount-2.txt | 44 +++++++++---------- ...rNode.Builder-UIKitSwiftUI-mockCount-0.txt | 44 +++++++++---------- ...rNode.Builder-UIKitSwiftUI-mockCount-1.txt | 44 +++++++++---------- ...rNode.Builder-UIKitSwiftUI-mockCount-2.txt | 44 +++++++++---------- ...odePresetApp.Builder-UIKit-mockCount-0.txt | 44 +++++++++---------- ...odePresetApp.Builder-UIKit-mockCount-1.txt | 44 +++++++++---------- ...odePresetApp.Builder-UIKit-mockCount-2.txt | 44 +++++++++---------- ...dePresetRoot.Builder-UIKit-mockCount-0.txt | 44 +++++++++---------- ...dePresetRoot.Builder-UIKit-mockCount-1.txt | 44 +++++++++---------- ...dePresetRoot.Builder-UIKit-mockCount-2.txt | 44 +++++++++---------- ...ePresetScene.Builder-UIKit-mockCount-0.txt | 44 +++++++++---------- ...ePresetScene.Builder-UIKit-mockCount-1.txt | 44 +++++++++---------- ...ePresetScene.Builder-UIKit-mockCount-2.txt | 44 +++++++++---------- ...PresetWindow.Builder-UIKit-mockCount-0.txt | 44 +++++++++---------- ...PresetWindow.Builder-UIKit-mockCount-1.txt | 44 +++++++++---------- ...PresetWindow.Builder-UIKit-mockCount-2.txt | 44 +++++++++---------- ...erNodeViewInjected.Builder-mockCount-0.txt | 44 +++++++++---------- ...erNodeViewInjected.Builder-mockCount-1.txt | 44 +++++++++---------- ...erNodeViewInjected.Builder-mockCount-2.txt | 44 +++++++++---------- ..._withPlugin.Builder-AppKit-mockCount-0.txt | 44 +++++++++---------- ..._withPlugin.Builder-AppKit-mockCount-1.txt | 44 +++++++++---------- ..._withPlugin.Builder-AppKit-mockCount-2.txt | 44 +++++++++---------- ...ugin.Builder-AppKitSwiftUI-mockCount-0.txt | 44 +++++++++---------- ...ugin.Builder-AppKitSwiftUI-mockCount-1.txt | 44 +++++++++---------- ...ugin.Builder-AppKitSwiftUI-mockCount-2.txt | 44 +++++++++---------- ..._withPlugin.Builder-Custom-mockCount-0.txt | 44 +++++++++---------- ..._withPlugin.Builder-Custom-mockCount-1.txt | 44 +++++++++---------- ..._withPlugin.Builder-Custom-mockCount-2.txt | 44 +++++++++---------- ...e_withPlugin.Builder-UIKit-mockCount-0.txt | 44 +++++++++---------- ...e_withPlugin.Builder-UIKit-mockCount-1.txt | 44 +++++++++---------- ...e_withPlugin.Builder-UIKit-mockCount-2.txt | 44 +++++++++---------- ...lugin.Builder-UIKitSwiftUI-mockCount-0.txt | 44 +++++++++---------- ...lugin.Builder-UIKitSwiftUI-mockCount-1.txt | 44 +++++++++---------- ...lugin.Builder-UIKitSwiftUI-mockCount-2.txt | 44 +++++++++---------- ...e_withPlugin.Plugin-AppKit-mockCount-0.txt | 44 +++++++++---------- ...e_withPlugin.Plugin-AppKit-mockCount-1.txt | 44 +++++++++---------- ...e_withPlugin.Plugin-AppKit-mockCount-2.txt | 44 +++++++++---------- ...lugin.Plugin-AppKitSwiftUI-mockCount-0.txt | 44 +++++++++---------- ...lugin.Plugin-AppKitSwiftUI-mockCount-1.txt | 44 +++++++++---------- ...lugin.Plugin-AppKitSwiftUI-mockCount-2.txt | 44 +++++++++---------- ...e_withPlugin.Plugin-Custom-mockCount-0.txt | 44 +++++++++---------- ...e_withPlugin.Plugin-Custom-mockCount-1.txt | 44 +++++++++---------- ...e_withPlugin.Plugin-Custom-mockCount-2.txt | 44 +++++++++---------- ...de_withPlugin.Plugin-UIKit-mockCount-0.txt | 44 +++++++++---------- ...de_withPlugin.Plugin-UIKit-mockCount-1.txt | 44 +++++++++---------- ...de_withPlugin.Plugin-UIKit-mockCount-2.txt | 44 +++++++++---------- ...Plugin.Plugin-UIKitSwiftUI-mockCount-0.txt | 44 +++++++++---------- ...Plugin.Plugin-UIKitSwiftUI-mockCount-1.txt | 44 +++++++++---------- ...Plugin.Plugin-UIKitSwiftUI-mockCount-2.txt | 44 +++++++++---------- ...ginAndTests.Builder-AppKit-mockCount-0.txt | 44 +++++++++---------- ...ginAndTests.Builder-AppKit-mockCount-1.txt | 44 +++++++++---------- ...ginAndTests.Builder-AppKit-mockCount-2.txt | 44 +++++++++---------- ...ests.Builder-AppKitSwiftUI-mockCount-0.txt | 44 +++++++++---------- ...ests.Builder-AppKitSwiftUI-mockCount-1.txt | 44 +++++++++---------- ...ests.Builder-AppKitSwiftUI-mockCount-2.txt | 44 +++++++++---------- ...ginAndTests.Builder-Custom-mockCount-0.txt | 44 +++++++++---------- ...ginAndTests.Builder-Custom-mockCount-1.txt | 44 +++++++++---------- ...ginAndTests.Builder-Custom-mockCount-2.txt | 44 +++++++++---------- ...uginAndTests.Builder-UIKit-mockCount-0.txt | 44 +++++++++---------- ...uginAndTests.Builder-UIKit-mockCount-1.txt | 44 +++++++++---------- ...uginAndTests.Builder-UIKit-mockCount-2.txt | 44 +++++++++---------- ...Tests.Builder-UIKitSwiftUI-mockCount-0.txt | 44 +++++++++---------- ...Tests.Builder-UIKitSwiftUI-mockCount-1.txt | 44 +++++++++---------- ...Tests.Builder-UIKitSwiftUI-mockCount-2.txt | 44 +++++++++---------- ...uginAndTests.Plugin-AppKit-mockCount-0.txt | 44 +++++++++---------- ...uginAndTests.Plugin-AppKit-mockCount-1.txt | 44 +++++++++---------- ...uginAndTests.Plugin-AppKit-mockCount-2.txt | 44 +++++++++---------- ...Tests.Plugin-AppKitSwiftUI-mockCount-0.txt | 44 +++++++++---------- ...Tests.Plugin-AppKitSwiftUI-mockCount-1.txt | 44 +++++++++---------- ...Tests.Plugin-AppKitSwiftUI-mockCount-2.txt | 44 +++++++++---------- ...uginAndTests.Plugin-Custom-mockCount-0.txt | 44 +++++++++---------- ...uginAndTests.Plugin-Custom-mockCount-1.txt | 44 +++++++++---------- ...uginAndTests.Plugin-Custom-mockCount-2.txt | 44 +++++++++---------- ...luginAndTests.Plugin-UIKit-mockCount-0.txt | 44 +++++++++---------- ...luginAndTests.Plugin-UIKit-mockCount-1.txt | 44 +++++++++---------- ...luginAndTests.Plugin-UIKit-mockCount-2.txt | 44 +++++++++---------- ...dTests.Plugin-UIKitSwiftUI-mockCount-0.txt | 44 +++++++++---------- ...dTests.Plugin-UIKitSwiftUI-mockCount-1.txt | 44 +++++++++---------- ...dTests.Plugin-UIKitSwiftUI-mockCount-2.txt | 44 +++++++++---------- ...e_withTests.Builder-AppKit-mockCount-0.txt | 44 +++++++++---------- ...e_withTests.Builder-AppKit-mockCount-1.txt | 44 +++++++++---------- ...e_withTests.Builder-AppKit-mockCount-2.txt | 44 +++++++++---------- ...ests.Builder-AppKitSwiftUI-mockCount-0.txt | 44 +++++++++---------- ...ests.Builder-AppKitSwiftUI-mockCount-1.txt | 44 +++++++++---------- ...ests.Builder-AppKitSwiftUI-mockCount-2.txt | 44 +++++++++---------- ...e_withTests.Builder-Custom-mockCount-0.txt | 44 +++++++++---------- ...e_withTests.Builder-Custom-mockCount-1.txt | 44 +++++++++---------- ...e_withTests.Builder-Custom-mockCount-2.txt | 44 +++++++++---------- ...de_withTests.Builder-UIKit-mockCount-0.txt | 44 +++++++++---------- ...de_withTests.Builder-UIKit-mockCount-1.txt | 44 +++++++++---------- ...de_withTests.Builder-UIKit-mockCount-2.txt | 44 +++++++++---------- ...Tests.Builder-UIKitSwiftUI-mockCount-0.txt | 44 +++++++++---------- ...Tests.Builder-UIKitSwiftUI-mockCount-1.txt | 44 +++++++++---------- ...Tests.Builder-UIKitSwiftUI-mockCount-2.txt | 44 +++++++++---------- .../testRenderPlugin.Plugin-mockCount-0.txt | 44 +++++++++---------- .../testRenderPlugin.Plugin-mockCount-1.txt | 44 +++++++++---------- .../testRenderPlugin.Plugin-mockCount-2.txt | 44 +++++++++---------- ...enderPluginList.PluginList-mockCount-0.txt | 44 +++++++++---------- ...enderPluginList.PluginList-mockCount-1.txt | 44 +++++++++---------- ...enderPluginList.PluginList-mockCount-2.txt | 44 +++++++++---------- ...nList_withTests.PluginList-mockCount-0.txt | 44 +++++++++---------- ...nList_withTests.PluginList-mockCount-1.txt | 44 +++++++++---------- ...nList_withTests.PluginList-mockCount-2.txt | 44 +++++++++---------- ...derPlugin_withTests.Plugin-mockCount-0.txt | 44 +++++++++---------- ...derPlugin_withTests.Plugin-mockCount-1.txt | 44 +++++++++---------- ...derPlugin_withTests.Plugin-mockCount-2.txt | 44 +++++++++---------- ...WithIdentifier.Contents-AppKit-Builder.txt | 44 +++++++++---------- ...eWithIdentifier.Contents-AppKit-Plugin.txt | 44 +++++++++---------- ...nts-AppKitCreatedForPluginList-Builder.txt | 44 +++++++++---------- ...ents-AppKitCreatedForPluginList-Plugin.txt | 44 +++++++++---------- ...ntifier.Contents-AppKitSwiftUI-Builder.txt | 44 +++++++++---------- ...entifier.Contents-AppKitSwiftUI-Plugin.txt | 44 +++++++++---------- ...KitSwiftUICreatedForPluginList-Builder.txt | 44 +++++++++---------- ...pKitSwiftUICreatedForPluginList-Plugin.txt | 44 +++++++++---------- ...WithIdentifier.Contents-Custom-Builder.txt | 44 +++++++++---------- ...eWithIdentifier.Contents-Custom-Plugin.txt | 44 +++++++++---------- ...nts-CustomCreatedForPluginList-Builder.txt | 44 +++++++++---------- ...ents-CustomCreatedForPluginList-Plugin.txt | 44 +++++++++---------- ...eWithIdentifier.Contents-Plugin-Plugin.txt | 44 +++++++++---------- ...ntifier.Contents-PluginList-PluginList.txt | 44 +++++++++---------- ...eWithIdentifier.Contents-UIKit-Builder.txt | 44 +++++++++---------- ...teWithIdentifier.Contents-UIKit-Plugin.txt | 44 +++++++++---------- ...ents-UIKitCreatedForPluginList-Builder.txt | 44 +++++++++---------- ...tents-UIKitCreatedForPluginList-Plugin.txt | 44 +++++++++---------- ...entifier.Contents-UIKitSwiftUI-Builder.txt | 44 +++++++++---------- ...dentifier.Contents-UIKitSwiftUI-Plugin.txt | 44 +++++++++---------- ...KitSwiftUICreatedForPluginList-Builder.txt | 44 +++++++++---------- ...IKitSwiftUICreatedForPluginList-Plugin.txt | 44 +++++++++---------- ...entifier.Contents-ViewInjected-Builder.txt | 44 +++++++++---------- ...dentifier.Contents-ViewInjected-Plugin.txt | 44 +++++++++---------- ...enerateWithURL.Contents-AppKit-Builder.txt | 44 +++++++++---------- ...GenerateWithURL.Contents-AppKit-Plugin.txt | 44 +++++++++---------- ...nts-AppKitCreatedForPluginList-Builder.txt | 44 +++++++++---------- ...ents-AppKitCreatedForPluginList-Plugin.txt | 44 +++++++++---------- ...WithURL.Contents-AppKitSwiftUI-Builder.txt | 44 +++++++++---------- ...eWithURL.Contents-AppKitSwiftUI-Plugin.txt | 44 +++++++++---------- ...KitSwiftUICreatedForPluginList-Builder.txt | 44 +++++++++---------- ...pKitSwiftUICreatedForPluginList-Plugin.txt | 44 +++++++++---------- ...enerateWithURL.Contents-Custom-Builder.txt | 44 +++++++++---------- ...GenerateWithURL.Contents-Custom-Plugin.txt | 44 +++++++++---------- ...nts-CustomCreatedForPluginList-Builder.txt | 44 +++++++++---------- ...ents-CustomCreatedForPluginList-Plugin.txt | 44 +++++++++---------- ...GenerateWithURL.Contents-Plugin-Plugin.txt | 44 +++++++++---------- ...WithURL.Contents-PluginList-PluginList.txt | 44 +++++++++---------- ...GenerateWithURL.Contents-UIKit-Builder.txt | 44 +++++++++---------- ...tGenerateWithURL.Contents-UIKit-Plugin.txt | 44 +++++++++---------- ...ents-UIKitCreatedForPluginList-Builder.txt | 44 +++++++++---------- ...tents-UIKitCreatedForPluginList-Plugin.txt | 44 +++++++++---------- ...eWithURL.Contents-UIKitSwiftUI-Builder.txt | 44 +++++++++---------- ...teWithURL.Contents-UIKitSwiftUI-Plugin.txt | 44 +++++++++---------- ...KitSwiftUICreatedForPluginList-Builder.txt | 44 +++++++++---------- ...IKitSwiftUICreatedForPluginList-Plugin.txt | 44 +++++++++---------- ...eWithURL.Contents-ViewInjected-Builder.txt | 44 +++++++++---------- ...teWithURL.Contents-ViewInjected-Plugin.txt | 44 +++++++++---------- 173 files changed, 3806 insertions(+), 3806 deletions(-) diff --git a/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil b/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil index 20796461a..d31355f40 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Builder-SwiftUI.stencil @@ -41,23 +41,23 @@ public final class {{ node_name }}Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } {% if component_dependencies %} {{ component_dependencies }} @@ -82,11 +82,11 @@ public final class {{ node_name }}Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Sources/NodesGenerator/Resources/Stencils/Builder.stencil b/Sources/NodesGenerator/Resources/Stencils/Builder.stencil index cae2ec289..f52a9ff58 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Builder.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Builder.stencil @@ -55,23 +55,23 @@ public final class {{ node_name }}Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } {% if component_dependencies %} {{ component_dependencies }} @@ -102,11 +102,11 @@ public final class {{ node_name }}Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } {% if node_name == "App" %} fileprivate func windowSceneComponentFactory() -> WindowSceneComponent { diff --git a/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil b/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil index 260abc098..defcdc3d9 100644 --- a/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/Plugin.stencil @@ -25,31 +25,31 @@ public final class {{ plugin_name }}PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> {{ plugin_name }}Component { {{ plugin_name }}Component(parent: self) diff --git a/Sources/NodesGenerator/Resources/Stencils/PluginList.stencil b/Sources/NodesGenerator/Resources/Stencils/PluginList.stencil index 7190b6a99..95258f882 100644 --- a/Sources/NodesGenerator/Resources/Stencils/PluginList.stencil +++ b/Sources/NodesGenerator/Resources/Stencils/PluginList.stencil @@ -50,31 +50,31 @@ public final class {{ plugin_list_name }}PluginListComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func PluginComponentFactory() -> PluginComponent { - /// PluginComponent(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func PluginComponentFactory() -> PluginComponent { + // PluginComponent(parent: self) + // } } // MARK: - Plugin List diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt index 80065f42b..828051cff 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateAppPreset.Contents-AppBuilder-swift.txt @@ -24,23 +24,23 @@ public final class AppComponent: BootstrapComponent { // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } fileprivate let appService: AppService = AppServiceImp() @@ -56,11 +56,11 @@ public final class AppComponent: BootstrapComponent { // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func windowSceneComponentFactory() -> WindowSceneComponent { WindowSceneComponent(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt index 79c9242e2..9915973d1 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateRootPreset.Contents-RootBuilder-swift.txt @@ -35,23 +35,23 @@ public final class RootComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: RootDynamicComponentDependency @@ -66,11 +66,11 @@ public final class RootComponent: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt index d2ec4ccc0..fbbf9c1b2 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateScenePreset.Contents-WindowSceneBuilder-swift.txt @@ -35,23 +35,23 @@ public final class WindowSceneComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: WindowSceneDynamicComponentDependency @@ -66,11 +66,11 @@ public final class WindowSceneComponent: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func windowComponentFactory() -> WindowComponent { WindowComponent(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt index eed766c6c..7f0734f6a 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/PresetGeneratorTests/testGenerateWindowPreset.Contents-WindowBuilder-swift.txt @@ -35,23 +35,23 @@ public final class WindowComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: WindowDynamicComponentDependency @@ -66,11 +66,11 @@ public final class WindowComponent: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func rootComponentFactory() -> RootComponent { RootComponent(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt index 34c4ea4f9..1192d1a78 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt index b83257337..67ff5a09b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt index 6b62627b7..8ea5a94c6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKit-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt index b7a6b5720..c97ac8ca6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-0.txt @@ -27,23 +27,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -58,11 +58,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt index fffa48109..b6e0751d5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-1.txt @@ -31,23 +31,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -64,11 +64,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt index 9aab31879..e4183a693 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-AppKitSwiftUI-mockCount-2.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt index 34c4ea4f9..1192d1a78 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt index b83257337..67ff5a09b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt index 6b62627b7..8ea5a94c6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-Custom-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt index 34c4ea4f9..1192d1a78 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt index b83257337..67ff5a09b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt index 6b62627b7..8ea5a94c6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKit-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt index b7a6b5720..c97ac8ca6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-0.txt @@ -27,23 +27,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -58,11 +58,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt index fffa48109..b6e0751d5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-1.txt @@ -31,23 +31,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -64,11 +64,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt index 9aab31879..e4183a693 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode.Builder-UIKitSwiftUI-mockCount-2.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt index 922cea90f..85e88756b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-0.txt @@ -18,23 +18,23 @@ public final class AppComponent: BootstrapComponent { // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } fileprivate let appService: AppService = AppServiceImp() @@ -50,11 +50,11 @@ public final class AppComponent: BootstrapComponent { // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func windowSceneComponentFactory() -> WindowSceneComponent { WindowSceneComponent(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt index c54621e0f..c58074b79 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-1.txt @@ -20,23 +20,23 @@ public final class AppComponent: BootstrapComponent { // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } fileprivate let appService: AppService = AppServiceImp() @@ -54,11 +54,11 @@ public final class AppComponent: BootstrapComponent { // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func windowSceneComponentFactory() -> WindowSceneComponent { WindowSceneComponent(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt index 3340348da..9bf56491c 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetApp.Builder-UIKit-mockCount-2.txt @@ -21,23 +21,23 @@ public final class AppComponent: BootstrapComponent { // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } fileprivate let appService: AppService = AppServiceImp() @@ -55,11 +55,11 @@ public final class AppComponent: BootstrapComponent { // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func windowSceneComponentFactory() -> WindowSceneComponent { WindowSceneComponent(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt index c2006edaa..ca65c4fdc 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-0.txt @@ -29,23 +29,23 @@ public final class RootComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: RootDynamicComponentDependency @@ -60,11 +60,11 @@ public final class RootComponent: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt index 5c39c7d6b..be1dacaaf 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-1.txt @@ -33,23 +33,23 @@ public final class RootComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: RootDynamicComponentDependency @@ -66,11 +66,11 @@ public final class RootComponent: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt index fa365342f..4d2080c24 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetRoot.Builder-UIKit-mockCount-2.txt @@ -35,23 +35,23 @@ public final class RootComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: RootDynamicComponentDependency @@ -68,11 +68,11 @@ public final class RootComponent: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt index 3dfeeccc2..f0d83aabf 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-0.txt @@ -29,23 +29,23 @@ public final class WindowSceneComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: WindowSceneDynamicComponentDependency @@ -60,11 +60,11 @@ public final class WindowSceneComponent: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func windowComponentFactory() -> WindowComponent { WindowComponent(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt index 166a021ab..3f375cd6b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-1.txt @@ -33,23 +33,23 @@ public final class WindowSceneComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: WindowSceneDynamicComponentDependency @@ -66,11 +66,11 @@ public final class WindowSceneComponent: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func windowComponentFactory() -> WindowComponent { WindowComponent(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt index b7bb9d7d2..9489a23ef 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetScene.Builder-UIKit-mockCount-2.txt @@ -35,23 +35,23 @@ public final class WindowSceneComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: WindowSceneDynamicComponentDependency @@ -68,11 +68,11 @@ public final class WindowSceneComponent: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func windowComponentFactory() -> WindowComponent { WindowComponent(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt index aa90cb81b..a95614bc8 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-0.txt @@ -29,23 +29,23 @@ public final class WindowComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: WindowDynamicComponentDependency @@ -60,11 +60,11 @@ public final class WindowComponent: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func rootComponentFactory() -> RootComponent { RootComponent(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt index 9a940c075..7757a2476 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-1.txt @@ -33,23 +33,23 @@ public final class WindowComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: WindowDynamicComponentDependency @@ -66,11 +66,11 @@ public final class WindowComponent: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func rootComponentFactory() -> RootComponent { RootComponent(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt index 0afbc835e..6f7f64706 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodePresetWindow.Builder-UIKit-mockCount-2.txt @@ -35,23 +35,23 @@ public final class WindowComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: WindowDynamicComponentDependency @@ -68,11 +68,11 @@ public final class WindowComponent: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func rootComponentFactory() -> RootComponent { RootComponent(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt index 72d805189..397d062cb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt index 8801d1856..c38bed1bb 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt index c8ae0cb8a..da518de54 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNodeViewInjected.Builder-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt index 34c4ea4f9..1192d1a78 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt index b83257337..67ff5a09b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt index 6b62627b7..8ea5a94c6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKit-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt index b7a6b5720..c97ac8ca6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-0.txt @@ -27,23 +27,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -58,11 +58,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt index fffa48109..b6e0751d5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-1.txt @@ -31,23 +31,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -64,11 +64,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt index 9aab31879..e4183a693 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-AppKitSwiftUI-mockCount-2.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt index 34c4ea4f9..1192d1a78 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt index b83257337..67ff5a09b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt index 6b62627b7..8ea5a94c6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-Custom-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt index 34c4ea4f9..1192d1a78 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt index b83257337..67ff5a09b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt index 6b62627b7..8ea5a94c6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKit-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt index b7a6b5720..c97ac8ca6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-0.txt @@ -27,23 +27,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -58,11 +58,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt index fffa48109..b6e0751d5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-1.txt @@ -31,23 +31,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -64,11 +64,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt index 9aab31879..e4183a693 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Builder-UIKitSwiftUI-mockCount-2.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt index 30798fcab..9f17ba74b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-0.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-1.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKit-mockCount-2.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt index 30798fcab..9f17ba74b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-0.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-1.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-AppKitSwiftUI-mockCount-2.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt index 30798fcab..9f17ba74b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-0.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-1.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-Custom-mockCount-2.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt index 30798fcab..9f17ba74b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-0.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-1.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKit-mockCount-2.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt index 30798fcab..9f17ba74b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-0.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-1.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPlugin.Plugin-UIKitSwiftUI-mockCount-2.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt index 34c4ea4f9..1192d1a78 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt index b83257337..67ff5a09b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt index 6b62627b7..8ea5a94c6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKit-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt index b7a6b5720..c97ac8ca6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-0.txt @@ -27,23 +27,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -58,11 +58,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt index fffa48109..b6e0751d5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-1.txt @@ -31,23 +31,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -64,11 +64,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt index 9aab31879..e4183a693 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-AppKitSwiftUI-mockCount-2.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt index 34c4ea4f9..1192d1a78 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt index b83257337..67ff5a09b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt index 6b62627b7..8ea5a94c6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-Custom-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt index 34c4ea4f9..1192d1a78 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt index b83257337..67ff5a09b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt index 6b62627b7..8ea5a94c6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKit-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt index b7a6b5720..c97ac8ca6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-0.txt @@ -27,23 +27,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -58,11 +58,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt index fffa48109..b6e0751d5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-1.txt @@ -31,23 +31,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -64,11 +64,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt index 9aab31879..e4183a693 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Builder-UIKitSwiftUI-mockCount-2.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt index 30798fcab..9f17ba74b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-0.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-1.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKit-mockCount-2.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt index 30798fcab..9f17ba74b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-0.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-1.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-AppKitSwiftUI-mockCount-2.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt index 30798fcab..9f17ba74b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-0.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-1.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-Custom-mockCount-2.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt index 30798fcab..9f17ba74b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-0.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-1.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKit-mockCount-2.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt index 30798fcab..9f17ba74b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-0.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-1.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt index 4f599b99a..fb4025ad3 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withPluginAndTests.Plugin-UIKitSwiftUI-mockCount-2.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt index 34c4ea4f9..1192d1a78 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt index b83257337..67ff5a09b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt index 6b62627b7..8ea5a94c6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKit-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt index b7a6b5720..c97ac8ca6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-0.txt @@ -27,23 +27,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -58,11 +58,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt index fffa48109..b6e0751d5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-1.txt @@ -31,23 +31,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -64,11 +64,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt index 9aab31879..e4183a693 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-AppKitSwiftUI-mockCount-2.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt index 34c4ea4f9..1192d1a78 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt index b83257337..67ff5a09b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt index 6b62627b7..8ea5a94c6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-Custom-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt index 34c4ea4f9..1192d1a78 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-0.txt @@ -29,23 +29,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -60,11 +60,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt index b83257337..67ff5a09b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-1.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt index 6b62627b7..8ea5a94c6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKit-mockCount-2.txt @@ -35,23 +35,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -68,11 +68,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt index b7a6b5720..c97ac8ca6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-0.txt @@ -27,23 +27,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: DynamicComponentDependency @@ -58,11 +58,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt index fffa48109..b6e0751d5 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-1.txt @@ -31,23 +31,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -64,11 +64,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt index 9aab31879..e4183a693 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderNode_withTests.Builder-UIKitSwiftUI-mockCount-2.txt @@ -33,23 +33,23 @@ public final class Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // periphery:ignore private let dynamicDependency: DynamicComponentDependency @@ -66,11 +66,11 @@ public final class Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt index 03420e0c1..919bfbabd 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-0.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt index 9f80bc65a..1d7018d66 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-1.txt @@ -21,31 +21,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt index 0e9ecda10..93c75fed7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin.Plugin-mockCount-2.txt @@ -22,31 +22,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-0.txt index 351fe7e65..880a3292f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-0.txt @@ -35,31 +35,31 @@ public final class PluginListComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func PluginComponentFactory() -> PluginComponent { - /// PluginComponent(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func PluginComponentFactory() -> PluginComponent { + // PluginComponent(parent: self) + // } } // MARK: - Plugin List diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-1.txt index 451b81e47..f0ec1fb97 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-1.txt @@ -40,31 +40,31 @@ public final class PluginListComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func PluginComponentFactory() -> PluginComponent { - /// PluginComponent(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func PluginComponentFactory() -> PluginComponent { + // PluginComponent(parent: self) + // } } // MARK: - Plugin List diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-2.txt index 38f7a5a86..dae7acd17 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList.PluginList-mockCount-2.txt @@ -41,31 +41,31 @@ public final class PluginListComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func PluginComponentFactory() -> PluginComponent { - /// PluginComponent(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func PluginComponentFactory() -> PluginComponent { + // PluginComponent(parent: self) + // } } // MARK: - Plugin List diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-0.txt index 351fe7e65..880a3292f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-0.txt @@ -35,31 +35,31 @@ public final class PluginListComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func PluginComponentFactory() -> PluginComponent { - /// PluginComponent(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func PluginComponentFactory() -> PluginComponent { + // PluginComponent(parent: self) + // } } // MARK: - Plugin List diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-1.txt index 451b81e47..f0ec1fb97 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-1.txt @@ -40,31 +40,31 @@ public final class PluginListComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func PluginComponentFactory() -> PluginComponent { - /// PluginComponent(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func PluginComponentFactory() -> PluginComponent { + // PluginComponent(parent: self) + // } } // MARK: - Plugin List diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-2.txt index 38f7a5a86..dae7acd17 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPluginList_withTests.PluginList-mockCount-2.txt @@ -41,31 +41,31 @@ public final class PluginListComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func PluginComponentFactory() -> PluginComponent { - /// PluginComponent(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func PluginComponentFactory() -> PluginComponent { + // PluginComponent(parent: self) + // } } // MARK: - Plugin List diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt index 03420e0c1..919bfbabd 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-0.txt @@ -19,31 +19,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt index 9f80bc65a..1d7018d66 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-1.txt @@ -21,31 +21,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt index 0e9ecda10..93c75fed7 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/StencilRendererTests/testRenderPlugin_withTests.Plugin-mockCount-2.txt @@ -22,31 +22,31 @@ public final class PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> Component { Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt index 62c03b80c..fb6b8ceb6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKit-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt index 268cb51a2..011f72192 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitCreatedForPluginList-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt index 537c61d1f..45b18d86f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Builder.txt @@ -31,23 +31,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -62,11 +62,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUI-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt index f71eb4ff1..4fa362b6d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt @@ -31,23 +31,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -62,11 +62,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt index 62c03b80c..fb6b8ceb6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Custom-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt index 268cb51a2..011f72192 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-CustomCreatedForPluginList-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-Plugin-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-PluginList-PluginList.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-PluginList-PluginList.txt index 8428125b2..4b01bc8c9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-PluginList-PluginList.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-PluginList-PluginList.txt @@ -38,31 +38,31 @@ public final class ___VARIABLE_productName___PluginListComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func PluginComponentFactory() -> PluginComponent { - /// PluginComponent(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func PluginComponentFactory() -> PluginComponent { + // PluginComponent(parent: self) + // } } // MARK: - Plugin List diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt index 62c03b80c..fb6b8ceb6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKit-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt index 268cb51a2..011f72192 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitCreatedForPluginList-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt index 537c61d1f..45b18d86f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Builder.txt @@ -31,23 +31,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -62,11 +62,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUI-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt index f71eb4ff1..4fa362b6d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt @@ -31,23 +31,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -62,11 +62,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt index 6d750828b..74d64345f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithIdentifier.Contents-ViewInjected-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt index 62c03b80c..fb6b8ceb6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKit-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt index 268cb51a2..011f72192 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitCreatedForPluginList-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt index 537c61d1f..45b18d86f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Builder.txt @@ -31,23 +31,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -62,11 +62,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUI-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt index f71eb4ff1..4fa362b6d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Builder.txt @@ -31,23 +31,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -62,11 +62,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-AppKitSwiftUICreatedForPluginList-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt index 62c03b80c..fb6b8ceb6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Custom-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt index 268cb51a2..011f72192 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-CustomCreatedForPluginList-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-Plugin-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-PluginList-PluginList.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-PluginList-PluginList.txt index 8428125b2..4b01bc8c9 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-PluginList-PluginList.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-PluginList-PluginList.txt @@ -38,31 +38,31 @@ public final class ___VARIABLE_productName___PluginListComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func PluginComponentFactory() -> PluginComponent { - /// PluginComponent(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func PluginComponentFactory() -> PluginComponent { + // PluginComponent(parent: self) + // } } // MARK: - Plugin List diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt index 62c03b80c..fb6b8ceb6 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKit-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt index 268cb51a2..011f72192 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitCreatedForPluginList-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt index 537c61d1f..45b18d86f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Builder.txt @@ -31,23 +31,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -62,11 +62,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUI-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt index f71eb4ff1..4fa362b6d 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Builder.txt @@ -31,23 +31,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -62,11 +62,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-UIKitSwiftUICreatedForPluginList-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self) diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt index 6d750828b..74d64345f 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Builder.txt @@ -33,23 +33,23 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } private let dynamicDependency: ___VARIABLE_productName___DynamicComponentDependency @@ -64,11 +64,11 @@ public final class ___VARIABLE_productName___Component: Component // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } } // MARK: - Builder diff --git a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt index c62618f6a..5adcdea5b 100644 --- a/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt +++ b/Tests/NodesGeneratorTests/__Snapshots__/XcodeTemplateGeneratorTests/testGenerateWithURL.Contents-ViewInjected-Plugin.txt @@ -22,31 +22,31 @@ public final class ___VARIABLE_productName___PluginComponent: Component // MARK: - Dependencies - /// Define dependencies as `fileprivate` computed property factories that create new instances when accessed. - /// Only increase access control to `public` when the component is to provide the dependency to its descendants. - /// - /// fileprivate var exampleFactory: Example { - /// Example() - /// } - /// - /// Store the dependency on the component only when shared state is necessary. - /// - /// fileprivate let example: Example = .init() - /// - /// Or use the `shared` helper method which always returns the same instance from the computed property. - /// This is only necessary for dependencies initialized with other dependencies. - /// - /// fileprivate var example: Example { - /// shared { Example(otherDependency: dependency.otherDependency) } - /// } + // Define dependencies as `fileprivate` computed property factories that create new instances when accessed. + // Only increase access control to `public` when the component is to provide the dependency to its descendants. + // + // fileprivate var exampleFactory: Example { + // Example() + // } + // + // Store the dependency on the component only when shared state is necessary. + // + // fileprivate let example: Example = .init() + // + // Or use the `shared` helper method which always returns the same instance from the computed property. + // This is only necessary for dependencies initialized with other dependencies. + // + // fileprivate var example: Example { + // shared { Example(otherDependency: dependency.otherDependency) } + // } // MARK: - Child Components - /// Define child component factories as 'fileprivate' methods. - /// - /// fileprivate func ComponentFactory() -> Component { - /// Component(parent: self) - /// } + // Define child component factories as 'fileprivate' methods. + // + // fileprivate func ComponentFactory() -> Component { + // Component(parent: self) + // } fileprivate func componentFactory() -> ___VARIABLE_productName___Component { ___VARIABLE_productName___Component(parent: self)