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

Function checkWeakMapSetCollision

test/fixtures/snapshot/typescript.js:82367–82373  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

82365 }
82366 }
82367 function checkWeakMapSetCollision(node) {
82368 var enclosingBlockScope = ts.getEnclosingBlockScopeContainer(node);
82369 if (getNodeCheckFlags(enclosingBlockScope) & 67108864 /* NodeCheckFlags.ContainsClassWithPrivateIdentifiers */) {
82370 ts.Debug.assert(ts.isNamedDeclaration(node) && ts.isIdentifier(node.name) && typeof node.name.escapedText === "string", "The target of a WeakMap/WeakSet collision check should be an identifier");
82371 errorSkippedOn("noEmit", node, ts.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText);
82372 }
82373 }
82374 function recordPotentialCollisionWithReflectInGeneratedCode(node, name) {
82375 if (name && languageVersion >= 2 /* ScriptTarget.ES2015 */ && languageVersion <= 8 /* ScriptTarget.ES2021 */
82376 && needCollisionCheckForIdentifier(node, name, "Reflect")) {

Callers

nothing calls this directly

Calls 3

getNodeCheckFlagsFunction · 0.85
errorSkippedOnFunction · 0.85
assertMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…