Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function ExpressionStatement(node) {
if (bt.isCallExpression(node.expression)) return t.callStatement(this.transform(node.expression));
// In most cases these are not identical, but it should be handled inside expressions
return this.transform(node.expression);
}
export function ThrowStatement(node) {
return t.callStatement(t.callExpression(t.identifier('error'), [this.transform(node.argument)]));
}