ensureSyntaxTree
Get the syntax tree for the state if it covers at least up to position upto. When async parsing is in progress and the current tree does not yet reach upto, returns null.
Return
The syntax tree, or null if no language is configured or the tree does not yet cover upto.
Parameters
upto
The minimum document position the tree must cover.
timeout
Ignored in the current implementation. Present for API compatibility with upstream CodeMirror.