slint/internal/compiler/tests
Olivier Goffart d8d0bb2115 Rework lookup of sub-elements with regard to special accepted elements
Consider
```slint
// Some code in the wild actually have made their own menubar before
component MenuBar { /* ... */ }

component Row { /* ... */ }

export component Main inherits Window {
  // This should find the declared component and not the builtin component
  MenuBar { }

  GridLayout {
     Row {}
  }
}
```

Previously, `MenuBar` and `Row` were first resolved against
`additional_accepted_child_types` and so it would always find the
builtin one.
But this patch changes that to find the builtin one only if it hasn't
been replaced by another component with the name name.
(So we'd use the cusom MenuBar and the custom Row)

Another change is that we also lookup the
additional_accepted_child_types if they are in a @children.

```slint
component MyGrid {
   GridLayout { @children }
}
export component Main {
   MyGrid {
      // This used to be an error but is now accepted
      Row { }
   }
}
```
2025-01-23 14:28:11 +01:00
..
syntax Rework lookup of sub-elements with regard to special accepted elements 2025-01-23 14:28:11 +01:00
typeloader Avid reporting further error when an element is misspelled 2024-08-29 13:10:35 +02:00
consistent_styles.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
syntax_tests.rs Parser: skip UTF-8 BOM 2025-01-07 12:34:08 +01:00