summaryrefslogtreecommitdiff
path: root/cli/doc/ts_type.rs
diff options
context:
space:
mode:
authorOndřej Žára <ondrej.zara@gmail.com>2020-04-03 14:11:50 +0200
committerGitHub <noreply@github.com>2020-04-03 14:11:50 +0200
commit6204555be3feaf5171dfb1bba15203ef2bb33265 (patch)
treeb17b14780d18bca182ab021a6610a20125cb2a76 /cli/doc/ts_type.rs
parentb57d075c07c30000d46b09062cd9e7328bcff1bc (diff)
"deno doc" parses the "implements" clause of a class def (#4604)
Diffstat (limited to 'cli/doc/ts_type.rs')
-rw-r--r--cli/doc/ts_type.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/doc/ts_type.rs b/cli/doc/ts_type.rs
index 9a7d191ba..ea3ffcd90 100644
--- a/cli/doc/ts_type.rs
+++ b/cli/doc/ts_type.rs
@@ -247,7 +247,9 @@ impl Into<TsTypeDef> for &TsThisType {
}
}
-fn ts_entity_name_to_name(entity_name: &swc_ecma_ast::TsEntityName) -> String {
+pub fn ts_entity_name_to_name(
+ entity_name: &swc_ecma_ast::TsEntityName,
+) -> String {
use swc_ecma_ast::TsEntityName::*;
match entity_name {