Skip to content

Commit 1d233d6

Browse files
authored
Merge pull request #3228 from jmschonfeld/6.3/basicmacroexpansioncontext-buildconfig
[6.3] Implement BasicMacroExpansionContext.buildConfiguration
2 parents 681ea06 + 98e3786 commit 1d233d6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Sources/SwiftSyntaxMacroExpansion/BasicMacroExpansionContext.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,8 @@ extension BasicMacroExpansionContext: MacroExpansionContext {
269269
let converter = SourceLocationConverter(fileName: fileName, tree: rootSourceFile)
270270
return AbstractSourceLocation(converter.location(for: rawPosition + offsetAdjustment))
271271
}
272+
273+
public var buildConfiguration: (any BuildConfiguration)? {
274+
sharedState.buildConfiguration
275+
}
272276
}

0 commit comments

Comments
 (0)