Constants§
- CALL_
QUERY - Tree-sitter query for extracting function calls.
- DEFUSE_
QUERY - Tree-sitter query for extracting definition and use sites.
- ELEMENT_
QUERY - Tree-sitter query for extracting Kotlin elements (functions and classes).
- IMPORT_
QUERY - Tree-sitter query for extracting Kotlin imports.
- REFERENCE_
QUERY - Tree-sitter query for extracting type references.
Functions§
- extract_
function_ name - Extract the function name from a Kotlin
function_declarationnode. - extract_
inheritance - Extract inheritance information from a Kotlin class node.
- find_
method_ for_ receiver - Find the method name when a function lives inside a named type body.
- find_
receiver_ type - Find the receiver type (enclosing class or object) for a Kotlin function.