pub struct AnalysisResult {
pub diagnostics: Vec<SemanticDiagnostic>,
pub scope_store: ScopeStore,
pub type_map: HashMap<TypeMapKey, Type>,
pub scope_id_sequence: Vec<ScopeId>,
}Expand description
Result of running scope building and validation.
Fields§
§diagnostics: Vec<SemanticDiagnostic>§scope_store: ScopeStore§type_map: HashMap<TypeMapKey, Type>Map from expression span (start, end) to inferred type (for formatter type annotations).
scope_id_sequence: Vec<ScopeId>Scope IDs in walk order (for LSP: compute scope at offset from scope-extent list).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnalysisResult
impl RefUnwindSafe for AnalysisResult
impl Send for AnalysisResult
impl Sync for AnalysisResult
impl Unpin for AnalysisResult
impl UnsafeUnpin for AnalysisResult
impl UnwindSafe for AnalysisResult
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