pub struct ProgramResolution {
pub file: File,
pub definitions: Definitions,
pub diagnostics: Vec<Diagnostic>,
pub tests: Vec<TestFn>,
pub imports: Vec<Occurrence>,
}Expand description
Output of resolve_program: the merged file, its namespaces, any
diagnostics, and the @test functions collected along the way. The merged
file’s item_indexes are what Definitions refers to, so downstream
stages consume both together.
Fields§
§file: File§definitions: Definitions§diagnostics: Vec<Diagnostic>§tests: Vec<TestFn>§imports: Vec<Occurrence>The occurrences of import items, for the language server’s index (spec 3.4a §3.3). Always filled; the driver merges them only when asked.
Auto Trait Implementations§
impl Freeze for ProgramResolution
impl RefUnwindSafe for ProgramResolution
impl Send for ProgramResolution
impl Sync for ProgramResolution
impl Unpin for ProgramResolution
impl UnsafeUnpin for ProgramResolution
impl UnwindSafe for ProgramResolution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more