pub fn parse_metadata(source: &str) -> ModuleMetadataExpand description
Parse LDoc-style metadata from a Lua source string.
- Parses
--- @tag valuelines at the TOP of the file (stops at first non----line). - Auto-extracts function names from
function c:method_name(andfunction M.method_name(patterns across the entire file.
Never panics — returns a valid ModuleMetadata even on empty or malformed input.