ldoc-legacy
Normalize supported versioned classic LFE LDoc records while retaining their source lines, patterns, export flags, and source declaration.
decode/3function
decode/3Normalize CHUNK-BYTES as a supported lfe_docs_v1 record for MODULE.
The complete ETF term must contain proper binary module/doc lines and supported function or macro entries with valid patterns, export flags, positive source lines, and unique identities. Original lines, patterns, and export metadata are retained. Module and entry line lists are joined with newlines under und; only an empty line list becomes none. A nonempty line list such as [<<>>] produces an und entry with an empty binary body. SOURCE is copied through as a declaration, not authenticated. Module annotation is undefined, and macro arity remains unknown. Success returns {ok, ModuleMap}; malformed ETF or record data returns {error, invalid_ldoc}. Pattern data is never executed; no files are read.