Please note that for multi-file projects we also have a source location type that includes the file name.
Describe the start and end source position of an element.
Every source range is also a valid source location (one without a file),
so all readers below accept either.
See
SourceRange.format and related utility functions for working with source ranges.
SourceRange.view if you prefer property access (range.startLine) over these functions.
Please note that for multi-file projects we also have a source location type that includes the file name. Describe the start and end source position of an element.
Every source range is also a valid source location (one without a file), so all readers below accept either.