# stage2: add \`owns_tv\` flag to \`Module.Decl\` · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/bcf15e39e2d4e2243f475852aca7749e40a70fbd)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: bcf15e39e2d4e2243f475852aca7749e40a70fbd

Requested commit: bcf15e39e2d4e2243f475852aca7749e40a70fbd

Commit: bcf15e39e2d4e2243f475852aca7749e40a70fbd

Tree: 367c697ea25a0649a263d13131ffaf0ec3f82ad4

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: add `owns_tv` flag to `Module.Decl`

Decl objects need to know whether they are the owner of the Type/Value
associated with them, in order to decide whether to destroy the
associated Namespace, Fn, or Var when cleaning up.

```

## Parents

- [dae22a0a1f13cc963e96cd704941eed29b8dde27](https://git.cafe/gitcafe/zig/commit/dae22a0a1f13cc963e96cd704941eed29b8dde27?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/bcf15e39e2d4e2243f475852aca7749e40a70fbd?format=markdown)
