mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
05860d1df4
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. |
||
---|---|---|
.. | ||
codegen-common | ||
codegen-main | ||
hs/bindings | ||
java | ||
scala | ||
ts/codegen |