# AstGen: improved handling of declarations · gitcafe/zig

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

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

Visibility: public

Requested revision: 91c317bb9aa906684104db3d73442ab1198a83f4

Requested commit: 91c317bb9aa906684104db3d73442ab1198a83f4

Commit: 91c317bb9aa906684104db3d73442ab1198a83f4

Tree: 6d475619655b3b0b6d2914e9b11ad79d21b351b7

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: improved handling of declarations

 * Every decl provides a 16 byte source hash which can be used to detect
   if the source code for any particular decl has changed.
 * Include comptime decls, test decls, and usingnamespace decls in the
   decls list of namespaces.
   - Tests are encoded as extended functions with is_test bit set.

```

## Parents

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

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