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

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

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

Visibility: public

Requested revision: 173db6eea6f7fd46c21e8e156c8437f9e2e7a710

Requested commit: 173db6eea6f7fd46c21e8e156c8437f9e2e7a710

Commit: 173db6eea6f7fd46c21e8e156c8437f9e2e7a710

Tree: 20ab0fcd11720575e43e3eb68d3f4987e378260f

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

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

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