Skip to content

Commit

Permalink
fix(DependencyObjectGenerator): Place BindableAttribute on the correc…
Browse files Browse the repository at this point in the history
…t type
  • Loading branch information
Youssef1313 committed Sep 30, 2021
1 parent 1f8d45f commit 852265c
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -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);
Expand Down

0 comments on commit 852265c

Please sign in to comment.