@sudoo/marked
Version:
JavaScript & TypeScript code runner in JavaScript, safe with marked territory, asynchronous
21 lines (20 loc) • 455 B
JavaScript
;
/**
* @author WMXPY
* @namespace Debug
* @description Node
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.shouldDebugNode = void 0;
const Debug_Skip_Node = new Set([
"BlockStatement",
"EmptyStatement",
"ExpressionStatement",
"Identifier",
"Literal",
"Program",
]);
const shouldDebugNode = (type) => {
return !Debug_Skip_Node.has(type);
};
exports.shouldDebugNode = shouldDebugNode;