Skip to main content

page_main_len

Function page_main_len 

Source
pub fn page_main_len(program: &[Stmt<'_>], interner: &Interner) -> usize
Expand description

How many leading statements of program are its page’s MAIN: everything before the first statement that acts on the page (drives_the_page) — the lowered prelude, the program’s definitions, and the top-level bindings a page’s State: may read. What follows is whoever drives the page, the page’s own mount among them. A reload runs exactly the main again.