Skip to main content

lgx_refusals

Function lgx_refusals 

Source
pub fn lgx_refusals(
    stmts: &[Stmt<'_>],
    interner: &Interner,
    types: Option<&TypeRegistry>,
) -> Vec<Refusal>
Expand description

Every refusal this tier raises for an LGX construct in stmts — a mounted component or page it cannot lower, a ## Route, an ## Error page — each located at the construct its author wrote, in the order a compile meets them.

A compile stops at the first; an editor shows them all. Both read the refusals the compiler’s own arms raise, so the two cannot disagree about what is refused, what it is called, or where.