Skip to content

Conversation

podtserkovskiy
Copy link

@podtserkovskiy podtserkovskiy commented Oct 7, 2025

Implemented in a similar way as scip-python do.

Examples of generated snapshots: sourcegraph/scip-go#172

For sourcegraph/scip-go#92

Copy link
Member

@jupblb jupblb left a comment

Choose a reason for hiding this comment

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

Overall this looks good to me.

@podtserkovskiy podtserkovskiy force-pushed the go_snapshots_enclosing_ranges branch from ca16b16 to a075e78 Compare October 10, 2025 14:14
@podtserkovskiy podtserkovskiy force-pushed the go_snapshots_enclosing_ranges branch from a075e78 to 19ba735 Compare October 10, 2025 14:20
@podtserkovskiy podtserkovskiy requested a review from jupblb October 10, 2025 14:22
Copy link
Member

@jupblb jupblb left a comment

Choose a reason for hiding this comment

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

LGTM. Please fix the remaining issues before merging.

}
enclosingRanges := enclosingRanges(document.Occurrences)
enclosingByStartLine := enclosingRangesByStartLine(enclosingRanges)
for _, ers := range enclosingByStartLine {
Copy link
Member

Choose a reason for hiding this comment

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

Nit: I'd prefer to get already sorted output from enclosingRangesBy...Line.

})
}
enclosingByEndLine := enclosingRangesByEndLine(enclosingRanges)
for _, ers := range enclosingByStartLine {
Copy link
Member

Choose a reason for hiding this comment

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

range enclosingByEndLine (but please move this to the function)

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.

2 participants