feat(codegen): indent inner class (#1085)

This commit is contained in:
Wenzhe Wang 2023-10-29 15:03:30 +08:00 committed by GitHub
parent e8a4e81298
commit cef78accf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -517,10 +517,12 @@ impl<'a, const MINIFY: bool> Gen<MINIFY> for Declaration<'a> {
p.print_indent();
p.print_space_before_identifier();
decl.gen(p, ctx);
p.print_soft_newline();
}
}
Self::ClassDeclaration(decl) => {
if !decl.is_typescript_syntax() {
p.print_indent();
p.print_space_before_identifier();
decl.gen(p, ctx);
p.print_soft_newline();