Skip to main content

Module mozcpp

Module mozcpp 

Source
Expand description

Mozcpp’s role rows. The dialect owns no file extension and shares Cpp’s grammar shape with different kind ids, so its rows splice the same cpp_family_* fragments Cpp’s do (roles/c_family.rs, contract 5 of #1690): the paying-construct rows (#1694, #1695), the space tree (#1696) and the control flow (#1697) are declared through them, the Halstead keyword rows are declared (#1693) and the rest are pending or absent as Cpp’s are. Nothing routes a file to this dialect, so no corpus snapshot reaches these rows; tests/parity/cpp_mozcpp_parity.rs holds the two dialects together.

Modules§

branch
This language’s Branch row.
call
This language’s Call row.
case_arm
This language’s CaseArm row.
catch
This language’s Catch row.
closure
This language’s Closure row.
comment
This language’s Comment row.
comparison
This language’s Comparison row.
container
This language’s Container row.
decl_keyword
This language’s DeclKeyword row.
doc_body_residual
This language’s DocBodyResidual row.
doc_comment
This language’s DocComment row.
doc_run_directive
This language’s DocRunDirective row.
doc_run_opener
This language’s DocRunOpener row.
doc_target
This language’s DocTarget row.
docstring
This language’s Docstring row.
eager_logical
This language’s EagerLogical row.
else_if
This language’s ElseIf row.
exit
This language’s Exit row.
func_opener
This language’s FuncOpener row.
guard
This language’s Guard row.
loop
This language’s Loop row.
member
This language’s Member row.
modifier
This language’s Modifier row.
null_safe
This language’s NullSafe row.
primitive
This language’s Primitive row.
short_circuit
This language’s ShortCircuit row.
string_lit
This language’s StringLit row.
switch
This language’s Switch row.
ternary
This language’s Ternary row.

Functions§

opens_space
The SpaceKind node opens, folded over every opens annotation in this table; Unknown when 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 for Unknown, rather than paying each owner’s gate twice through owns and here.