Skip to content

Commit

Permalink
fix(hr): Fix invalid gen for top level dic
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb committed Dec 10, 2024
1 parent 59533b9 commit a9fa811
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3113,7 +3113,7 @@ private void BuildExtendedProperties(IIndentedStringBuilder outerwriter, XamlObj
}
else
{
BuildCustomMarkupExtensionPropertyValue(writer, member, closureName, $"(({CurrentScope.ClassName})__that)");
BuildCustomMarkupExtensionPropertyValue(writer, member, closureName, _isTopLevelDictionary ? null : $"(({CurrentScope.ClassName})__that)");
}
}
else if (member.Objects.Count > 0)
Expand Down Expand Up @@ -3475,7 +3475,7 @@ private void BuildExtendedProperties(IIndentedStringBuilder outerwriter, XamlObj
}

// Local function used to build a property/value for any custom MarkupExtensions
void BuildCustomMarkupExtensionPropertyValue(IIndentedStringBuilder writer, XamlMemberDefinition member, string closure, string resourceOwner)
void BuildCustomMarkupExtensionPropertyValue(IIndentedStringBuilder writer, XamlMemberDefinition member, string closure, string? resourceOwner)
{
var propertyValue = GetCustomMarkupExtensionValue(member, closure, resourceOwner);
if (!propertyValue.IsNullOrEmpty())
Expand Down

0 comments on commit a9fa811

Please sign in to comment.