Skip to content

Fix typo: Correct 'sourceManger' to 'sourceManager' #2955

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ fileprivate extension Syntax {
}

class PluginMacroExpansionContext {
private var sourceManger: SourceManager
private var sourceManager: SourceManager

/// The lexical context of the macro expansion described by this context.
let lexicalContext: [Syntax]
Expand All @@ -272,7 +272,7 @@ class PluginMacroExpansionContext {
internal private(set) var diagnostics: [Diagnostic] = []

init(sourceManager: SourceManager, lexicalContext: [Syntax], expansionDiscriminator: String = "") {
self.sourceManger = sourceManager
self.sourceManager = sourceManager
self.lexicalContext = lexicalContext
self.expansionDiscriminator = expansionDiscriminator
}
Expand Down Expand Up @@ -316,7 +316,7 @@ extension PluginMacroExpansionContext: MacroExpansionContext {
at positionMode: PositionInSyntaxNode,
filePathMode: SourceLocationFilePathMode
) -> AbstractSourceLocation? {
guard let location = sourceManger.location(of: Syntax(node), at: positionMode, filePathMode: filePathMode) else {
guard let location = sourceManager.location(of: Syntax(node), at: positionMode, filePathMode: filePathMode) else {
return nil
}
return AbstractSourceLocation(location)
Expand Down