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

Dyno: Generate function bodies for init=, deinit, and (de)serializers #26322

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

benharsh
Copy link
Member

This PR generates uAST for init=, deinit, and (de)serializers), and cleans up some of the relevant implementations while we're at it. This PR also includes a couple of minor changes to either avoid crashes or fix bugs.

Testing:

  • test-dyno

Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Builds a signature and body for 'init='. An open TODO is to constrain
the type of 'other' to be the same as the type being initialized.

While there, refactor some common logic with 'init'.

Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
Signed-off-by: Ben Harshbarger <ben.harshb@gmail.com>
@arezaii arezaii self-requested a review November 27, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants