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

Refactor the code for synthesizing the body of constructor #5231

Merged
merged 2 commits into from
Oct 6, 2024

Conversation

kaizhangNV
Copy link
Contributor

@kaizhangNV kaizhangNV commented Oct 4, 2024

This change is a separate PR for the issue #5192.
The only reason we separate this from PR #5215 is we don't want to bloat the size this PR.

This change just refactor the logic of synthesizing the body of the constructor inside SemanticsDeclBodyVisitor::visitAggTypeDecl.

It makes the code more manageable and readable, and also remove some redundant logic and variable creation.

@kaizhangNV kaizhangNV marked this pull request as draft October 4, 2024 21:28
@kaizhangNV kaizhangNV added the pr: non-breaking PRs without breaking changes label Oct 4, 2024
@kaizhangNV kaizhangNV marked this pull request as ready for review October 6, 2024 17:40
@kaizhangNV kaizhangNV changed the title [draft]: experiment change needs to run CI Refactor the code for synthesizing the body of constructor Oct 6, 2024
@csyonghe csyonghe merged commit ff51c21 into shader-slang:master Oct 6, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: non-breaking PRs without breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants