Skip to content

Commit c481b2b

Browse files
committed
Implement BasicMacroExpansionContext.buildConfiguration
1 parent 44ece85 commit c481b2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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)