-
Notifications
You must be signed in to change notification settings - Fork 80
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
Conversation
There was a problem hiding this 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.
There was a problem hiding this 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.
Description of changes
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.