MCPcopy Index your code
hub / github.com/nodejs/node / shouldEmitEnumDeclaration

Function shouldEmitEnumDeclaration

test/fixtures/snapshot/typescript.js:93428–93431  ·  view source on GitHub ↗

* Determines whether to emit an enum declaration. * * @param node The enum declaration node.

(node)

Source from the content-addressed store, hash-verified

93426 * @param node The enum declaration node.
93427 */
93428 function shouldEmitEnumDeclaration(node) {
93429 return !ts.isEnumConst(node)
93430 || ts.shouldPreserveConstEnums(compilerOptions);
93431 }
93432 /**
93433 * Visits an enum declaration.
93434 *

Callers 1

visitEnumDeclarationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected