Skip to main content

Module common

Module common 

Source

Structs§

DecoratorInfo
Parsed decorator info for Python @decorator(args).

Functions§

clean_string_literal
Remove surrounding quotes from a string literal.
collect_decorators
Collect decorators from a decorated_definition or directly from a node.
get_def_name
Get the function/class name from a definition node.
get_inner_definition
Get the inner definition from a decorated_definition node.
node_text
Extract text content from a tree-sitter node.
to_kebab_case
Convert PascalCase/snake_case to kebab-case.