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

Function getGlobalBigIntNameWithFallback

test/fixtures/snapshot/typescript.js:93054–93060  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

93052 * available.
93053 */
93054 function getGlobalBigIntNameWithFallback() {
93055 return languageVersion < 99 /* ScriptTarget.ESNext */
93056 ? factory.createConditionalExpression(factory.createTypeCheck(factory.createIdentifier("BigInt"), "function"),
93057 /*questionToken*/ undefined, factory.createIdentifier("BigInt"),
93058 /*colonToken*/ undefined, factory.createIdentifier("Object"))
93059 : factory.createIdentifier("BigInt");
93060 }
93061 /**
93062 * Gets an expression that represents a property name (for decorated properties or enums).
93063 * For a computed property, a name is generated for the node.

Callers 2

serializeTypeNodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected