Skip to main content

TOP

Constant TOP 

Source
pub const TOP: &str = "\0TOP";
Expand description

The top of the dependency tree: the DependencyMap target key used for sources referenced directly by the top-level parse.

The TypeScript export is a Symbol, which Rust has no counterpart for, so this mirrors the Go port’s sentinel. The leading NUL byte guarantees it cannot collide with a real source path.