aboutsummaryrefslogtreecommitdiff
path: root/lib/std/priority_queue.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-07-19 17:35:14 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-07-20 12:19:17 -0700
commitea902ffe8f5f337b04f25b4efc69599db74d99ce (patch)
tree7c0f184759b9ca8ebf9db49aa04ac91042eff705 /lib/std/priority_queue.zig
parentcaa0de545e2f45a96ac3136178f478dab1c89ebd (diff)
downloadzig-ea902ffe8f5f337b04f25b4efc69599db74d99ce.tar.gz
zig-ea902ffe8f5f337b04f25b4efc69599db74d99ce.zip
Sema: reimplement runtime switch
Now supports multiple items pointing to the same body. This is a common pattern even when using a jump table, with multiple cases pointing to the same block of code. In the case of a range specified, the items are moved to branches in the else body. A future improvement may make it possible to have jump table items as well as ranges pointing to the same block of code.
Diffstat (limited to 'lib/std/priority_queue.zig')
0 files changed, 0 insertions, 0 deletions