Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Add sourceRange property to Symbol #237

Merged
merged 6 commits into from
Mar 30, 2021
Merged

Add sourceRange property to Symbol #237

merged 6 commits into from
Mar 30, 2021

Conversation

mattt
Copy link
Contributor

@mattt mattt commented Mar 29, 2021

Currently, Symbol defines a sourceLocation property that returns the start location of the symbol's declaration. As a step towards supporting #119, this PR replaces that with a new sourceRange property that comprises the start and end location.

Copy link
Member

@Lukas-Stuehrk Lukas-Stuehrk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice and very useful change, @mattt. (I needed exactly this functionality in a small tool that uses the SwiftDoc library and implemented it not as elegant in a branch of my fork).

@mattt mattt merged commit b0e3615 into master Mar 30, 2021
@mattt mattt deleted the symbol-source-range branch March 30, 2021 13:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants