Refactoring: split ElementType away from the types used as property type

These are two different concept, and it is confusing to keep them in the
same enum

We want to support component without any base element, and Void is
already used for global component, so do this refactoring before
This commit is contained in:
Olivier Goffart 2022-10-26 12:45:48 +02:00 committed by Olivier Goffart
parent 8fa6bbb244
commit 28ae8f7bc4
51 changed files with 588 additions and 554 deletions

View file

@ -182,9 +182,6 @@ impl Expression {
pub fn default_value_for_type(ty: &Type) -> Option<Self> {
Some(match ty {
Type::Invalid
| Type::Component(_)
| Type::Builtin(_)
| Type::Native(_)
| Type::Callback { .. }
| Type::Function { .. }
| Type::Void