# AstGen: introduce 'reachableExpr' function · gitcafe/zig

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

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

Visibility: public

Requested revision: 7f5560689aeb0e2ab84c5e3dc48f84247bd5bdc3

Requested commit: 7f5560689aeb0e2ab84c5e3dc48f84247bd5bdc3

Commit: 7f5560689aeb0e2ab84c5e3dc48f84247bd5bdc3

Tree: eafe7ba69a4ebffc6c54067f6bf615daf6d89bdb

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: introduce 'reachableExpr' function

This function can be swapped out for calls to expr() to report a compile
error when the expression results in control flow that does not return.

```

## Parents

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

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