Trait stc_ts_storage::TypeStore
source · [−]pub trait TypeStore: Send + Sync {
fn get_local_type(&self, ctxt: ModuleId, id: Id) -> Option<Type>;
fn get_local_var(&self, ctxt: ModuleId, id: Id) -> Option<Type>;
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_type(
&mut self,
span: Span,
ctxt: ModuleId,
id: Id,
orig_name: Id
);
fn export_stored_var(
&mut self,
span: Span,
ctxt: ModuleId,
id: Id,
orig_name: Id
);
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);
fn take_info(&mut self, ctxt: ModuleId) -> ModuleTypeData;
}
Required Methods
source
fn store_private_var(&mut self, ctxt: ModuleId, id: Id, ty: Type)
source