Skip to main content

Module preprocessor

Module preprocessor 

Source

Re-exportsยง

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; ๐Ÿ”’

Modulesยง

data ๐Ÿ”’
deps ๐Ÿ”’

Structsยง

DynamicTestLinkingPreprocessor
Preprocessor that replaces static bytecode linking in tests and scripts (new Contract) with dynamic linkage through (Vm.create*).

Functionsยง

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.