[][src]Struct deno_doc::parser::DocParser

pub struct DocParser {
    pub ast_parser: AstParser,
    pub loader: Box<dyn DocFileLoader>,
    pub private: bool,
}

Fields

ast_parser: AstParserloader: 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]

pub async fn parse<'_, '_>(
    &'_ self,
    file_name: &'_ str,
    syntax: Syntax
) -> Result<Vec<DocNode>, DocError>
[src]

pub fn parse_source(
    &self,
    file_name: &str,
    syntax: Syntax,
    source_code: &str
) -> Result<Vec<DocNode>, DocError>
[src]

pub async fn parse_with_reexports<'_, '_>(
    &'_ self,
    file_name: &'_ str,
    syntax: Syntax
) -> Result<Vec<DocNode>, DocError>
[src]

pub fn get_doc_nodes_for_module_exports(
    &self,
    module_decl: &ModuleDecl
) -> Vec<DocNode>
[src]

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]

pub fn get_doc_nodes_for_module_body(
    &self,
    module_body: Vec<ModuleItem>
) -> Vec<DocNode>
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Node for T where
    T: Any + ?Sized

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.