Skip to content

Commit 98e3786

Browse files
committed
Implement BasicMacroExpansionContext.buildConfiguration (#3191)
* Implement BasicMacroExpansionContext.buildConfiguration * Fix formatting
1 parent 9b6d2d0 commit 98e3786

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)