[−][src]Struct deno_doc::parser::DocParser
Fields
ast_parser: AstParser
loader: Box<dyn DocFileLoader>
private: bool
Implementations
impl DocParser
[src]
pub fn new(loader: Box<dyn DocFileLoader>, private: bool) -> Self
[src]
pub fn parse_module(
&self,
file_name: &str,
syntax: Syntax,
source_code: &str
) -> Result<ModuleDoc, DocError>
[src]
&self,
file_name: &str,
syntax: Syntax,
source_code: &str
) -> Result<ModuleDoc, DocError>
pub async fn parse<'_, '_>(
&'_ self,
file_name: &'_ str,
syntax: Syntax
) -> Result<Vec<DocNode>, DocError>
[src]
&'_ self,
file_name: &'_ str,
syntax: Syntax
) -> Result<Vec<DocNode>, DocError>
pub fn parse_source(
&self,
file_name: &str,
syntax: Syntax,
source_code: &str
) -> Result<Vec<DocNode>, DocError>
[src]
&self,
file_name: &str,
syntax: Syntax,
source_code: &str
) -> Result<Vec<DocNode>, DocError>
pub async fn parse_with_reexports<'_, '_>(
&'_ self,
file_name: &'_ str,
syntax: Syntax
) -> Result<Vec<DocNode>, DocError>
[src]
&'_ self,
file_name: &'_ str,
syntax: Syntax
) -> Result<Vec<DocNode>, DocError>
pub fn get_doc_nodes_for_module_exports(
&self,
module_decl: &ModuleDecl
) -> Vec<DocNode>
[src]
&self,
module_decl: &ModuleDecl
) -> Vec<DocNode>
pub fn get_doc_node_for_decl(&self, decl: &Decl) -> Option<DocNode>
[src]
pub fn get_reexports_for_module_body(
&self,
module_body: Vec<ModuleItem>
) -> Vec<Reexport>
[src]
&self,
module_body: Vec<ModuleItem>
) -> Vec<Reexport>
pub fn get_doc_nodes_for_module_body(
&self,
module_body: Vec<ModuleItem>
) -> Vec<DocNode>
[src]
&self,
module_body: Vec<ModuleItem>
) -> Vec<DocNode>
pub fn js_doc_for_span(&self, span: Span) -> Option<String>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DocParser
impl !Send for DocParser
impl !Sync for DocParser
impl Unpin for DocParser
impl !UnwindSafe for DocParser
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Node for T where
T: Any + ?Sized,
T: Any + ?Sized,
impl<T> Send for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Sync for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,