# Sema: simplify and clarify analyzeBodyInner and wrapper functions · gitcafe/zig

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

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

Visibility: public

Requested revision: f51d9ab892caeb63c40fcd2c1da4ade70038119c

Requested commit: f51d9ab892caeb63c40fcd2c1da4ade70038119c

Commit: f51d9ab892caeb63c40fcd2c1da4ade70038119c

Tree: 3d08789436e8f6c4fd748e63d04f4bb58768668b

Author: mlugg

Committer: mlugg

## Message

```
Sema: simplify and clarify analyzeBodyInner and wrapper functions

The signature and variants of Sema's main loop have evolved over time to
what was a quite confusing state of affairs. This commit makes minor
changes to how `analyzeBodyInner` works, and restructures/renames the
wrapper functions, adding doc comments to clarify their purposes. The
most notable change is that `analyzeBodyInner` now returns
`CompileError!void`; inline breaks are now all communicated via
`error.ComptimeBreak`.

```

## Parents

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

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