Trait FileAnalyzer

Source
pub trait FileAnalyzer {
    // Required method
    fn build_stack_graph_into<'a>(
        &self,
        stack_graph: &mut StackGraph,
        file: Handle<File>,
        path: &Path,
        source: &str,
        all_paths: &mut dyn Iterator<Item = &'a Path>,
        globals: &HashMap<String, String>,
        cancellation_flag: &dyn CancellationFlag,
    ) -> Result<(), BuildError>;
}

Required Methods§

Source

fn build_stack_graph_into<'a>( &self, stack_graph: &mut StackGraph, file: Handle<File>, path: &Path, source: &str, all_paths: &mut dyn Iterator<Item = &'a Path>, globals: &HashMap<String, String>, cancellation_flag: &dyn CancellationFlag, ) -> Result<(), BuildError>

Construct stack graph for the given file. Implementations must assume that nodes for the given file may already exist, and make sure to prevent node id conflicts, for example by using StackGraph::new_node_id.

Implementors§