slint/internal/compiler/tests/syntax/elements
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
..
component_container.slint Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
contextmenu.slint Add contextmenu syntax test 2025-01-21 15:41:25 +01:00
listview.slint Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
menubar-lookup.slint Rework lookup of sub-elements with regard to special accepted elements 2025-01-23 14:28:11 +01:00
menubar.slint Experimental support for MenuBar 2024-11-20 09:25:37 +01:00
menubar2.slint Experimental support for MenuBar 2024-11-20 09:25:37 +01:00
menubar3.slint MenuBar: error when MenuBar is repeated or conditional 2025-01-08 11:00:59 +01:00
popup.slint PopopWindow: Fix close-policy and close-on-click when inheriting 2024-12-10 12:10:49 +01:00
popup2.slint Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
popup3.slint PopupWindow: added close-policy property (#6614) 2024-10-24 09:27:39 +00:00
tabwidget.slint Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
tabwidget2.slint Set accessible-label on tab panels 2025-01-06 09:30:11 +01:00
tabwidget3.slint Avid reporting further error when an element is misspelled 2024-08-29 13:10:35 +02:00
text.slint Do not print the internal struct name in LSP tooltip or error message 2024-11-04 17:09:57 +01:00
timer.slint Timer Element 2024-08-16 16:36:38 +02:00
timer2.slint Timer: make the interval property mandatory 2024-09-18 09:24:39 +02:00