# AstGen: doc comment fixups · gitcafe/zig

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

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

Visibility: public

Requested revision: 8a697262099d64b2ff222dc9271493fe3b5f2b76

Requested commit: 8a697262099d64b2ff222dc9271493fe3b5f2b76

Commit: 8a697262099d64b2ff222dc9271493fe3b5f2b76

Tree: 78ea36adce4a5fa5fa8739e38f408cb4f305c6db

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: doc comment fixups

 * AstGen: use Ast.zig helper methods to avoid copy pasting token counting logic
   - take advantage of the `first_doc_comment` field we already have for
     param AST nodes
 * Add missing ZIR docs

```

## Parents

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

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