mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-17 01:05:02 +00:00
fix desugar for suffixed nodes
This commit is contained in:
parent
fac52f7408
commit
b8ec53738a
8 changed files with 184 additions and 207 deletions
|
@ -291,7 +291,25 @@ fn generate_entry_docs(
|
|||
// Don't generate docs for `expect-fx`s
|
||||
}
|
||||
|
||||
ValueDef::Stmt(_) => todo!(),
|
||||
ValueDef::Stmt(loc_expr) => {
|
||||
// TODO is this right for suffixed??
|
||||
if let roc_parse::ast::Expr::Var {
|
||||
ident: identifier, ..
|
||||
} = loc_expr.value
|
||||
{
|
||||
// Check if this module exposes the def
|
||||
if let Some(ident_id) = ident_ids.get_id(identifier) {
|
||||
let doc_def = DocDef {
|
||||
name: identifier.to_string(),
|
||||
type_annotation: TypeAnnotation::NoTypeAnn,
|
||||
type_vars: Vec::new(),
|
||||
symbol: Symbol::new(home, ident_id),
|
||||
docs,
|
||||
};
|
||||
doc_entries.push(DocEntry::DocDef(doc_def));
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Ok(type_index) => match &defs.type_defs[type_index.index()] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue