public static testLines(source as String) as ArrayList<Int>:
Returns zero-based lines carrying @TestClass or @Test.
The result can be used by editors to render test launch markers without implementing a second source scanner.
| Parameter | Description |
|---|---|
source | Klyn source text. |
Annotation line numbers in source order.
lines = TestSourceScanner.testLines("@Test\npublic check():\n pass\n")
assert lines == [0]