pub struct CheckingData<'a, FSResolver, ModuleAST: ASTImplementation> {
pub diagnostics_container: DiagnosticsContainer,
pub local_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
local_type_mappings: TypeMappingsTODO temp pub
types: TypeStoreImplementations§
Source§impl<'a, T, A> CheckingData<'a, T, A>where
T: ReadFromFS,
A: ASTImplementation,
impl<'a, T, A> CheckingData<'a, T, A>where
T: ReadFromFS,
A: ASTImplementation,
pub fn new( options: TypeCheckOptions, resolver: &'a T, existing_files: Option<MapFileStore<WithPathMap>>, parser_requirements: A::ParserRequirements, ) -> Self
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,
position: SpanWithSource,
)
pub fn raise_unimplemented_error( &mut self, item: &'static str, position: SpanWithSource, )
TODO temp, needs better place
pub fn add_expression_mapping( &mut self, span: SpanWithSource, instance: Instance, )
Auto Trait Implementations§
impl<'a, FSResolver, ModuleAST> Freeze for CheckingData<'a, FSResolver, ModuleAST>
impl<'a, FSResolver, ModuleAST> RefUnwindSafe for CheckingData<'a, FSResolver, ModuleAST>where
<ModuleAST as ASTImplementation>::ParserRequirements: RefUnwindSafe,
FSResolver: RefUnwindSafe,
<ModuleAST as ASTImplementation>::OwnedModule: RefUnwindSafe,
impl<'a, FSResolver, ModuleAST> Send for CheckingData<'a, FSResolver, ModuleAST>where
<ModuleAST as ASTImplementation>::ParserRequirements: Send,
FSResolver: Sync,
<ModuleAST as ASTImplementation>::OwnedModule: Send,
impl<'a, FSResolver, ModuleAST> Sync for CheckingData<'a, FSResolver, ModuleAST>where
<ModuleAST as ASTImplementation>::ParserRequirements: Sync,
FSResolver: Sync,
<ModuleAST as ASTImplementation>::OwnedModule: Sync,
impl<'a, FSResolver, ModuleAST> Unpin for CheckingData<'a, FSResolver, ModuleAST>where
<ModuleAST as ASTImplementation>::ParserRequirements: Unpin,
<ModuleAST as ASTImplementation>::OwnedModule: Unpin,
impl<'a, FSResolver, ModuleAST> UnwindSafe for CheckingData<'a, FSResolver, ModuleAST>where
<ModuleAST as ASTImplementation>::ParserRequirements: UnwindSafe,
FSResolver: RefUnwindSafe,
<ModuleAST as ASTImplementation>::OwnedModule: UnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more