mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 12:20:04 +02:00
14 lines
303 B
JavaScript
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
|
|
});
|
|
} |