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

Rendering interpolator #209

Merged
merged 24 commits into from
May 11, 2022
Merged

Rendering interpolator #209

merged 24 commits into from
May 11, 2022

Conversation

Baccata
Copy link
Contributor

@Baccata Baccata commented May 10, 2022

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.

@CLAassistant
Copy link

CLAassistant commented May 10, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ yisraelU
✅ Baccata
❌ yunion


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.

@Baccata Baccata mentioned this pull request May 10, 2022
Copy link
Contributor

@daddykotex daddykotex left a 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
Copy link
Contributor

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"
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch

yisraelU added 2 commits May 10, 2022 13:13
type ascription will just be Timestamp and Document ,this results in a code chamnge in example ArbitraryData
build.sbt Outdated Show resolved Hide resolved
@Baccata Baccata merged commit 38bb8fa into main May 11, 2022
@Baccata Baccata deleted the rendering-interpolator branch May 11, 2022 09:56
@Baccata
Copy link
Contributor Author

Baccata commented May 11, 2022

good work @yisraelU !

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.

5 participants