public static readIdentifier(value as String) as String
Reads the leading identifier or qualified token from value up to the first whitespace or delimiter character (:, (, ), ,, =, <, >, [, ]).
| Parameter | Description |
|---|---|
value | Source text starting with an identifier. |
Extracted identifier token.
import klyn.code.klyn
assert KlynDocComment.readIdentifier("ArrayList<String>:") == "ArrayList"