From 852265cdcbf7811a8e6e59b9de5affcda1abaa23 Mon Sep 17 00:00:00 2001 From: Youssef1313 Date: Thu, 30 Sep 2021 18:12:01 +0200 Subject: [PATCH] fix(DependencyObjectGenerator): Place BindableAttribute on the correct type --- .../DependencyObject/DependencyObjectGenerator.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/SourceGenerators/Uno.UI.SourceGenerators/DependencyObject/DependencyObjectGenerator.cs b/src/SourceGenerators/Uno.UI.SourceGenerators/DependencyObject/DependencyObjectGenerator.cs index a5c056a5bb15..3c229aeeee2f 100644 --- a/src/SourceGenerators/Uno.UI.SourceGenerators/DependencyObject/DependencyObjectGenerator.cs +++ b/src/SourceGenerators/Uno.UI.SourceGenerators/DependencyObject/DependencyObjectGenerator.cs @@ -149,13 +149,13 @@ private void ProcessType(INamedTypeSymbol typeSymbol) using (builder.BlockInvariant($"namespace {typeSymbol.ContainingNamespace}")) { - if (_bindableAttributeSymbol != null && typeSymbol.FindAttribute(_bindableAttributeSymbol) == null) - { - builder.AppendLineInvariant(@"[global::Windows.UI.Xaml.Data.Bindable]"); - } - using (GenerateNestingContainers(builder, typeSymbol)) { + if (_bindableAttributeSymbol != null && typeSymbol.FindAttribute(_bindableAttributeSymbol) == null) + { + builder.AppendLineInvariant(@"[global::Windows.UI.Xaml.Data.Bindable]"); + } + using (builder.BlockInvariant($"partial class {typeSymbol.Name} : IDependencyObjectStoreProvider, IWeakReferenceProvider")) { GenerateDependencyObjectImplementation(builder);