summaryrefslogtreecommitdiff
path: root/cli/doc/namespace.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/doc/namespace.rs')
-rw-r--r--cli/doc/namespace.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/cli/doc/namespace.rs b/cli/doc/namespace.rs
index 6cbc619e8..35f9233fd 100644
--- a/cli/doc/namespace.rs
+++ b/cli/doc/namespace.rs
@@ -1,5 +1,4 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-use crate::swc_ecma_ast;
use serde::Serialize;
use super::parser::DocParser;
@@ -13,7 +12,7 @@ pub struct NamespaceDef {
pub fn get_doc_for_ts_namespace_decl(
doc_parser: &DocParser,
- ts_namespace_decl: &swc_ecma_ast::TsNamespaceDecl,
+ ts_namespace_decl: &swc_ecmascript::ast::TsNamespaceDecl,
) -> DocNode {
let js_doc = doc_parser.js_doc_for_span(ts_namespace_decl.span);
let location = doc_parser
@@ -22,7 +21,7 @@ pub fn get_doc_for_ts_namespace_decl(
.into();
let namespace_name = ts_namespace_decl.id.sym.to_string();
- use crate::swc_ecma_ast::TsNamespaceBody::*;
+ use swc_ecmascript::ast::TsNamespaceBody::*;
let elements = match &*ts_namespace_decl.body {
TsModuleBlock(ts_module_block) => {
@@ -52,16 +51,16 @@ pub fn get_doc_for_ts_namespace_decl(
pub fn get_doc_for_ts_module(
doc_parser: &DocParser,
- ts_module_decl: &swc_ecma_ast::TsModuleDecl,
+ ts_module_decl: &swc_ecmascript::ast::TsModuleDecl,
) -> (String, NamespaceDef) {
- use crate::swc_ecma_ast::TsModuleName;
+ use swc_ecmascript::ast::TsModuleName;
let namespace_name = match &ts_module_decl.id {
TsModuleName::Ident(ident) => ident.sym.to_string(),
TsModuleName::Str(str_) => str_.value.to_string(),
};
let elements = if let Some(body) = &ts_module_decl.body {
- use crate::swc_ecma_ast::TsNamespaceBody::*;
+ use swc_ecmascript::ast::TsNamespaceBody::*;
match &body {
TsModuleBlock(ts_module_block) => {