mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 02:39:28 +00:00
parent
bef2e3617d
commit
3a4f3c61d5
17 changed files with 196 additions and 16 deletions
|
@ -36,7 +36,7 @@ pub fn load_builtins(register: &mut TypeRegister) {
|
|||
// parse structs
|
||||
for s in doc.StructDeclaration().chain(doc.ExportsList().flat_map(|e| e.StructDeclaration())) {
|
||||
let external_name = identifier_text(&s.DeclaredIdentifier()).unwrap();
|
||||
let mut ty = object_tree::type_struct_from_node(s.ObjectType(), &mut diag, register);
|
||||
let mut ty = object_tree::type_struct_from_node(s.ObjectType(), &mut diag, register, None);
|
||||
if let Type::Struct { name, .. } = &mut ty {
|
||||
*name = Some(
|
||||
parse_annotation("name", &s.ObjectType())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue