1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-03 12:20:04 +02:00
Files
minifyfromhtml/node_modules/babel-plugin-minify-mangle-names/lib/is-label-identifier.js
2018-05-05 13:54:07 +02:00

14 lines
303 B
JavaScript

"use strict";
module.exports = isLabelIdentifier;
function isLabelIdentifier(path) {
const node = path.node;
return path.parentPath.isLabeledStatement({
label: node
}) || path.parentPath.isBreakStatement({
label: node
}) || path.parentPath.isContinueStatement({
label: node
});
}