Skip to main content

build_stack_graph

Function build_stack_graph 

Source
pub fn build_stack_graph(
    syntax: &SyntaxGraph,
    language: Language,
    path: &str,
) -> StackGraph
Expand description

Builds the stack graph of one file from its finished syntax graph.

path, relative to where imports resolve from and /-separated, names the module reached from the root. New nodes get ids above every id in syntax.