Skip to main content

cursor_context

Function cursor_context 

Source
pub fn cursor_context(source: &str, position: Position) -> Option<CursorContext>
Expand description

Extract cursor context: the identifier under the cursor and its ancestor names.

Walks up the tree-sitter parse tree to find the enclosing function and contract.