Finds the leaf CST node at the specified 0-based string offset. If no CST node exists at the specified position, it will return the leaf node before it.
If there is no leaf node before the specified offset, this method will return undefined.
undefined
The CST node to search through.
The specified offset.
The CST node closest to the specified offset.
Finds the leaf CST node at the specified 0-based string offset. If no CST node exists at the specified position, it will return the leaf node before it.
If there is no leaf node before the specified offset, this method will return
undefined
.