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

feat: update GenerationContext with directed codegen related changes #1405

Merged
merged 3 commits into from
Mar 27, 2024

Conversation

AndrewFossAWS
Copy link
Contributor

@AndrewFossAWS AndrewFossAWS commented Mar 14, 2024

Description of changes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@syall syall left a comment

Choose a reason for hiding this comment

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

When checking out this PR with the changes in smithy-lang/smithy-swift#681 and running ./scripts/codegen.sh, there are unaccounted codegen diffs: https://gist.github.com/syall/b3be467594818c89b19bc477b0627e89

Besides the no-ops of code just moving around, some of the error structures are missing the CustomDebugStringConvertibleGenerator extension (e.g. this ValidationException).

I think this is because DirectedSwiftCodegen visits errors explicitly, but CodegenVisitor treated errors as normal structures. See the PR comment for a possible fix: smithy-lang/smithy-swift#681 (comment)

The CI is also failing, unsure why.

Copy link
Contributor

@syall syall left a comment

Choose a reason for hiding this comment

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

Approving pending CI passes.

@AndrewFossAWS AndrewFossAWS merged commit 5445545 into main Mar 27, 2024
17 checks passed
@AndrewFossAWS AndrewFossAWS deleted the dcg branch March 27, 2024 23:03
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.

3 participants