# AstGen: fix "missing function name" error · gitcafe/zig

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

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

Visibility: public

Requested revision: 04b801655cbd9b4f6f00027fc1f638b237890149

Requested commit: 04b801655cbd9b4f6f00027fc1f638b237890149

Commit: 04b801655cbd9b4f6f00027fc1f638b237890149

Tree: ffe751fa99e752deb81fbe3206197900a46df9ae

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: fix "missing function name" error

scanDecls() made an incorrect assumption about all declarations having
function names. The compile error for "missing function name" needed to
go into scanDecls().

```

## Parents

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

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