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

Make SourceLocationConverter Sendable #2675

Closed j-f1 closed 1 month ago

j-f1 commented 1 month ago

This type was not able to be marked as Sendable because its sourceLocationDirectives property was declared as a var. However, this property was never actually mutated. I changed the initializers to always assign it a value, removing the need for the default [] value and enabling it to change to a let.

j-f1 commented 1 month ago

@swift-ci please test