diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-07-31 16:59:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-31 16:59:22 +0200 |
commit | b718e6ff53156a0aae486e570ce7c9cb8a3b822a (patch) | |
tree | 6930f093a20466f4333e24eda2cd059807a36314 /cli/doc/function.rs | |
parent | 4afb4b6e46de2ed536a3c9828d70d7799b5b6d03 (diff) |
upgrade: deno_lint, dprint, swc (#6928)
This commit upgrades:
deno_lint 0.1.20
dprint-plugin-typescript 0.25.0
swc_ecmascript 0.1.0
SWC is no longer reexported from dprint nor deno_lint.
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); |