pub struct DependencyParser {
pub import_scanned_modules: SeqMap<Vec<String>, ModuleInfo>,
pub already_resolved_modules: HashSet<Vec<String>>,
/* private fields */
}
Fields§
§import_scanned_modules: SeqMap<Vec<String>, ModuleInfo>
§already_resolved_modules: HashSet<Vec<String>>
Implementations§
Source§impl DependencyParser
impl DependencyParser
pub fn new() -> Self
pub fn add_resolved_module(&mut self, module_path: Vec<String>)
pub fn add_ast_module( &mut self, module_path: Vec<String>, parsed_module: ParsedAstModule, )
Source§impl DependencyParser
impl DependencyParser
pub fn parse_local_modules( &mut self, module_path: &[String], source_map: &mut SourceMap, ) -> Result<(), DependencyError>
pub fn get_parsed_module(&self, path: &[String]) -> Option<&ParsedAstModule>
pub fn get_parsed_module_mut( &mut self, path: &[String], ) -> Option<&mut ParsedAstModule>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DependencyParser
impl RefUnwindSafe for DependencyParser
impl Send for DependencyParser
impl Sync for DependencyParser
impl Unpin for DependencyParser
impl UnwindSafe for DependencyParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more