mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
handle AnnotatedBody everywhere. It compiles now!
This commit is contained in:
parent
d2d3681d7e
commit
014131dabe
6 changed files with 108 additions and 81 deletions
|
@ -92,6 +92,25 @@ fn generate_module_doc<'a>(
|
|||
_ => (acc, None),
|
||||
},
|
||||
|
||||
AnnotatedBody{ ann_pattern, .. } => match ann_pattern.value {
|
||||
Pattern::Identifier(identifier) => {
|
||||
// Check if the definition is exposed
|
||||
if exposed_ident_ids
|
||||
.get_id(&InlinableString::from(identifier))
|
||||
.is_some()
|
||||
{
|
||||
let entry = DocEntry {
|
||||
name: identifier.to_string(),
|
||||
docs: before_comments_or_new_lines.and_then(comments_or_new_lines_to_docs),
|
||||
};
|
||||
acc.push(entry);
|
||||
}
|
||||
(acc, None)
|
||||
}
|
||||
|
||||
_ => (acc, None),
|
||||
},
|
||||
|
||||
Alias {
|
||||
name: _,
|
||||
vars: _,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue