mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +03:00
0b5ad7a7bd
This adds the presence of interface names, as well as lists of choices and their argument/return types for each interface. It also changes the semantics of DefTemplate and EnvironmentInterface: each may contain "unresolved choices", which are the choices inherited from interfaces for each implementing template; EnvironmentInterface#resolveChoices will copy the full type information as a concrete choice for each implementing template, which should be much simpler for codegen and json-api. A type generator should take account of the astInterfaces as well as typeDecls in EnvironmentInterface; interfaces aren't included in typeDecls because where I is an interface only ContractId I is serializable. * Ast.DataInterface is empty, just use the interfaces map directly * port json-api for interface API changes; does not solve #12689 * port Scala codegen for interface API changes; does not add support * port Java codegen for interface API changes; does not solve #11350 CHANGELOG_BEGIN CHANGELOG_END |
||
---|---|---|
.. | ||
src | ||
BUILD.bazel |