configure_pcx

Function configure_pcx 

Source
pub fn configure_pcx(
    pcx: &mut ParsingContext<'_>,
    config: &Config,
    project: Option<&Project>,
    target_paths: Option<&[PathBuf]>,
) -> Result<()>
Expand description

Configures a [ParsingContext] from [Config].

  • Configures include paths, remappings
  • Source files are added if add_source_file is set
  • If no project is provided, it will spin up a new ephemeral project.
  • If no target_paths are provided, all project files are processed.
  • Only processes the subset of sources with the most up-to-date Solidity version.