New syntax: allow to create component without base

This commit is contained in:
Olivier Goffart 2022-10-26 16:26:55 +02:00 committed by Olivier Goffart
parent d7e366864b
commit f055afd2de
14 changed files with 187 additions and 77 deletions

View file

@ -209,6 +209,8 @@ pub fn load_builtins(register: &mut TypeRegister) {
register.property_animation_type =
ElementType::Builtin(natives.remove("PropertyAnimation").unwrap());
register.empty_type = ElementType::Builtin(natives.remove("Empty").unwrap());
if !diag.is_empty() {
let vec = diag.to_string_vec();
#[cfg(feature = "display-diagnostics")]