Struct stc_ts_storage::Single
source · [−]pub struct Single<'a> {
pub parent: Option<&'a Single<'a>>,
pub id: ModuleId,
pub top_level_ctxt: SyntaxContext,
pub path: Arc<FileName>,
pub is_dts: bool,
pub info: Info,
}
Fields
parent: Option<&'a Single<'a>>
id: ModuleId
top_level_ctxt: SyntaxContext
path: Arc<FileName>
is_dts: bool
info: Info
Trait Implementations
sourceimpl ErrorStore for Single<'_>
impl ErrorStore for Single<'_>
fn report(&mut self, err: Error)
fn report_all(&mut self, err: Errors)
fn take_errors(&mut self) -> Errors
sourceimpl<'a> Mode for Single<'a>
impl<'a> Mode for Single<'a>
sourcefn module_id(&self, _stmt_index: usize) -> ModuleId
fn module_id(&self, _stmt_index: usize) -> ModuleId
Returns the id of the module where statement #
stmt_index
came from.fn top_level_ctxt(&self, _: ModuleId) -> SyntaxContext
fn is_dts(&self) -> bool
fn path(&self, id: ModuleId) -> Arc<FileName>
fn subscope(&self) -> Storage<'_>
fn merge_back(&mut self, subscope: Storage<'_>)
sourceimpl TypeStore for Single<'_>
impl TypeStore for Single<'_>
fn store_private_type(
&mut self,
ctxt: ModuleId,
id: Id,
ty: Type,
should_override: bool
)
fn store_private_var(&mut self, ctxt: ModuleId, id: Id, ty: Type)
fn export_stored_var(&mut self, span: Span, ctxt: ModuleId, id: Id, orig_name: Id)
fn export_stored_type(&mut self, span: Span, ctxt: ModuleId, id: Id, orig_name: Id)
fn get_local_type(&self, ctxt: ModuleId, id: Id) -> Option<Type>
fn get_local_var(&self, ctxt: ModuleId, id: Id) -> Option<Type>
fn take_info(&mut self, ctxt: ModuleId) -> ModuleTypeData
fn export_type(&mut self, _span: Span, _ctxt: ModuleId, id: JsWord, ty: Type)
fn export_var(&mut self, _span: Span, _ctxt: ModuleId, id: JsWord, ty: Type)
Auto Trait Implementations
impl<'a> RefUnwindSafe for Single<'a>
impl<'a> Send for Single<'a>
impl<'a> Sync for Single<'a>
impl<'a> Unpin for Single<'a>
impl<'a> UnwindSafe for Single<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more