close

open override fun close()

Mark this engine closed. Idempotent. After closing, subsequent calls to update throw IllegalStateException. Native memory associated with the parse tree, parser, and query is reclaimed by the underlying ktreesitter Cleaner once the instance becomes garbage-collectible — close itself does not free native resources.