# AstGen: fix name strategy bugs · gitcafe/zig

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

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

Visibility: public

Requested revision: 38266c50351fc64fd4f513d684d6f2c1aaad7f9a

Requested commit: 38266c50351fc64fd4f513d684d6f2c1aaad7f9a

Commit: 38266c50351fc64fd4f513d684d6f2c1aaad7f9a

Tree: abd90c75849ef6119d1bd81ebbbe6fb219c5fa38

Author: mlugg

Committer: Matthew Lugg

## Message

```
AstGen: fix name strategy bugs

Representing this with a `GenZir` field is incredibly bug-prone.
Instead, just pass this data directly to the relevant expression in the
very few places which actually provide a name strategy.

Resolves: #22798

```

## Parents

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

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