Skip to content

Store symbol byte offset in IndexSymbol #26858

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 28, 2019
Merged

Store symbol byte offset in IndexSymbol #26858

merged 7 commits into from
Aug 28, 2019

Conversation

mwyman
Copy link
Contributor

@mwyman mwyman commented Aug 26, 2019

Adds the offset field to the IndexSymbol struct. This lets code using swift::index functions skip any line/column -> offset reverse calculation if the specific byte offset location is desired.

@jrose-apple jrose-apple requested a review from akyrtzi August 27, 2019 00:02
…gned>, getOffsetInBuffer is now replaced by returning a tuple with the offset from getLineColAndOffset (renamed from getLineCol).
@mwyman
Copy link
Contributor Author

mwyman commented Aug 28, 2019

@akyrtzi Is there something I need to do to trigger the smoke tests for this PR?

@akyrtzi
Copy link
Contributor

akyrtzi commented Aug 28, 2019

@swift-ci smoke test and merge

@swift-ci swift-ci merged commit c073e62 into swiftlang:master Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants