Implement LLR code lowering for ComponentContainer

This commit is contained in:
Tobias Hunger 2023-07-04 20:08:58 +02:00 committed by Olivier Goffart
parent d47d52bf52
commit 5db78b6dd2
7 changed files with 140 additions and 3 deletions

View file

@ -1625,7 +1625,7 @@ impl Element {
}
pub fn sub_component(&self) -> Option<&Rc<Component>> {
if self.repeated.is_some() {
if self.repeated.is_some() || self.is_component_placeholder {
None
} else if let ElementType::Component(sub_component) = &self.base_type {
Some(sub_component)