public identifierAt(source as String, targetLine as Long, targetColumn as Long) as String
Extracts the complete identifier at or immediately before (targetLine, targetColumn).
| Parameter | Description |
|---|---|
source | Full document text. |
targetLine | Zero-based line index. |
targetColumn | Zero-based column offset. |
Full identifier token at the position, or "".
import klyn.code.klyn
t = KlynTokenizer()
assert t.identifierAt("val = computeTotal(x)", 0, 9) == "computeTotal"