Struct stc_ts_file_analyzer::analyzer::NoopLoader
source · [−]pub struct NoopLoader;
Expand description
Panics if there’s a load request.
Trait Implementations
sourceimpl Load for NoopLoader
impl Load for NoopLoader
fn module_id(&self, base: &Arc<FileName>, src: &str) -> Option<ModuleId>
sourcefn is_in_same_circular_group(&self, base: &Arc<FileName>, dep: &str) -> bool
fn is_in_same_circular_group(&self, base: &Arc<FileName>, dep: &str) -> bool
Note: This method called within a thread
sourcefn load_circular_dep(
&self,
base: &Arc<FileName>,
dep: &str,
partial: &ModuleTypeData
) -> VResult<Type>
fn load_circular_dep(
&self,
base: &Arc<FileName>,
dep: &str,
partial: &ModuleTypeData
) -> VResult<Type>
This method can be called multiple time for same module. Read more
sourcefn load_non_circular_dep(&self, base: &Arc<FileName>, dep: &str) -> VResult<Type>
fn load_non_circular_dep(&self, base: &Arc<FileName>, dep: &str) -> VResult<Type>
Note: This method is called in parallel. Read more
sourcefn declare_module(&self, name: &JsWord, module: Type) -> ModuleId
fn declare_module(&self, name: &JsWord, module: Type) -> ModuleId
Auto Trait Implementations
impl RefUnwindSafe for NoopLoader
impl Send for NoopLoader
impl Sync for NoopLoader
impl Unpin for NoopLoader
impl UnwindSafe for NoopLoader
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