Function
convertLiteralOrFragment
(clause: string | Fragment)
Source from the content-addressed store, hash-verified
| 1438 | } |
| 1439 | |
| 1440 | function convertLiteralOrFragment(clause: string | Fragment): Array<Segment> { |
| 1441 | if (typeof clause === "string") { |
| 1442 | return [literal(clause)] |
| 1443 | } |
| 1444 | return clause.segments as Array<Segment> |
| 1445 | } |
| 1446 | |
| 1447 | const makePlaceholdersArray = (evaluate: (u: unknown) => string) => (values: ReadonlyArray<unknown>): string => { |
| 1448 | if (values.length === 0) { |
Tested by
no test coverage detected