Skip to content

Commit b2418e6

Browse files
Create EquatableArray
1 parent c7429d2 commit b2418e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/CommunityToolkit.Maui.SourceGenerators.Internal/Generators/AttachedBindablePropertyAttributeSourceGenerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ static void ExecuteAllValues(SourceProductionContext context, ImmutableArray<Att
174174
attachedBindablePropertiesBuffer[attachedBindablePropertiesCount++] = abp;
175175
}
176176

177-
var attachedBindableProperties = ImmutableArray.Create(attachedBindablePropertiesBuffer, 0, attachedBindablePropertiesCount);
177+
var attachedBindablePropertiesArray = EquatableArray<AttachedBindablePropertyModel>.FromImmutableArray(ImmutableArray.Create(attachedBindablePropertiesBuffer, 0, attachedBindablePropertiesCount));
178178

179179
var classAccessibility = attachedBindablePropertySemanticValues.ClassInformation.DeclaredAccessibility;
180180

181181
var combinedClassInfo = new ClassInformation(className, classAccessibility, containingNamespace, containingTypes, genericTypeParameters);
182-
var combinedValues = new AttachedBindablePropertySemanticValues(combinedClassInfo, attachedBindableProperties.AsEquatableArray());
182+
var combinedValues = new AttachedBindablePropertySemanticValues(combinedClassInfo, attachedBindablePropertiesArray);
183183

184184
var fileNameSuffix = string.IsNullOrEmpty(containingTypes) ? className : string.Concat(containingTypes, ".", className);
185185
var source = GenerateSource(combinedValues);

0 commit comments

Comments
 (0)