Skip to content

Commit

Permalink
Fix minor typo in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sanghun0724 committed Aug 18, 2024
1 parent 6db73ae commit c1a4a84
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<AST> {

/// Initializer.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion Sources/NeedleFoundation/Bootstrap.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

Expand Down
6 changes: 3 additions & 3 deletions Sources/NeedleFoundation/Component.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -83,7 +83,7 @@ open class Component<DependencyType>: 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.
Expand Down Expand Up @@ -207,7 +207,7 @@ open class Component<DependencyType>: 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c1a4a84

Please sign in to comment.