Re-exportsยง
use super::CoverageItemKind;๐use super::ExecutionAnchor;๐use super::ExecutionAnchorKind;๐use super::ItemAnchor;๐use super::ItemAnchors;๐use super::SourceLocation;๐use crate::analysis::EmptySpecialFunctionKind;๐use crate::analysis::SourceAnalysis;๐use alloy_primitives::map::rustc_hash::FxHashSet;๐use eyre::ensure;๐use foundry_compilers::artifacts::sourcemap::SourceElement;๐use foundry_compilers::artifacts::sourcemap::SourceMap;๐use foundry_evm_core::bytecode::InstIter;๐use foundry_evm_core::ic::IcPcMap;๐use revm::bytecode::opcode;๐
Structsยง
- Anchor
Index ๐ - Source map and branch lookups precomputed once per bytecode.
Functionsยง
- find_
anchors - Attempts to find anchors for the given items using the given source map and bytecode.
- find_
execution_ anchors - Finds execution-based anchors for empty constructors, receive functions, and fallbacks in a contract.
- is_
in_ ๐source_ range - Calculates whether
elementis within the range of the targetlocation.