Skip to main content Module analysis Copy item path Source use super::CoverageItem ; ๐ use super::CoverageItemKind ; ๐ use super::RevertGuard ; ๐ use super::SourceLocation ; ๐ use alloy_primitives::map::HashMap; ๐ use foundry_common::TestFunctionExt ; ๐ use foundry_compilers::ProjectCompileOutput; ๐ use solar::ast; ๐ use solar::ast::ExprKind; ๐ use solar::ast::ItemKind; ๐ use solar::ast::StmtKind; ๐ use solar::ast::yul; ๐ use solar::data_structures::Never; ๐ use solar::data_structures::map::FxHashMap; ๐ use solar::interface::RelativeBytePos; ๐ use solar::interface::Span; ๐ use solar::interface::sym; ๐ use solar::sema::Gcx; ๐ use solar::sema::hir; ๐ use std::ops::ControlFlow ; ๐ use std::ops::Range ; ๐ use std::path::PathBuf ; ๐ use std::sync::Arc ; ๐ use rayon::prelude::*; ๐ AnchorHints ๐ Optional recovery evidence, kept outside ordinary report items. IfArms ๐ The source spans of the arms of an if statement. PendingRevertGuard ๐ ResolvedEmptySpecialFunction ๐ SourceAnalysis Coverage source analysis. SourceFiles A list of sources from one compiler build. SourceVisitor ๐ A visitor that walks the AST of a single contract and finds coverage items. SourceVisitorCheckpoint ๐ TernaryArms ๐ The source spans of the arms of a ternary expression. TernaryVisitor ๐ Walks all expression shapes, adding only ternary decisions. Statement coverage remains owned
by the enclosing statement or the ordinary expression visitor. BranchKind ๐ The kind of a branch whose anchors depend on more than its source span. EmptySpecialFunctionKind ๐ has_statements ๐ is_regular_call ๐ resolve_empty_special_functions ๐ stmt_has_statements ๐ storage_alias_body ๐ Only source-level aliases, without calls, control flow, or modifiers, are mandatory on every
normal return. Bytecode must independently prove a side-effect-free, straight-line return.