From 3374c73fba3a96df22d0c04e6c17078ca8cce45b Mon Sep 17 00:00:00 2001 From: Valentin Anger Date: Sun, 12 Jul 2020 14:16:33 +0200 Subject: feat(doc): Improve terminal printer (#6594) - Add more support for generics - Add the --private flag - displays documentation for not exported and private nodes - Display more attributes like abstract, static and readonly - Display type aliases - Refactor module to use the Display trait - Use a bit more color --- cli/doc/mod.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cli/doc/mod.rs') diff --git a/cli/doc/mod.rs b/cli/doc/mod.rs index 81cc2f9fb..49f8d7453 100644 --- a/cli/doc/mod.rs +++ b/cli/doc/mod.rs @@ -1,5 +1,6 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. pub mod class; +mod display; pub mod r#enum; pub mod function; pub mod interface; @@ -17,9 +18,9 @@ pub mod variable; pub use node::DocNode; pub use node::DocNodeKind; pub use node::Location; -pub use node::ParamDef; -pub use node::ParamKind; +pub use params::ParamDef; pub use parser::DocParser; +pub use printer::DocPrinter; #[cfg(test)] mod tests; -- cgit v1.2.3