Skip to main content

get_attribute_documentation

Function get_attribute_documentation 

Source
pub fn get_attribute_documentation(attr: &str) -> Option<BuiltinDoc>
Expand description

Get documentation for a Perl subroutine or variable attribute.

Attributes are declared with :name syntax, e.g. sub foo :lvalue { ... }. Pass the attribute name without the leading colon.

Returns signature and description suitable for LSP hover display, or None if the attribute is not a known built-in.