diff options
Diffstat (limited to 'cli/doc/function.rs')
-rw-r--r-- | cli/doc/function.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cli/doc/function.rs b/cli/doc/function.rs index ede8bdbbd..ab6430ec6 100644 --- a/cli/doc/function.rs +++ b/cli/doc/function.rs @@ -6,7 +6,6 @@ use super::ts_type::TsTypeDef; use super::ts_type_param::maybe_type_param_decl_to_type_param_defs; use super::ts_type_param::TsTypeParamDef; use super::ParamDef; -use crate::swc_ecma_ast; use serde::Serialize; #[derive(Debug, Serialize, Clone)] @@ -22,7 +21,7 @@ pub struct FunctionDef { pub fn function_to_function_def( doc_parser: &DocParser, - function: &swc_ecma_ast::Function, + function: &swc_ecmascript::ast::Function, ) -> FunctionDef { let mut params = vec![]; @@ -51,7 +50,7 @@ pub fn function_to_function_def( pub fn get_doc_for_fn_decl( doc_parser: &DocParser, - fn_decl: &swc_ecma_ast::FnDecl, + fn_decl: &swc_ecmascript::ast::FnDecl, ) -> (String, FunctionDef) { let name = fn_decl.ident.sym.to_string(); let fn_def = function_to_function_def(&doc_parser, &fn_decl.function); |