|
|
|
@ -208,17 +208,9 @@ namespace Avalonia.Markup.Xaml.XamlIl.CompilerExtensions.Transformers |
|
|
|
if (node is XamlIlCombinatorSelector |
|
|
|
{ |
|
|
|
SelectorType: XamlIlCombinatorSelector.CombinatorSelectorType.Template |
|
|
|
} templateSelector) |
|
|
|
}) |
|
|
|
{ |
|
|
|
if (templateSelector.Previous is XamlIlNestingSelector nestingSelector) |
|
|
|
{ |
|
|
|
return nestingSelector.TargetType; |
|
|
|
} |
|
|
|
if (templateSelector.Previous is XamlIlTypeSelector typeSelector) |
|
|
|
{ |
|
|
|
return typeSelector.TargetType; |
|
|
|
} |
|
|
|
return null; |
|
|
|
return node.Previous.TargetType; |
|
|
|
} |
|
|
|
node = node.Previous; |
|
|
|
} |
|
|
|
|