Skip to main content

build_frame_buffer_content

Function build_frame_buffer_content 

Source
pub(crate) fn build_frame_buffer_content(
    wave_container: &WaveContainer,
    scope_ref: &ScopeRef,
) -> Option<(Vec<ArrayLevel>, Vec<VariableRef>)>
Expand description

Analyses the scope hierarchy rooted at scope_ref and returns:

  • levels: one ArrayLevel per nesting level, where the last level is for variables
  • all_leaf_vars: every variable reachable from the root (for pre-loading)

Returns None when scope_ref is not found in the hierarchy.