Skip to main content

emit_classpath_nodes

Function emit_classpath_nodes 

Source
pub fn emit_classpath_nodes(
    index: &ClasspathIndex,
    staging: &mut StagingGraph,
    file_registry: &mut FileRegistry,
    interner: &mut StringInterner,
    metadata_store: &mut NodeMetadataStore,
    provenance: &[ClasspathProvenance],
) -> ClasspathResult<EmissionResult>
Expand description

Emit all classpath nodes and edges into a staging graph.

Returns the mapping of FQN to NodeId for ExportMap registration and cross-reference edge creation.

§Arguments

  • index - The merged classpath index containing all parsed class stubs.
  • staging - The staging graph to emit nodes and edges into.
  • file_registry - File registry for synthetic file registration.
  • interner - String interner for name/qualifier interning.
  • metadata_store - Metadata store for classpath provenance attachment.
  • provenance - Provenance information for each JAR.

§Errors

Returns ClasspathError::EmissionError if string interning or file registration fails.