Skip to content

Commit 5c78bd4

Browse files
committed
Say "in scope" instead of "visible".
1 parent 18dbbff commit 5c78bd4

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

AstSemantics.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ a value and may appear as children of other expressions.
238238
* `label`: a node which defines a label and must be an immediate child of `multiblock`
239239
* `if`: if expression with a *then* expression
240240
* `if_else`: if expression with *then* and *else* expressions
241-
* `br`: branch to a given visible label
242-
* `br_if`: conditionally branch to a given visible label
243-
* `tableswitch`: branch using a "jump table" of visible labels
241+
* `br`: branch to a given in-scope label
242+
* `br_if`: conditionally branch to a given in-scope label
243+
* `tableswitch`: branch using a "jump table" of in-scope labels
244244
* `return`: return zero or more values from this function
245245

246246
### Branches and nesting
@@ -249,11 +249,12 @@ The `br`, `br_if`, and `tableswitch` constructs express low-level branching. The
249249
`block`, `loop`, and `multiblock` constructs provide labels that may be branched
250250
to.
251251

252-
Branches may only reference *visible* labels. The labels in `block` and `loop`
253-
nodes are visible only from within their subtrees. The labels in `multiblock`
254-
nodes are only visible from within their subtrees, and only from earlier in
255-
the `multiblock` than their definition. This restriction ensures all control
256-
flow graphs are [reducible](http://dl.acm.org/citation.cfm?id=804919).
252+
Branches may only reference labels that are *in scope*. The labels in `block`
253+
and `loop` nodes are in scope only within their subtrees. The labels in
254+
`multiblock` nodes are only in scope only within their subtrees, and only in
255+
subtrees earlier in the `multiblock` than their definition. This restriction
256+
ensures all control flow graphs are
257+
[reducible](http://dl.acm.org/citation.cfm?id=804919).
257258

258259
In terms of control flow graphs, the reducible requirement imposes only one
259260
effective restriction: loops can only be entered from the top, and not from

0 commit comments

Comments
 (0)