# compiler: begin untangling anonymous decls from source decls · gitcafe/zig

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

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

Visibility: public

Requested revision: 55e89255e18163bcc153138a4883ec8d85e0d517

Requested commit: 55e89255e18163bcc153138a4883ec8d85e0d517

Commit: 55e89255e18163bcc153138a4883ec8d85e0d517

Tree: b396ca88ce1bac6d3ea7c73e5e081c6f1ed58360

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
compiler: begin untangling anonymous decls from source decls

The idea here is to move towards a future where anonymous decls are
represented entirely by an `InternPool.Index`. This was needed to start
implementing `InternPool.getFuncDecl` which requires moving creation and
deletion of Decl objects into InternPool.

 * remove `Namespace.anon_decls`
 * remove the concept of cleaning up resources from anonymous decls,
   relying on InternPool instead.
 * move namespace and decl object allocation into InternPool

```

## Parents

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

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