Crate cpp_synmap

Source
Expand description

synmap provides utilities for parsing multi-file crates into syn AST nodes, and resolving the spans attached to those nodes into raw source text, and line/column information.

The primary entry point for the crate is the SourceMap type, which stores mappings from byte offsets to file information, along with cached file information.

Structsยง

  • Information regarding the on-disk location of a span of code. This type is produced by SourceMap::locinfo.
  • The SourceMap is the primary entry point for synmap. It maintains a mapping between Span objects and the original source files they were parsed from.