Skip to main contentModule kotlin
Source - CALL_QUERY
- Tree-sitter query for extracting function calls.
- DEFUSE_QUERY
- Tree-sitter query for extracting definition and use sites.
Write-site patterns capture the identifier node within property declarations:
- 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.
- extract_function_name
- Extract the function name from a Kotlin
function_declaration node. - 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.