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

Annotate CallKind and DotCallKind in AST #195

Merged
merged 4 commits into from
May 7, 2024
Merged

Annotate CallKind and DotCallKind in AST #195

merged 4 commits into from
May 7, 2024

Conversation

BinderDavid
Copy link
Collaborator

The information whether a Call stands for a constructor, codefinition or toplevel definition is currently not recorded in the AST, but has to be reconstructed by looking up in the context what the name refers to. (Similarly for DotCall which can stand for destructors or codefinitions).

This PR annotates the AST with CallKind resp. DotCallKind and uses this information to display more accurate information on hover.

Other small refactorings:

  • Put the formatting and codeactions implementations of the LSP server into their own modules.
  • Rename Ctor and Dtor in the evaluator to Call and DotCall in order to be consistent with the other AST representations.

@BinderDavid BinderDavid requested a review from timsueberkrueb May 6, 2024 14:49
@BinderDavid BinderDavid mentioned this pull request May 6, 2024
@BinderDavid BinderDavid merged commit 368e245 into main May 7, 2024
6 checks passed
@BinderDavid BinderDavid deleted the improve-lsp branch January 8, 2025 10:17
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