(lines: ReadonlyArray<string>)
| 1331 | |
| 1332 | index = fenceIndex + 1 |
| 1333 | const codeStart = index |
| 1334 | while (index < lines.length && lines[index].trim() !== "```") { |
| 1335 | if (isTypeScriptFence(lines[index].trim())) { |
| 1336 | diagnostics.push(diagnostic("malformed-example", "Examples must contain exactly one TypeScript code fence")) |
| 1337 | } |
| 1338 | index++ |
| 1339 | } |
| 1340 | const codeLines = lines.slice(codeStart, index) |
| 1341 | if (index >= lines.length) { |
| 1342 | diagnostics.push(diagnostic("malformed-example", "Examples must close the TypeScript code fence")) |
no test coverage detected
searching dependent graphs…