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

chore: Add SymbolUsageKind to GraphQL API#63371

Merged
varungandhi-src merged 4 commits into
mainfrom
vg/add-symbolusagekind
Jun 21, 2024
Merged

chore: Add SymbolUsageKind to GraphQL API#63371
varungandhi-src merged 4 commits into
mainfrom
vg/add-symbolusagekind

Conversation

@varungandhi-src

@varungandhi-src varungandhi-src commented Jun 20, 2024

Copy link
Copy Markdown
Contributor

Mostly a documentation-related PR, the implementation will be done later.

Fixes https://linear.app/sourcegraph/issue/GRAPH-697/add-symbolusagekind-to-usages

Test plan

n/a

Changelog

@varungandhi-src varungandhi-src requested a review from keynmol June 20, 2024 05:53
@cla-bot cla-bot Bot added the cla-signed label Jun 20, 2024
@github-actions github-actions Bot added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform labels Jun 20, 2024
@varungandhi-src varungandhi-src force-pushed the vg/add-symbolusagekind branch from 050e12d to e0397af Compare June 20, 2024 09:01
Comment thread cmd/frontend/graphqlbackend/codeintel.codenav.graphql Outdated
sound() override { ... }

func bark(dog: Dog):
^-^ (1)

@keynmol keynmol Jun 20, 2024

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.

^-^ kawaii

@keynmol keynmol left a comment

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.

Really fantastic docs 👍

varungandhi-src and others added 3 commits June 20, 2024 19:11
Co-authored-by: Anton Sviridov <velvetbaldmime@protonmail.com>
@varungandhi-src varungandhi-src enabled auto-merge (squash) June 21, 2024 02:38
@varungandhi-src varungandhi-src merged commit 4b3cfa3 into main Jun 21, 2024
@varungandhi-src varungandhi-src deleted the vg/add-symbolusagekind branch June 21, 2024 02:50
Comment on lines +750 to +753
animal.sound()
# ^---^ (1)
dog.sound()
# ^---^ (2)

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.

Did you mean to move these markers up into the interface and class blocks?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, the (1) and (2) mark the range passed as input. When I say "usageForSymbol for (1)" I'm talking about the input range. Do you think I should add more markers and clarify or change the wording?

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.

The thing that tripped me up is that this is the SymbolUsageKind for definitions, and both of these markers pointed at references.
I'll have to read this again on Monday, maybe I'm misunderstanding what this is about.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Right, so the output ranges will correspond to the declarations, but the input range may correspond to any site.

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.

3 participants