Skip to main content

Module run

Module run 

Source
Expand description

One resolved run for each programmatic call.

Each typed runner that loads a config calls resolve_programmatic_run once with its own ProgrammaticEntry. The resolver loads and validates the config, decides the selection and the production mode of each analysis, and resolves one config for each production mode. The runner opens each session from that run, so the analyses of one call share one config load.

Structs§

EnvSnapshot
The values of every EnvVar and the current directory of one run.
HostInputs
The inputs of a host that starts runs without a command, such as a session store of the language server.
ResolvedRun
Every decision of one run, with its cause. The fields are private and the type has no Default, no Clone and no &mut self method, so a run stays as the resolver made it.
Runnable
An analysis that runs. Only ResolvedRun::analysis makes one, so a skipped analysis has no config and no session.

Enums§

AnalysisSlot
One analysis of a run: it runs, or the run skips it with a reason.
CommandKind
The command of a run. There is one variant per distinct rule for the environment variables and for the selection of analyses.
EnvVar
An environment variable that changes a run decision.
ProgrammaticEntry
The typed runner that starts a run. Each entry maps to one CommandKind and one SelectionInput.
ResolveError
The error of resolve_run.
SelectionInput
How a run selects its analyses.
Surface
The surface that starts a run.

Functions§

resolve_programmatic_run
Resolve the run of one programmatic call.
resolve_run
Resolve the raw inputs of one run.