(ast: Literal)
| 1332 | } |
| 1333 | |
| 1334 | function literalToString(ast: Literal): Literal { |
| 1335 | const literalAsString = globalThis.String(ast.literal) |
| 1336 | return replaceEncoding(ast, [ |
| 1337 | new Link( |
| 1338 | new Literal(literalAsString), |
| 1339 | new SchemaTransformation.Transformation( |
| 1340 | SchemaGetter.transform(() => ast.literal), |
| 1341 | SchemaGetter.transform(() => literalAsString) |
| 1342 | ) |
| 1343 | ) |
| 1344 | ]) |
| 1345 | } |
| 1346 | |
| 1347 | /** |
| 1348 | * AST node matching any `string` value. |
no test coverage detected