Skip to content

Commit 026dfd9

Browse files
authored
perf: Use records instead of record structs for large SG models
1 parent f0f6f13 commit 026dfd9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SourceGenerators/Uno.UI.SourceGenerators.Internal/DependencyObject/DependencyPropertyGenerator.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class DependencyPropertyGenerator : IIncrementalGenerator
2020
{
2121
private static SymbolDisplayFormat _fullyQualifiedWithoutGlobal = SymbolDisplayFormat.FullyQualifiedFormat.WithGlobalNamespaceStyle(SymbolDisplayGlobalNamespaceStyle.Omitted);
2222

23-
private readonly record struct AttachedPropertyData
23+
private record AttachedPropertyData
2424
{
2525
public string? AttachedBackingFieldOwnerFullyQualifiedName { get; }
2626
public string? AttachedBackingFieldOwnerNamespace { get; }
@@ -56,7 +56,7 @@ public AttachedPropertyData(ISymbol dpSymbol, AttributeData attribute, string pr
5656
}
5757
}
5858

59-
private readonly record struct PropertyData
59+
private record PropertyData
6060
{
6161
public string? PropertySymbolNodeContent { get; }
6262

@@ -82,7 +82,7 @@ public PropertyData(ISymbol dpSymbol, string propertyName)
8282
}
8383
}
8484

85-
private readonly record struct GenerationCandidateData
85+
private record GenerationCandidateData
8686
{
8787
#region Attribute arguments
8888
public string MetadataOptions { get; }

0 commit comments

Comments
 (0)