daml/daml-lf/encoder
Stefano Baghino 84c8be8181
Restrict Java codegen to types that can be seen over the Ledger API (#13571)
* Restrict Java codegen to types that can be seen over the Ledger API

Fixes #13324

Builds on top of refactorings part of #13372, #13439 and #13440,
alongside adding interface support to the transitive closure function
in #13557.

changelog_begin
[Java codegen] The Java codegen now restricts its output to Daml definitions
that are either directly or indirectly referred as part of a template or
interface (that is, only the types that can be seen over the Ledger API).
See #13324 for further details.
changelog_end

* Adapt tests to add template references for every type

* Address https://github.com/digital-asset/daml/pull/13440#discussion_r837318725

* Avoid invoking the recursion from two different places.

* Address https://github.com/digital-asset/daml/pull/13571#discussion_r848441581

* Address https://github.com/digital-asset/daml/pull/13571#discussion_r848442738

* Address https://github.com/digital-asset/daml/pull/13571#discussion_r848314960
2022-04-12 18:16:29 +02:00
..
src Restrict Java codegen to types that can be seen over the Ledger API (#13571) 2022-04-12 18:16:29 +02:00
BUILD.bazel Reduce noise when building //daml-lf/encoder:testing-dar-* (#13313) 2022-03-16 16:24:16 +00:00