pub struct DocParser<'a> { /* private fields */ }
Implementations§
source§impl<'a> DocParser<'a>
impl<'a> DocParser<'a>
pub fn new( graph: &'a ModuleGraph, parser: &'a dyn ModuleParser, options: DocParserOptions ) -> Result<Self, Error>
sourcepub fn take_diagnostics(&self) -> Vec<DocDiagnostic>
pub fn take_diagnostics(&self) -> Vec<DocDiagnostic>
Gets diagnostics found during any of the previous parses.
sourcepub fn parse_module(
&self,
specifier: &ModuleSpecifier
) -> Result<ModuleDoc, DocError>
pub fn parse_module( &self, specifier: &ModuleSpecifier ) -> Result<ModuleDoc, DocError>
Parses a module into a list of exported items, as well as a list of reexported items which need to be fetched from other modules.
sourcepub fn parse(
&self,
specifier: &ModuleSpecifier
) -> Result<Vec<DocNode>, DocError>
pub fn parse( &self, specifier: &ModuleSpecifier ) -> Result<Vec<DocNode>, DocError>
Fetches file_name
and returns a list of exported items (no reexports).
sourcepub fn parse_with_reexports(
&self,
specifier: &ModuleSpecifier
) -> Result<Vec<DocNode>, DocError>
pub fn parse_with_reexports( &self, specifier: &ModuleSpecifier ) -> Result<Vec<DocNode>, DocError>
Fetches file_name
, parses it, and resolves its reexports.
pub fn get_reexports_for_module( &self, module_info: ModuleInfoRef<'_> ) -> Vec<Reexport>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for DocParser<'a>
impl<'a> !Send for DocParser<'a>
impl<'a> !Sync for DocParser<'a>
impl<'a> Unpin for DocParser<'a>
impl<'a> !UnwindSafe for DocParser<'a>
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