@grey-ts/transpiler 1.4.2 → 1.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -441,6 +441,8 @@ NodeHandler.register(ts5.SyntaxKind.ClassDeclaration, (node) => {
|
|
|
441
441
|
for (const member of node.members) {
|
|
442
442
|
if (ts5.isFunctionLike(member) && "body" in member && !member.body)
|
|
443
443
|
continue;
|
|
444
|
+
if (ts5.isSemicolonClassElement(member))
|
|
445
|
+
continue;
|
|
444
446
|
if (member.name) {
|
|
445
447
|
const memberName = NodeHandler.handle(member.name);
|
|
446
448
|
if (declaredNames.has(memberName))
|
|
@@ -904,10 +906,10 @@ NodeHandler.register(ts8.SyntaxKind.Block, (node) => {
|
|
|
904
906
|
const output = node.statements.map((val) => {
|
|
905
907
|
let statement = NodeHandler.handle(val);
|
|
906
908
|
statement = statement.split(`
|
|
907
|
-
`).map((line) => "\t" + line).join(`
|
|
909
|
+
`).filter((s) => !!s).map((line) => "\t" + line).join(`
|
|
908
910
|
`);
|
|
909
911
|
return statement;
|
|
910
|
-
}).join(`
|
|
912
|
+
}).filter((s) => !!s).join(`
|
|
911
913
|
`);
|
|
912
914
|
return output;
|
|
913
915
|
});
|