languageDataAt

fun <T> languageDataAt(state: EditorState, facet: Facet<T, *>, pos: Int): T?

Query language-specific data at a given position by walking up the syntax tree and looking for nodes with languageDataProp attached.

Returns the facet value from the first node that has language data, or null.