Struct stc_ts_storage::Group
source · [−]pub struct Group<'a> {
pub parent: Option<&'a Group<'a>>,
pub files: Arc<Vec<File>>,
pub errors: Errors,
pub info: FxHashMap<ModuleId, ModuleTypeData>,
}
Fields
parent: Option<&'a Group<'a>>
files: Arc<Vec<File>>
errors: Errors
info: FxHashMap<ModuleId, ModuleTypeData>
Trait Implementations
sourceimpl ErrorStore for Group<'_>
impl ErrorStore for Group<'_>
fn report(&mut self, err: Error)
fn report_all(&mut self, err: Errors)
fn take_errors(&mut self) -> Errors
sourceimpl Mode for Group<'_>
impl Mode for Group<'_>
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, stmt_index: 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 Group<'_>
impl TypeStore for Group<'_>
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 Group<'a>
impl<'a> Send for Group<'a>
impl<'a> Sync for Group<'a>
impl<'a> Unpin for Group<'a>
impl<'a> UnwindSafe for Group<'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