diff --git a/Generator/Sources/NeedleFramework/Generating/Pluginized/PluginizedDependencyGraphExporter.swift b/Generator/Sources/NeedleFramework/Generating/Pluginized/PluginizedDependencyGraphExporter.swift index 104c8ba2..876b7405 100644 --- a/Generator/Sources/NeedleFramework/Generating/Pluginized/PluginizedDependencyGraphExporter.swift +++ b/Generator/Sources/NeedleFramework/Generating/Pluginized/PluginizedDependencyGraphExporter.swift @@ -19,7 +19,7 @@ import Foundation import SourceParsingFramework /// The generation phase entry class that executes tasks to process dependency -/// graph components, inlcuding pluginized and non-core ones, into necessary +/// graph components, including pluginized and non-core ones, into necessary /// dependency providers and their registrations, then exports the contents to /// the destination path. class PluginizedDependencyGraphExporter { @@ -28,10 +28,10 @@ class PluginizedDependencyGraphExporter { /// code for the given components and pluginized components, and export /// the source code to the given destination path. /// - /// - parameter components: Array of Components to generate dependnecy + /// - parameter components: Array of Components to generate dependency /// providers for /// - parameter pluginizedComponents: Array of pluginized components to - /// generate plugin extensions and dependnecy providers for. + /// generate plugin extensions and dependency providers for. /// - parameter imports: The import statements. /// - parameter path: Path to file where we want the results written to. /// - parameter executor: The executor to use for concurrent computation of diff --git a/Generator/Sources/NeedleFramework/Parsing/Tasks/ASTProducerTask.swift b/Generator/Sources/NeedleFramework/Parsing/Tasks/ASTProducerTask.swift index e4b93b5a..e67a4377 100644 --- a/Generator/Sources/NeedleFramework/Parsing/Tasks/ASTProducerTask.swift +++ b/Generator/Sources/NeedleFramework/Parsing/Tasks/ASTProducerTask.swift @@ -24,7 +24,7 @@ import SwiftSyntax #endif /// A task that parses a Swift source content and produces Swift AST that -/// can then be parsed into the dependnecy graph. +/// can then be parsed into the dependency graph. class ASTProducerTask: AbstractTask { /// Initializer. diff --git a/Generator/Sources/NeedleFramework/Utilities/Constants.swift b/Generator/Sources/NeedleFramework/Utilities/Constants.swift index 77fcc76a..f2613f84 100644 --- a/Generator/Sources/NeedleFramework/Utilities/Constants.swift +++ b/Generator/Sources/NeedleFramework/Utilities/Constants.swift @@ -26,5 +26,5 @@ let bootstrapComponentName = "BootstrapComponent" /// The name of the protocol that all Dependency protocols inherit from. let dependencyProtocolName = "Dependency" -/// The name fo the class that all Component classes inherit from +/// The name of the class that all Component classes inherit from let componentClassName = "Component" diff --git a/Sources/NeedleFoundation/Bootstrap.swift b/Sources/NeedleFoundation/Bootstrap.swift index cdf50a19..851f2bf8 100644 --- a/Sources/NeedleFoundation/Bootstrap.swift +++ b/Sources/NeedleFoundation/Bootstrap.swift @@ -17,7 +17,7 @@ import Foundation /// An empty protocol that can be used for any components that require no -/// dependencies. This can be used as the dependnecy protocol of the root +/// dependencies. This can be used as the dependency protocol of the root /// component of a dependency graph. public protocol EmptyDependency: AnyObject {} diff --git a/Sources/NeedleFoundation/Component.swift b/Sources/NeedleFoundation/Component.swift index 075fe2a3..1dc11286 100644 --- a/Sources/NeedleFoundation/Component.swift +++ b/Sources/NeedleFoundation/Component.swift @@ -30,7 +30,7 @@ public protocol Registration { /// directly. /// @CreateMock public protocol Scope: AnyObject { - /// The path to reach this component on the dependnecy graph. + /// The path to reach this component on the dependency graph. var path: [String] { get } /// The parent of this component. @@ -83,7 +83,7 @@ open class Component: Scope { /// The parent of this component. public let parent: Scope - /// The path to reach this scope on the dependnecy graph. + /// The path to reach this scope on the dependency graph. // Use `lazy var` to avoid computing the path repeatedly. Internally, // this is always accessed with the `__DependencyProviderRegistry`'s lock // acquired. @@ -207,7 +207,7 @@ open class Component: Scope { /// The parent of this component. public let parent: Scope - /// The path to reach this scope on the dependnecy graph. + /// The path to reach this scope on the dependency graph. // Use `lazy var` to avoid computing the path repeatedly. Internally, // this is always accessed with the `__DependencyProviderRegistry`'s lock // acquired. diff --git a/Sources/NeedleFoundation/Internal/DependencyProviderRegistry.swift b/Sources/NeedleFoundation/Internal/DependencyProviderRegistry.swift index c5d8ff8b..e1c039d1 100644 --- a/Sources/NeedleFoundation/Internal/DependencyProviderRegistry.swift +++ b/Sources/NeedleFoundation/Internal/DependencyProviderRegistry.swift @@ -25,7 +25,7 @@ import Foundation // Once that happens, we can declare an `open createDependencyProvider` // method in the base component class. Generate extensions to all the // component subclasses that override the method to instantiate the -// dependnecy providers. +// dependency providers. public class __DependencyProviderRegistry { /// The singleton instance. diff --git a/Sources/NeedleFoundation/Pluginized/Internal/PluginExtensionProviderRegistry.swift b/Sources/NeedleFoundation/Pluginized/Internal/PluginExtensionProviderRegistry.swift index 2d85c93e..bbffd48d 100644 --- a/Sources/NeedleFoundation/Pluginized/Internal/PluginExtensionProviderRegistry.swift +++ b/Sources/NeedleFoundation/Pluginized/Internal/PluginExtensionProviderRegistry.swift @@ -24,7 +24,7 @@ import Foundation // Once that happens, we can declare an `open createPluginExtensionProvider` // method in the base pluginized component class. Generate extensions to // all the pluginized component subclasses that override the method to -// instantiate the dependnecy providers. +// instantiate the dependency providers. public class __PluginExtensionProviderRegistry { /// The singleton instance.