Expand description
Source map decoding and PC mapping utilities.
Re-exportsยง
use alloy_primitives::Bytes;๐use foundry_compilers::ProjectCompileOutput;๐use foundry_compilers::artifacts::sourcemap::SourceMap;๐use foundry_evm_core::ic::IcPcMap;๐use std::path::Path;๐use std::path::PathBuf;๐
Structsยง
- PcSource
Mapper - Maps program counters to source locations.
- Source
Data - Source data for a single contract.
- Source
Location - Represents a location in source code.
Functionsยง
- compute_
line_ ๐offsets - Computes the byte offset where each line starts in source content.
- load_
build_ sources - Loads sources for a specific ArtifactId.build_id
- offset_
to_ ๐line_ column - Converts a byte offset to 1-indexed line and column numbers.