mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-02 19:32:17 +00:00
module docs
This commit is contained in:
parent
0b56882785
commit
0c463555f4
4 changed files with 26 additions and 5 deletions
|
@ -22,6 +22,7 @@ pub struct ModuleDocumentation {
|
|||
pub enum DocEntry {
|
||||
DocDef(DocDef),
|
||||
DetachedDoc(String),
|
||||
ModuleDoc(String),
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
|
@ -179,7 +180,7 @@ fn generate_entry_docs(
|
|||
if let Some(docs) = comments_or_new_lines_to_docs(header_comments) {
|
||||
println!("<<docs:\n {:#?}\n docs>>", docs);
|
||||
|
||||
acc.push(DetachedDoc(docs));
|
||||
acc.push(DocEntry::ModuleDoc(docs));
|
||||
}
|
||||
|
||||
let mut before_comments_or_new_lines: Option<&[CommentOrNewline]> = None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue