Skip to main content

Module kotlin

Module kotlin 

Source

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_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.