Skip to main contentModule preprocessor
Source use crate::errors::convert_solar_errors; ๐ use crate::fs::normalize_path; ๐ use foundry_compilers::ProjectPathsConfig; ๐ use foundry_compilers::SourceParser; ๐ use foundry_compilers::apply_updates; ๐ use foundry_compilers::artifacts::EvmVersion; ๐ use foundry_compilers::artifacts::SolcLanguage; ๐ use foundry_compilers::error::Result; ๐ use foundry_compilers::multi::MultiCompiler; ๐ use foundry_compilers::multi::MultiCompilerInput; ๐ use foundry_compilers::multi::MultiCompilerLanguage; ๐ use foundry_compilers::project::NativeDependencies; ๐ use foundry_compilers::project::NativeDependencyState; ๐ use foundry_compilers::project::Preprocessor; ๐ use foundry_compilers::project::PreprocessorState; ๐ use foundry_compilers::project::merge_native_dependencies; ๐ use foundry_compilers::resolver::Graph; ๐ use foundry_compilers::resolver::parse::SolData; ๐ use foundry_compilers::resolver::parse::SolParser; ๐ use foundry_compilers::solc::SolcCompiler; ๐ use foundry_compilers::solc::SolcVersionedInput; ๐ use solar::parse::ast::Span; ๐ use solar::parse::interface::SourceMap; ๐ use std::collections::BTreeSet; ๐ use std::collections::HashSet; ๐ use std::ops::ControlFlow; ๐ use std::ops::Range; ๐ use std::path::Path; ๐ use std::path::PathBuf; ๐ use std::sync::Arc; ๐ use std::sync::atomic::AtomicBool; ๐ use std::sync::atomic::Ordering; ๐ use data::collect_preprocessor_data; ๐ use data::create_deploy_helpers; ๐ use deps::ConstructorContext; ๐ use deps::PreprocessorDependencies; ๐ use deps::remove_bytecode_dependencies; ๐
- data ๐
- deps ๐
- DynamicTestLinkingPreprocessor
- Preprocessor that replaces static bytecode linking in tests and scripts (
new Contract) with
dynamic linkage through (Vm.create*).
- is_deploy_helper_path
- Returns whether the path points to a deploy helper source generated by the preprocessor.
- native_import_dependencies ๐
- Tracks transitive imports of unmodified tests and scripts after analysis fails.
- solar_error_summary ๐
- Extracts the first rendered Solar error header without ANSI codes.
- span_to_range ๐
- Returns the range of the given span in the source map.