Struct ezno_checker::CheckingData
source · pub struct CheckingData<'a, FSResolver, ModuleAST: ASTImplementation> {
pub diagnostics_container: DiagnosticsContainer,
pub type_mappings: TypeMappings,
pub types: TypeStore,
/* private fields */
}Expand description
Contains logic for checking phase (none of the later steps) All data is global, non local to current scope TODO some of these should be mutex / ref cell
Fields§
§diagnostics_container: DiagnosticsContainerType checking errors
type_mappings: TypeMappingsTODO temp pub
types: TypeStoreImplementations§
source§impl<'a, T: ReadFromFS, A: ASTImplementation> CheckingData<'a, T, A>
impl<'a, T: ReadFromFS, A: ASTImplementation> CheckingData<'a, T, A>
pub fn new( options: TypeCheckOptions, resolver: &'a T, existing_files: Option<MapFileStore<WithPathMap>> ) -> Self
pub fn import_file( &mut self, from: SourceId, importing_path: &str, environment: &mut Environment<'_> ) -> Result<Result<Exported, InvalidModule>, CouldNotOpenFile>
sourcepub fn raise_decidable_result_error(
&mut self,
span: SpanWithSource,
value: bool
)
pub fn raise_decidable_result_error( &mut self, span: SpanWithSource, value: bool )
TODO temp, needs better place
sourcepub fn raise_unimplemented_error(
&mut self,
item: &'static str,
span: SpanWithSource
)
pub fn raise_unimplemented_error( &mut self, item: &'static str, span: SpanWithSource )
TODO temp, needs better place
pub fn add_expression_mapping( &mut self, span: SpanWithSource, instance: Instance )
pub fn check_satisfies( &mut self, expr_ty: TypeId, to_satisfy: TypeId, at: SpanWithSource, environment: &mut Environment<'_> )
Auto Trait Implementations§
impl<'a, FSResolver, ModuleAST> RefUnwindSafe for CheckingData<'a, FSResolver, ModuleAST>
impl<'a, FSResolver, ModuleAST> Send for CheckingData<'a, FSResolver, ModuleAST>
impl<'a, FSResolver, ModuleAST> Sync for CheckingData<'a, FSResolver, ModuleAST>
impl<'a, FSResolver, ModuleAST> Unpin for CheckingData<'a, FSResolver, ModuleAST>
impl<'a, FSResolver, ModuleAST> UnwindSafe for CheckingData<'a, FSResolver, ModuleAST>
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