pub fn solar_pcx_from_build_opts<'sess>(
sess: &'sess Session,
build: &BuildOpts,
project: Option<&Project>,
target_paths: Option<&[PathBuf]>,
) -> Result<ParsingContext<'sess>>
Expand description
Builds a Solar [solar_sema::ParsingContext
] from BuildOpts
.
- Configures include paths, remappings and registers all in-memory sources so that solar can operate without touching disk.
- 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 Solitidy version.