Skip to content

Commit 749a09a

Browse files
authored
Merge pull request #2955 from honghoker/fix/sourceManager-typo
Fix typo: Correct 'sourceManger' to 'sourceManager'
2 parents af26da4 + 9bc3614 commit 749a09a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftCompilerPluginMessageHandling/PluginMacroExpansionContext.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ fileprivate extension Syntax {
250250
}
251251

252252
class PluginMacroExpansionContext {
253-
private var sourceManger: SourceManager
253+
private var sourceManager: SourceManager
254254

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

274274
init(sourceManager: SourceManager, lexicalContext: [Syntax], expansionDiscriminator: String = "") {
275-
self.sourceManger = sourceManager
275+
self.sourceManager = sourceManager
276276
self.lexicalContext = lexicalContext
277277
self.expansionDiscriminator = expansionDiscriminator
278278
}
@@ -316,7 +316,7 @@ extension PluginMacroExpansionContext: MacroExpansionContext {
316316
at positionMode: PositionInSyntaxNode,
317317
filePathMode: SourceLocationFilePathMode
318318
) -> AbstractSourceLocation? {
319-
guard let location = sourceManger.location(of: Syntax(node), at: positionMode, filePathMode: filePathMode) else {
319+
guard let location = sourceManager.location(of: Syntax(node), at: positionMode, filePathMode: filePathMode) else {
320320
return nil
321321
}
322322
return AbstractSourceLocation(location)

0 commit comments

Comments
 (0)