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

Hovering for implicit behavior in the grammar language #355

Closed
msujew opened this issue Jan 13, 2022 · 2 comments · Fixed by #473
Closed

Hovering for implicit behavior in the grammar language #355

msujew opened this issue Jan 13, 2022 · 2 comments · Fixed by #473
Assignees
Labels
grammar Grammar language related issue

Comments

@msujew
Copy link
Member

msujew commented Jan 13, 2022

Stuff like

  • Which token/data type rule is used for cross references
  • TypeScript type definitions for types built from parser rules
@msujew msujew added the grammar Grammar language related issue label Jan 13, 2022
@danieldietrich
Copy link
Contributor

danieldietrich commented Jan 13, 2022

For cross-references (in my mental model I see them as inline rules) like func=[type:alternative], we can omit the alternative. What remains is func=[type] and Langium implicitly adds the alternative. Here, it would be helpful to have a link in the tooltip that navigates to the origin of the implicit information.

Example:

Rule: func=[AbstractFunc]

// The tooltip shows the following when hovering AbstractFunc:
// AbstractFunc: ID (inferred from Xxx)
//                                 ^^^---- link to the 'name' attribute of a rule (or type?) that led to ID

@spoenemann
Copy link
Contributor

See also #450

@gfontorbe gfontorbe linked a pull request Apr 11, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
grammar Grammar language related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants