# AstGen: use correct token_src for switch, if and while exprs · gitcafe/zig

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

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

Visibility: public

Requested revision: f3353708d8df3b522c3ace618283f17a1733557b

Requested commit: f3353708d8df3b522c3ace618283f17a1733557b

Commit: f3353708d8df3b522c3ace618283f17a1733557b

Tree: 21af01d50ae1e59dacf3a26c9f6b3592d1386981

Author: travisstaloch

Committer: GitHub

## Message

```
AstGen: use correct token_src for switch, if and while exprs

fixes #18579
```

## Parents

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

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