diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2021-03-15 14:41:15 +0100 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2021-03-15 14:55:34 +0100 |
| commit | 48efa3bcb678ac2f869554b4c5383f865ad73a33 (patch) | |
| tree | 15bf7ad888efba6fef3f514f2a501c5129e68ef6 /src/codegen.zig | |
| parent | b4db03d8bb29f0cded857300df460b4247e85670 (diff) | |
| download | zig-48efa3bcb678ac2f869554b4c5383f865ad73a33.tar.gz zig-48efa3bcb678ac2f869554b4c5383f865ad73a33.zip | |
zig fmt: simplify and improve consistency of if/for/while handling
The main realization here was that getting rid of the early returns
in renderWhile() and rewriting the logic into a mostly unified execution
path took things from ~200 lines to ~100 lines and improved consistency
by deduplicating code.
Also add several test cases and fix a few issues along the way:
Fixes https://github.com/ziglang/zig/issues/6114
Fixes https://github.com/ziglang/zig/issues/8022
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
