-
Notifications
You must be signed in to change notification settings - Fork 246
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(go): extension & overrides mechanism #2717
Conversation
This reduces object (re)allocations and makes the code a little more efficient. Nothing groud-breaking through.
# Conflicts: # packages/@jsii/go-runtime/jsii-runtime-go/internal/typeregistry/registration.go # packages/@jsii/go-runtime/jsii-runtime-go/internal/typeregistry/typeregistry.go # packages/@jsii/go-runtime/jsii-runtime-go/runtime.go # packages/jsii-pacmak/test/generated-code/__snapshots__/target-go.test.ts.snap
# Conflicts: # packages/@jsii/go-runtime-test/project/compliance_test.go # packages/@jsii/go-runtime/jsii-runtime-go/internal/typeregistry/registration.go # packages/@jsii/go-runtime/jsii-runtime-go/runtime.go # packages/jsii-pacmak/test/generated-code/__snapshots__/target-go.test.ts.snap
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.
DevEx looks pretty good to me. Great job!
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.
Looks good. Just some doc comments. Added do-not-merge
# Conflicts: # packages/@jsii/go-runtime-test/project/compliance_test.go # packages/@jsii/go-runtime/jsii-runtime-go/internal/kernel/conversions.go # packages/jsii-pacmak/test/generated-code/__snapshots__/target-go.test.ts.snap
Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it! |
Merging (with squash)... |
# Conflicts: # gh-pages/content/specification/6-compliance-report.md # packages/@jsii/go-runtime-test/project/compliance_test.go # packages/jsii-pacmak/lib/targets/go/runtime/class-constructor.ts # packages/jsii-pacmak/test/generated-code/__snapshots__/examples.test.ts.snap # packages/jsii-pacmak/test/generated-code/__snapshots__/target-go.test.ts.snap
The title of this Pull Request does not conform with [Conventional Commits] guidelines. It will need to be adjusted before the PR can be merged. |
Merging (with squash)... |
This implements and documents a mechanism for supporting class
extension and overrides in go, where such concepts are not endemic.
This uses a new "overriding" constructor generated for open classes,
and a special tag users should use to specify which members are
overridden on the base type.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.