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

Function isSubstitutionEnabled

test/fixtures/snapshot/typescript.js:109677–109680  ·  view source on GitHub ↗

* Determines whether expression substitutions are enabled for the provided node.

(node)

Source from the content-addressed store, hash-verified

109675 * Determines whether expression substitutions are enabled for the provided node.
109676 */
109677 function isSubstitutionEnabled(node) {
109678 return (enabledSyntaxKindFeatures[node.kind] & 1 /* SyntaxKindFeatureFlags.Substitution */) !== 0
109679 && (ts.getEmitFlags(node) & 4 /* EmitFlags.NoSubstitution */) === 0;
109680 }
109681 /**
109682 * Emits a node with possible substitution.
109683 *

Callers 1

substituteNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected