Skip to content

TreeCopier doesn't preserve attachments #4291

Closed
@Duhemm

Description

@Duhemm

While working on embedding the doc in Tasty, I noticed that the TreeCopier subclasses don't copy over the attachments of the trees.

Is this on purpose?

Doc comments are stored as attachments on MemberDef trees, and cannot be recovered in the REPL for instance, because they're discarded when the trees are modified.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions