Trait stc_ts_storage::Mode
source · [−]pub trait Mode: TypeStore + ErrorStore {
fn module_id(&self, stmt_index: usize) -> ModuleId;
fn top_level_ctxt(&self, module_id: 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<'_>) { ... }
}
Expand description
Metadata for the input provided to the analyzer.
The analyzer can work on multiple module at once, in case of circular imports.
Required Methods
Returns the id of the module where statement #stmt_index
came from.
source
fn top_level_ctxt(&self, module_id: ModuleId) -> SyntaxContext
Provided Methods
source