Skip to content
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

[Query API] Location Query #1046

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

LukasPietzschmann
Copy link
Collaborator

No description provided.

Grouping of locations will be implemented shortly :)
@LukasPietzschmann LukasPietzschmann added enhancement New feature or request query api relates to the query api labels Oct 8, 2024
@LukasPietzschmann LukasPietzschmann self-assigned this Oct 8, 2024
@LukasPietzschmann LukasPietzschmann linked an issue Oct 8, 2024 that may be closed by this pull request
@EagleoutIce
Copy link
Member

Should i defer review until this is marked as ready?

@LukasPietzschmann
Copy link
Collaborator Author

Yes please, the grouping is still completely missing.

@LukasPietzschmann LukasPietzschmann marked this pull request as ready for review October 9, 2024 08:48
@LukasPietzschmann
Copy link
Collaborator Author

@EagleoutIce What do you think about adding a flag which, when set, will make the query return the fullRange of a node (if present)?

@EagleoutIce
Copy link
Member

I like the idea, but if so we should probably just generalize the fields you can query? maybe even rename this to 'node' or something and allow to filter for predefined keys like location, lexeme, ... maybe even as a list?

@EagleoutIce
Copy link
Member

But if this is too much, outsource this to another issue and we focus on what you require here.

return {
'.meta': {
/* there is no sense in measuring a get */
timing: 0
Copy link
Member

Choose a reason for hiding this comment

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

given there are multiple hashmap access operations, i would in-fact measure the time, as we are no longer constant!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request query api relates to the query api
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Query API] Location Query
2 participants