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

Convert remaining TSG and reenable old tests #294

Merged
merged 152 commits into from
Jul 24, 2023
Merged

Conversation

hendrikvanantwerpen
Copy link
Collaborator

@hendrikvanantwerpen hendrikvanantwerpen commented Jul 12, 2023

TLDR. This completes the conversion from the stack graph rules in the old DSL to the new DSL. All tests (old and new) now succeed.

Details:

  • Converts anything that wasn't in the new TSG yet.

  • Reenables old tests. A few test expectations had to be changed in 2c16b0a, 9e04e60, ff5fce9, 297feec. I think those adjustments make sense, but it would be good to review those. All the old tests pass, as well as the new ones 🎉

  • Reverts the use of GUARD:MEMBER to . in dc7f042. This seemed a change that was in-progress. Reverting it was the easiest way for me to test the rest, but I have no objections to that change in itself.

  • Adds support for definiens_span and syntax_type attributes in f8009e1.

  • Merges in the latest changes from main.

Notes:

  • Instead of figuring out which syntax nodes have which (graph node) scoped variables, I've simply defined all possible (graph node) scoped variables on all nodes. A tree-sitter patch will make sure that the unused nodes do not end up in the stack graph.

  • There are some warnings about definiens_span and syntax_type being used on non-definition nodes. It looks like there are some cases where @name.pop is not turned into a definition. I haven't had time to dive into that, but it might suggest a coverage problem.

hendrikvanantwerpen and others added 30 commits May 17, 2023 11:31
Include edge debug information in visualization
Display stacks for each time a path crosses a node
…nts do not have to go through a seemingly fallible lookup themselves
Ensure special files are also indexed
Add flag to set max test runtime and limit CI test runner by default
Add `fully_qualified_name` field to `SourceInfo`
Use transaction mechanism instead of explicit BEGIN/COMMIT
@BekaValentine BekaValentine marked this pull request as ready for review July 20, 2023 21:51
@BekaValentine BekaValentine self-requested a review July 20, 2023 22:58
Copy link
Collaborator Author

@hendrikvanantwerpen hendrikvanantwerpen left a comment

Choose a reason for hiding this comment

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

Very nice! Especially that so many nodes are now local to a stanza is really clean.

I cannot approve because I opened this PR, but I think this is good to merge.

@BekaValentine BekaValentine merged commit 2a3fc6d into new_js Jul 24, 2023
9 checks passed
@BekaValentine BekaValentine deleted the convert-more-js-tsg branch July 24, 2023 19:05
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.

5 participants