Support caching instance bodies and skipping over identical copies when elaborating, to save time. Expose this functionality so that downstream consumers of the AST can easily do the same.
Note that the tricky detail here is figuring out how to handle hierarchical references into and out of the cached instances.
Support caching instance bodies and skipping over identical copies when elaborating, to save time. Expose this functionality so that downstream consumers of the AST can easily do the same.
Note that the tricky detail here is figuring out how to handle hierarchical references into and out of the cached instances.