0.28.2 release. Fixed change of kinds of variables for dead code with deadCodeInjection option

This commit is contained in:
sanex3339
2020-05-21 10:19:52 +03:00
parent 308aea0e3c
commit 11ec82a6f7
9 changed files with 160 additions and 58 deletions
@@ -59,6 +59,15 @@ export class BlockStatementDeadCodeInjectionNode extends AbstractCustomNode {
this.deadCodeInjectionRootAstHostNode = deadCodeInjectionRootAstHostNode;
}
/**
* Have to override parent method to prevent a change of kinds of variables
*
* @returns {TStatement[]}
*/
public getNode (): TStatement[] {
return this.getNodeStructure();
}
/**
* @returns {TStatement[]}
*/