(ast: o.LiteralExpr, ctx: EmitterVisitorContext)
| 354 | } |
| 355 | |
| 356 | visitLiteralExpr(ast: o.LiteralExpr, ctx: EmitterVisitorContext): void { |
| 357 | this.printLeadingComments(ast, ctx); |
| 358 | const value = ast.value; |
| 359 | if (typeof value === 'string') { |
| 360 | ctx.print(ast, escapeIdentifier(value)!); |
| 361 | } else { |
| 362 | ctx.print(ast, `${value}`); |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | visitRegularExpressionLiteral( |
| 367 | ast: o.RegularExpressionLiteralExpr, |
nothing calls this directly
no test coverage detected