* Gets an expression that points to the global "BigInt" constructor at runtime if it is * available.
()
| 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. |
no outgoing calls
no test coverage detected