Add title and description to exported types in the blueprint
This also fixes a bug where the documentation of record constructor arguments would be dropped after type-checking. Took me a while to pinpoint.
This commit is contained in:
@@ -80,7 +80,6 @@ impl UntypedModule {
|
||||
|
||||
for def in consts.into_iter().chain(not_consts) {
|
||||
let definition = infer_definition(def, &name, &mut hydrators, &mut environment, kind)?;
|
||||
|
||||
definitions.push(definition);
|
||||
}
|
||||
|
||||
@@ -339,6 +338,7 @@ fn infer_definition(
|
||||
label,
|
||||
annotation,
|
||||
location,
|
||||
doc,
|
||||
..
|
||||
},
|
||||
t,
|
||||
@@ -348,7 +348,7 @@ fn infer_definition(
|
||||
annotation,
|
||||
location,
|
||||
tipo: t.clone(),
|
||||
doc: None,
|
||||
doc,
|
||||
}
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user