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

Symbol tables #72

Merged
merged 8 commits into from
May 9, 2024
Merged

Symbol tables #72

merged 8 commits into from
May 9, 2024

Conversation

qvalentin
Copy link
Collaborator

@qvalentin qvalentin commented Apr 5, 2024

Major refactoring of hover, completion and definition.
By parsing the template ast into a symbol table that contains info about which nodes have semantic meaning.

The symbol table currently contains info about:

  • the template context (e.g. .Values.test will get 2 entries in the symbol table, one for .Values and one for .Values.test)
  • Declaration and useage of includes

With the symbol table many usecases became much easier to implement, since a lot of the required parsing is already done. This also allowed adding the references usecase pretty easy.
The refactoring of the usecases allows for adding new features very easy without having a lot of, if-else like before.

@qvalentin qvalentin force-pushed the feature/symbol-tables branch from eca9b20 to 271cac9 Compare April 12, 2024 16:07
@qvalentin qvalentin force-pushed the feature/symbol-tables branch 2 times, most recently from 4cd95a5 to c679d9f Compare May 3, 2024 19:40
@qvalentin qvalentin marked this pull request as ready for review May 8, 2024 15:14
@qvalentin qvalentin force-pushed the feature/symbol-tables branch from 6630f69 to 88706f0 Compare May 9, 2024 14:16
@qvalentin qvalentin merged commit aab553b into master May 9, 2024
4 checks passed
@qvalentin qvalentin deleted the feature/symbol-tables branch July 21, 2024 15:21
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.

1 participant