swiftlang/swift-syntax

Rename `file` parameter of `SourceLocationConverter` initializers to `fileName`

Closed this issue · 2 comments

file is ambiguous because it could also refer to the file contents. fileName is clearer.

Also rename the corresponding property. We should provide deprecated initializers that still accept file

Tracked in Apple’s issue tracker as rdar://113236778

I'll work on this if that's okay! Expect a PR in a few hours.