Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

refactor: renames usage cursor and adds fields for future syntactic cursor#64208

Merged
kritzcreek merged 4 commits into
mainfrom
christoph/syntactic-cursor
Aug 1, 2024
Merged

refactor: renames usage cursor and adds fields for future syntactic cursor#64208
kritzcreek merged 4 commits into
mainfrom
christoph/syntactic-cursor

Conversation

@kritzcreek

@kritzcreek kritzcreek commented Aug 1, 2024

Copy link
Copy Markdown
Contributor

Landing this early to avoid accumulating conflicts

Test plan

Shouldn't change functionality as new fields are unused for now

@cla-bot cla-bot Bot added the cla-signed label Aug 1, 2024
@github-actions github-actions Bot added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform labels Aug 1, 2024
Comment thread internal/codeintel/codenav/types.go Outdated
PreciseCursor Cursor `json:"pc"`
CursorType CursorType `json:"ty"`
PreciseCursor PreciseCursor `json:"pc"`
SyntacticCursor SyntacticCursor `json:"sc"`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe add a link to the open issue for pagination for search-based results?

var nextPreciseCursor Cursor
switch currentCursor.PreciseCursorType {
var nextPreciseCursor PreciseCursor
switch currentCursor.CursorType {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For the default case, add a panic or return an error.

@kritzcreek kritzcreek force-pushed the christoph/syntactic-cursor branch from 04192c0 to 24ff699 Compare August 1, 2024 10:23
@kritzcreek kritzcreek enabled auto-merge (squash) August 1, 2024 10:24
@kritzcreek kritzcreek merged commit a64832a into main Aug 1, 2024
@kritzcreek kritzcreek deleted the christoph/syntactic-cursor branch August 1, 2024 10:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants