-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dontet): excessive overrides generated (#3355)
A mis-understanding of the jsii specification early on was carried over in the .NET code generators until now, which caused all methods and properties that are overrides (of other JS implementations) to result in jsii overrides being registered by the runtime. This behavior caused unnecessary round-trips between the .NET CLR and the node sidekick process, which affected the performance of .NET bindings (unnecessary round-trips with JSON encoding aren't free), and had a tendency to hit obscure edge case bugs in the jsii kernel's Ser/De behavior. This PR removes all `isOverride: true` declarations from generated .NET code and neutralizes the behavior of specifying it to be true. User-defined overrides (.NET code overriding JS code) continue to work as they previously did (the `isOverride` attribute should simply not have existed, ever). --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
- Loading branch information
Romain Marcadier
authored
Jan 31, 2022
1 parent
20419b4
commit 5460d66
Showing
7 changed files
with
171 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
packages/jsii-pacmak/test/generated-code/__snapshots__/examples.test.ts.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.