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

Revamp of node system and injecting ctx everywhere #2114

Closed
wants to merge 12 commits into from

Conversation

oxisto
Copy link
Member

@oxisto oxisto commented Mar 8, 2025

This is a HUGE PR and I might need to split this into smaller pieces, but I am not sure if this is possible. Several things are happening here

Introduction of several intermediate Node sub-classes:

Not all our nodes need complete access to all graph edges (such as the EOG, etc.). For example, currently it is possible to set EOG edges on types, scope and language nodes, which does not make sense at all. There, this PR introduces three new node classes: EvaluatedNode which is the basis for the EOG, DataflowNode, which extends the EOG node and adds dataflow-related edges and finally AstNode which is the basis of all nodes that belong to the AST. (Currently, types are still AST nodes, but I want to entangle this as well).

@oxisto oxisto changed the title Adding constructors for ctx on scopes and types Revamp of node system and injecting ctx everywhere Mar 9, 2025
@oxisto oxisto force-pushed the cb/remove-ast-placement-by-add-declaration branch from 065865f to bf0a449 Compare March 10, 2025 14:03
Base automatically changed from cb/remove-ast-placement-by-add-declaration to main March 11, 2025 11:35
@oxisto
Copy link
Member Author

oxisto commented Mar 12, 2025

Closed in favour of #2126

@oxisto oxisto closed this Mar 12, 2025
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