(node, flags)
| 14951 | } |
| 14952 | ts.getLiteralText = getLiteralText; |
| 14953 | function canUseOriginalText(node, flags) { |
| 14954 | if (nodeIsSynthesized(node) || !node.parent || (flags & 4 /* GetLiteralTextFlags.TerminateUnterminatedLiterals */ && node.isUnterminated)) { |
| 14955 | return false; |
| 14956 | } |
| 14957 | if (ts.isNumericLiteral(node) && node.numericLiteralFlags & 512 /* TokenFlags.ContainsSeparator */) { |
| 14958 | return !!(flags & 8 /* GetLiteralTextFlags.AllowNumericSeparator */); |
| 14959 | } |
| 14960 | return !ts.isBigIntLiteral(node); |
| 14961 | } |
| 14962 | function getTextOfConstantValue(value) { |
| 14963 | return ts.isString(value) ? '"' + escapeNonAsciiString(value) + '"' : "" + value; |
| 14964 | } |
no test coverage detected