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

Function isGlobalSymbolConstructor

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

Source from the content-addressed store, hash-verified

56488 return widenTypeForVariableLikeDeclaration(getTypeForVariableLikeDeclaration(declaration, /*includeOptionality*/ true, 0 /* CheckMode.Normal */), declaration, reportErrors);
56489 }
56490 function isGlobalSymbolConstructor(node) {
56491 var symbol = getSymbolOfNode(node);
56492 var globalSymbol = getGlobalESSymbolConstructorTypeSymbol(/*reportErrors*/ false);
56493 return globalSymbol && symbol && symbol === globalSymbol;
56494 }
56495 function widenTypeForVariableLikeDeclaration(type, declaration, reportErrors) {
56496 if (type) {
56497 // TODO: If back compat with pre-3.0/4.0 libs isn't required, remove the following SymbolConstructor special case transforming `symbol` into `unique symbol`

Callers 1

Calls 2

getSymbolOfNodeFunction · 0.85

Tested by

no test coverage detected