swiftlang / swift-syntax

A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code.
Apache License 2.0
3.13k stars 393 forks source link

Properly deprecate default implementation of `MacroExpansionContext.lexicalContext` #2695

Closed ahoppen closed 1 month ago

ahoppen commented 1 month ago

Now that we have rdar://123403268, we can change the default implementation of MacroExpansionContext.lexicalContext to return an empty array and be deprecated, making not implementing lexicalContext a compile-time warning instead of a runtime error.

rdar://123410459

ahoppen commented 1 month ago

@swift-ci Please test