Skip to main content

Analysis

Struct Analysis 

Source
pub struct Analysis {
    pub db: FileDb,
    pub diagnostics: Vec<Diagnostic>,
    pub modules: Vec<(FileId, PathBuf)>,
    pub module_packages: Vec<Option<PackageId>>,
    pub graph: Option<Graph>,
    pub manifest: Option<FileId>,
    pub definitions: Option<Definitions>,
    pub file: Option<File>,
    pub module: Option<Module>,
    pub probe: ProbeResult,
    pub index: Option<Index>,
}
Expand description

What analyze found.

Fields§

§db: FileDb

Every file read, std included.

§diagnostics: Vec<Diagnostic>§modules: Vec<(FileId, PathBuf)>

The program’s own modules, by the paths they were read from, in load order: modules[i] is ModuleId(i).

§module_packages: Vec<Option<PackageId>>

Each module’s package, parallel to modules. None for a loose module (spec 3.3a §6).

§graph: Option<Graph>

The package graph, as far as it resolved.

§manifest: Option<FileId>

The root package’s nova.toml, when the program has one (Program::manifest).

§definitions: Option<Definitions>§file: Option<File>

The merged AST the resolver built and the checker read: every module’s items, std’s last, which Definitions::module_of maps to their modules. Set whenever definitions is (spec 3.5a §15.2).

§module: Option<Module>

The typed module, partial when errors were found.

§probe: ProbeResult§index: Option<Index>

Every name the front end resolved, the resolver’s imports merged in: None unless Options::index.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more