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

Function getGlobalSymbolNameWithFallback

test/fixtures/snapshot/typescript.js:93045–93049  ·  view source on GitHub ↗

* Gets an expression that points to the global "Symbol" constructor at runtime if it is * available.

()

Source from the content-addressed store, hash-verified

93043 * available.
93044 */
93045 function getGlobalSymbolNameWithFallback() {
93046 return factory.createConditionalExpression(factory.createTypeCheck(factory.createIdentifier("Symbol"), "function"),
93047 /*questionToken*/ undefined, factory.createIdentifier("Symbol"),
93048 /*colonToken*/ undefined, factory.createIdentifier("Object"));
93049 }
93050 /**
93051 * Gets an expression that points to the global "BigInt" constructor at runtime if it is
93052 * available.

Callers 2

serializeTypeNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected