Expand description
Java’s role rows: one row of each shape the macro accepts, so the
shapes were proven against a real grammar before any consumer read
them (#1691). The Halstead keyword roles (#1693), the
paying-construct roles — Comparison, ShortCircuit, EagerLogical,
Ternary, CaseArm, Guard, NullSafe (#1694, #1695) — the space
tree (#1696) and the control flow — Branch, Switch, Loop,
Catch, ElseIf, Exit (#1697) — and
the documentation rows (#1699) are declared.
Modules§
- branch
- This language’s
Branchrow. - call
- This language’s
Callrow. - case_
arm - This language’s
CaseArmrow. - catch
- This language’s
Catchrow. - closure
- This language’s
Closurerow. - comment
- This language’s
Commentrow. - comparison
- This language’s
Comparisonrow. - container
- This language’s
Containerrow. - decl_
keyword - This language’s
DeclKeywordrow. - doc_
body_ residual - This language’s
DocBodyResidualrow. - doc_
comment - This language’s
DocCommentrow. - doc_
run_ directive - This language’s
DocRunDirectiverow. - doc_
run_ opener - This language’s
DocRunOpenerrow. - doc_
target - This language’s
DocTargetrow. - docstring
- This language’s
Docstringrow. - eager_
logical - This language’s
EagerLogicalrow. - else_if
- This language’s
ElseIfrow. - exit
- This language’s
Exitrow. - func_
opener - This language’s
FuncOpenerrow. - guard
- This language’s
Guardrow. - loop
- This language’s
Looprow. - member
- This language’s
Memberrow. - modifier
- This language’s
Modifierrow. - null_
safe - This language’s
NullSaferow. - primitive
- This language’s
Primitiverow. - short_
circuit - This language’s
ShortCircuitrow. - string_
lit - This language’s
StringLitrow. - switch
- This language’s
Switchrow. - ternary
- This language’s
Ternaryrow.
Functions§
- is_
switch_ body_ kind - The container a
switchnests its arms in: theswitch_block, theSwitchowner’s child — a structural fact about the construct the row recognises, pinned byswitch_body_is_the_owners_child_and_not_the_switch_rows, not an owner of that row. The kind is claimed byDocBodyResidual(aswitch_blockholds a doc comment, #1699), which is a different question. Which consumer opens a level here (cognitive, so a ternary or lambda in the switch’s subject does not inherit one, #1697) is that consumer’s policy, and a consumer’s structural projection of an owner’s child lives as a namedfnbeside the table, as here (#1701); a DSLbodyattribute on theSwitchrow would be the declared form if a third grammar needs it. - opens_
space - The
SpaceKindnodeopens, folded over everyopensannotation in this table;Unknownwhen it opens none. This is the one gated scan of the space-opening rows: a consumer that needs both “does it open a space” and “which kind” calls this once and tests forUnknown, rather than paying each owner’s gate twice throughownsand here.