summaryrefslogtreecommitdiff
path: root/cli/doc/namespace.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-03 18:35:03 +0200
committerGitHub <noreply@github.com>2020-04-03 18:35:03 +0200
commitefb022a50c8fd4ab598c0bdc6ff0c1978779260a (patch)
treeaa7cd1bede57bad7cfa97aeec3abb7d81fb901ca /cli/doc/namespace.rs
parent13db64fbc6a8da68e5f6c1da59e058a1a3146054 (diff)
upgrade dprint to 0.9.10 (#4601)
Diffstat (limited to 'cli/doc/namespace.rs')
-rw-r--r--cli/doc/namespace.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli/doc/namespace.rs b/cli/doc/namespace.rs
index ed6aac2f3..02f22b661 100644
--- a/cli/doc/namespace.rs
+++ b/cli/doc/namespace.rs
@@ -1,6 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
+use crate::swc_ecma_ast;
use serde::Serialize;
-use swc_ecma_ast;
use super::parser::DocParser;
use super::DocNode;
@@ -22,7 +22,7 @@ pub fn get_doc_for_ts_namespace_decl(
.into();
let namespace_name = ts_namespace_decl.id.sym.to_string();
- use swc_ecma_ast::TsNamespaceBody::*;
+ use crate::swc_ecma_ast::TsNamespaceBody::*;
let elements = match &*ts_namespace_decl.body {
TsModuleBlock(ts_module_block) => {
@@ -54,14 +54,14 @@ pub fn get_doc_for_ts_module(
doc_parser: &DocParser,
ts_module_decl: &swc_ecma_ast::TsModuleDecl,
) -> (String, NamespaceDef) {
- use swc_ecma_ast::TsModuleName;
+ use crate::swc_ecma_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 swc_ecma_ast::TsNamespaceBody::*;
+ use crate::swc_ecma_ast::TsNamespaceBody::*;
match &body {
TsModuleBlock(ts_module_block) => {