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:
KtorZ
2023-01-27 16:51:02 +01:00
parent 59ffc6434f
commit 547696abde
5 changed files with 98 additions and 29 deletions

View File

@@ -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,
}
},
)