klyn.code.klyn.KlynDocComment.readIdentifier
method
public static readIdentifier(value as String) as String
Description

Reads the leading identifier or qualified token from value up to the first whitespace or delimiter character (:, (, ), ,, =, <, >, [, ]).

Parameters
ParameterDescription
valueSource text starting with an identifier.
Returns

Extracted identifier token.

Example
import klyn.code.klyn

assert KlynDocComment.readIdentifier("ArrayList<String>:") == "ArrayList"