Skip to main content

Module go

Module go 

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 Go elements (functions, methods, and types).
IMPORT_QUERY
Tree-sitter query for extracting Go imports.
REFERENCE_QUERY
Tree-sitter query for extracting type references.

Functions§

extract_function_name
Extract function or method name from a Go function or method declaration.
extract_inheritance
Extract inheritance information from a Go type node.
find_method_for_receiver
Find method name for a receiver type.
find_receiver_type
Find receiver type for a Go method declaration. Walks the method_declaration.receiver field to find the type.