Simple consequent and alternate tests for IfStatementSimplifyTransformer

This commit is contained in:
sanex3339
2020-06-30 10:51:05 +03:00
parent 31551f4e33
commit 57b84a670d
11 changed files with 193 additions and 34 deletions
-8
View File
@@ -381,14 +381,6 @@ export class NodeGuards {
return node.type === NodeType.TemplateLiteral;
}
/**
* @param {Node} node
* @returns {boolean}
*/
public static isThrowStatementNode (node: ESTree.Node): node is ESTree.ThrowStatement {
return node.type === NodeType.ThrowStatement;
}
/**
* @param {Node} node
* @returns {boolean}