(ast: Literal)
| 1835 | } |
| 1836 | |
| 1837 | function literalToString(ast: Literal): Literal { |
| 1838 | const literalAsString = globalThis.String(ast.literal) |
| 1839 | return replaceEncoding(ast, [ |
| 1840 | new Link( |
| 1841 | new Literal(literalAsString), |
| 1842 | new SchemaTransformation.Transformation( |
| 1843 | SchemaGetter.transform(() => ast.literal), |
| 1844 | SchemaGetter.transform(() => literalAsString) |
| 1845 | ) |
| 1846 | ) |
| 1847 | ]) |
| 1848 | } |
| 1849 | |
| 1850 | /** |
| 1851 | * AST node matching any `string` value. |
no test coverage detected