(file: string, imports: string[])
| 107 | }; |
| 108 | |
| 109 | export function buildImportStatement(file: string, imports: string[]) { |
| 110 | if (imports.length == 0) return [`import "./${file}";`]; |
| 111 | return [ |
| 112 | 'import {', |
| 113 | [ |
| 114 | ...imports.slice(0, imports.length - 1).map(_import => `${_import},`), |
| 115 | imports[imports.length-1], |
| 116 | ], |
| 117 | `} from "./${file}";` |
| 118 | ] |
| 119 | } |
| 120 | |
| 121 | export function buildNestedAssemblyOr( |
| 122 | fields: { positioned: ProcessedField["positioned"] }[] |
nothing calls this directly
no outgoing calls
no test coverage detected