Skip to content

Commit

Permalink
perf: Use records instead of record structs for large SG models
Browse files Browse the repository at this point in the history
  • Loading branch information
Youssef1313 authored Nov 27, 2022
1 parent f0f6f13 commit 026dfd9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class DependencyPropertyGenerator : IIncrementalGenerator
{
private static SymbolDisplayFormat _fullyQualifiedWithoutGlobal = SymbolDisplayFormat.FullyQualifiedFormat.WithGlobalNamespaceStyle(SymbolDisplayGlobalNamespaceStyle.Omitted);

private readonly record struct AttachedPropertyData
private record AttachedPropertyData
{
public string? AttachedBackingFieldOwnerFullyQualifiedName { get; }
public string? AttachedBackingFieldOwnerNamespace { get; }
Expand Down Expand Up @@ -56,7 +56,7 @@ public AttachedPropertyData(ISymbol dpSymbol, AttributeData attribute, string pr
}
}

private readonly record struct PropertyData
private record PropertyData
{
public string? PropertySymbolNodeContent { get; }

Expand All @@ -82,7 +82,7 @@ public PropertyData(ISymbol dpSymbol, string propertyName)
}
}

private readonly record struct GenerationCandidateData
private record GenerationCandidateData
{
#region Attribute arguments
public string MetadataOptions { get; }
Expand Down

0 comments on commit 026dfd9

Please sign in to comment.