-
Notifications
You must be signed in to change notification settings - Fork 73
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
Rendering interpolator #209
Conversation
# Conflicts: # modules/codegen/src/smithy4s/codegen/Renderer.scala
yunion seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
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.
minor comments and question
build.sbt
Outdated
@@ -295,8 +295,9 @@ lazy val codegen = projectMatrix | |||
Dependencies.Weaver.cats.value % Test | |||
), | |||
testFrameworks += new TestFramework("weaver.framework.CatsEffect"), | |||
scalacOptions := scalacOptions.value | |||
scalacOptions := scalacOptions.value |
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.
minor: alignment
case Primitive.ByteArray => Line(Set("smithy4s.ByteArray"), "ByteArray") | ||
case Primitive.Bool => line"Boolean" | ||
case Primitive.String => line"String" | ||
case Primitive.Timestamp => line"smithy4s.Timestamp" |
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.
don't we need the Line(Set("smithy4s.Timestamp"), "Timestamp")
syntax here? and on like 71 too?
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.
good catch
…hod, as its not needed in that file
type ascription will just be Timestamp and Document ,this results in a code chamnge in example ArbitraryData
good work @yisraelU ! |
Reworks the rendering logic to make use of a custom string-interpolator that allows to gather imports in an interpolated fashion.
In addition, renames a few constructs with more intuitive semantics.