(code: string | undefined)
| 251 | } |
| 252 | |
| 253 | function inlineCode(code: string | undefined) { |
| 254 | return function (this: SrcBuilder) { |
| 255 | if (code) { |
| 256 | // HACK: remove the return value as it is not the state we are creating. |
| 257 | code = code |
| 258 | .trim() |
| 259 | .replace(/return main\(\);?$/, '') |
| 260 | .trim(); |
| 261 | this.emit(code, ';'); |
| 262 | } |
| 263 | }; |
| 264 | } |
| 265 | |
| 266 | function generateQrl( |
| 267 | fromFile: File, |
no test coverage detected
searching dependent graphs…