# AstGen: implement opaque decls · gitcafe/zig

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

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

Visibility: public

Requested revision: 646eb1fa934c413f29505f4742c67e61314acd90

Requested commit: 646eb1fa934c413f29505f4742c67e61314acd90

Commit: 646eb1fa934c413f29505f4742c67e61314acd90

Tree: 1da1462d9f3eaf6f0fc330e475c5ad92d265a83d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: implement opaque decls

Also move the decls to the beginning in ZIR encoding because in Sema we
want to create the namespace with the decls before evaluating the
fields.

```

## Parents

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

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