daml/language-support
Martin Huschenbett 05860d1df4
daml2ts: Tie the knot between templates and their choices without hacks (#3839)
In the code generated by `daml2ts`, every template companion object lists
all its choices and every choice has a pointer back to the companion object
of its template. Thus, there's a knot to tie.

So far, we initialized the choices as `undefined` and later mutated them to
point to the template companion object. This feels kind of hacky,
particularly since we end up with cyclic values.

This PR pushes the pointer from the choice back to the template companion
object behind a lambda. This makes the hack unnecessary and removes the
cyclic values.
2019-12-13 12:03:51 +01:00
..
codegen-common Replace bazel-deps by rules_jvm_external (#3253) 2019-10-28 13:53:14 +01:00
codegen-main Reduce SDK tarball size by 70% by deduplicating Scala dependencies. (#3678) 2019-11-29 13:26:47 +00:00
hs/bindings Async package management (#3806) 2019-12-13 09:56:47 +01:00
java restore 0.13.38 logging defaults for daml jars (#3819) 2019-12-12 14:02:23 +01:00
scala Add ExceptionOps to extract exception details safely (#3822) 2019-12-11 18:38:44 +00:00
ts/codegen daml2ts: Tie the knot between templates and their choices without hacks (#3839) 2019-12-13 12:03:51 +01:00