public static firstSentence(value as String) as String
Extracts the first summary sentence from a cleaned documentation comment. Dots inside backtick code spans (e.g. klyn.Type ) do not prematurely end the sentence.
| Parameter | Description |
|---|---|
value | Cleaned documentation comment text. |
First sentence summary.
import klyn.code.klyn doc = "Resolves `klyn.Type` instances. More details follow." assert KlynDocComment.firstSentence(doc) == "Resolves `klyn.Type` instances."