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