diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-10-30 23:49:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-31 09:19:43 +0530 |
commit | 092555c611ebab87ad570b4dcb73d54288dccdd9 (patch) | |
tree | 59b8524320c698a969c1493203dd81a23d4276ef /cli/tools/doc.rs | |
parent | 1713df13524ad20c6bd0413bcf4aa57adc3f9735 (diff) |
refactor: update to deno_doc 0.71 (#21023)
Diffstat (limited to 'cli/tools/doc.rs')
-rw-r--r-- | cli/tools/doc.rs | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/cli/tools/doc.rs b/cli/tools/doc.rs index 5e87e7917..193362267 100644 --- a/cli/tools/doc.rs +++ b/cli/tools/doc.rs @@ -60,8 +60,14 @@ pub async fn print_docs( }, ) .await; - let doc_parser = - doc::DocParser::new(&graph, doc_flags.private, capturing_parser)?; + let doc_parser = doc::DocParser::new( + &graph, + capturing_parser, + doc::DocParserOptions { + private: doc_flags.private, + diagnostics: false, + }, + )?; doc_parser.parse_module(&source_file_specifier)?.definitions } DocSourceFileFlag::Paths(source_files) => { @@ -90,8 +96,14 @@ pub async fn print_docs( graph_lock_or_exit(&graph, &mut lockfile.lock()); } - let doc_parser = - doc::DocParser::new(&graph, doc_flags.private, capturing_parser)?; + let doc_parser = doc::DocParser::new( + &graph, + capturing_parser, + doc::DocParserOptions { + private: doc_flags.private, + diagnostics: false, + }, + )?; let mut doc_nodes = vec![]; |