MCPcopy Create free account
hub / github.com/nodejs/node / isEmitNotificationEnabled

Function isEmitNotificationEnabled

test/fixtures/snapshot/typescript.js:109703–109706  ·  view source on GitHub ↗

* Determines whether before/after emit notifications should be raised in the pretty * printer when it emits a node.

(node)

Source from the content-addressed store, hash-verified

109701 * printer when it emits a node.
109702 */
109703 function isEmitNotificationEnabled(node) {
109704 return (enabledSyntaxKindFeatures[node.kind] & 2 /* SyntaxKindFeatureFlags.EmitNotifications */) !== 0
109705 || (ts.getEmitFlags(node) & 2 /* EmitFlags.AdviseOnEmitNode */) !== 0;
109706 }
109707 /**
109708 * Emits a node with possible emit notification.
109709 *

Callers 2

emitNodeWithNotificationFunction · 0.85
getPipelinePhaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected