Skip to content

fix: Propagate Locs instead of LocOffsets. - #98

Merged
varungandhi-src merged 1 commit into
scip-ruby/masterfrom
vg/fix-crash
Sep 7, 2022
Merged

varungandhi-src merged 1 commit into
scip-ruby/masterfrom
vg/fix-crash

Conversation

@varungandhi-src

Copy link
Copy Markdown
Contributor

Motivation

Fixes a crash when indexing Homebrew/brew, where we were running into
situations where we'd end up having a LocOffset for a nameLoc,
and it'd be unclear which file it corresponded to. Trying to
recover that information after the fact, such as from the method's
Loc field, seemed unreliable, so I've chosen to carry a Loc instead.

Test plan

Manually tested by indexing Hombrew/brew.

Fixes a crash when indexing Homebrew, where we were running into
situations where we'd end up having a LocOffset for a nameLoc,
and it'd be unclear which file it corresponded to. Trying to
recover that information after the fact, such as from the method's
Loc field, seemed unreliable, so I've chosen to carry a Loc instead.
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.

1 participant