diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2020-05-17 12:56:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-17 18:56:22 +0200 |
commit | a054250a2cd709f74a3c9984af0cb74b7adde3bd (patch) | |
tree | 881ac3330f587a2532535db23942665fe917c841 /cli/doc/class.rs | |
parent | e16eb9e10841d3b63bfe50db9849ae9a2d7c20f3 (diff) |
Update to dprint 0.18.3 and the latest version of swc (#5509)
Diffstat (limited to 'cli/doc/class.rs')
-rw-r--r-- | cli/doc/class.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/doc/class.rs b/cli/doc/class.rs index 8ebb49f65..bfcbfde71 100644 --- a/cli/doc/class.rs +++ b/cli/doc/class.rs @@ -123,10 +123,10 @@ pub fn class_to_class_def( let mut params = vec![]; for param in &ctor.params { - use crate::swc_ecma_ast::PatOrTsParamProp::*; + use crate::swc_ecma_ast::ParamOrTsParamProp::*; let param_def = match param { - Pat(pat) => pat_to_param_def(pat), + Param(param) => pat_to_param_def(¶m.pat), TsParamProp(ts_param_prop) => { use swc_ecma_ast::TsParamPropParam; |