klyn.code.CodeTokenizer.identifierAt
method
public identifierAt(source as String, targetLine as Long, targetColumn as Long) as String
Description

Extracts the complete identifier at or immediately before (targetLine, targetColumn).

Parameters
ParameterDescription
sourceFull document text.
targetLineZero-based line index.
targetColumnZero-based column offset.
Returns

Full identifier token at the position, or "".

Example
import klyn.code.klyn

t = KlynTokenizer()
assert t.identifierAt("val = computeTotal(x)", 0, 9) == "computeTotal"