use crate::ns::*; thread_local! { static REPORTED_UNIMPLEMENTED: Cell = Cell::new(false); } pub(crate) struct ControlFlowAnalysisIsUnimplemented; impl ControlFlowAnalysisIsUnimplemented { pub fn unimplemented() { if !REPORTED_UNIMPLEMENTED.get() { println!("Warning: Control flow analysis is not implemented in Razen in the present."); REPORTED_UNIMPLEMENTED.set(true); } } } pub(crate) struct ControlFlowParent<'a> { pub parent: ControlFlowBlock, pub next_siblings: &'a [Rc], } pub(crate) struct ControlFlowAnalyser; impl ControlFlowAnalyser { pub fn analyse_directives<'a>( _list: &[Rc], _cfg: &ControlFlowGraph, _building_block: &mut Vec>, _ascending_parents: &[ControlFlowParent<'a>] ) { ControlFlowAnalysisIsUnimplemented::unimplemented(); } }