Skip to content

Commit 2c124e5

Browse files
committed
Rename a generator extension
1 parent a0df371 commit 2c124e5

File tree

4 files changed

+7
-8
lines changed

4 files changed

+7
-8
lines changed

CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservableValidatorValidateAllPropertiesGenerator.Execute.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static ValidationInfo GetInfo(INamedTypeSymbol typeSymbol)
8181
}
8282

8383
return new(
84-
typeSymbol.GetFullMetadataNameForFileName(),
84+
typeSymbol.GetFullyQualifiedMetadataName(),
8585
typeSymbol.GetFullyQualifiedName(),
8686
propertyNames.ToImmutable());
8787
}
@@ -102,7 +102,7 @@ public static RecipientInfo GetInfo(INamedTypeSymbol typeSymbol, ImmutableArray<
102102
}
103103

104104
return new(
105-
typeSymbol.GetFullMetadataNameForFileName(),
105+
typeSymbol.GetFullyQualifiedMetadataName(),
106106
typeSymbol.GetFullyQualifiedName(),
107107
names.ToImmutable());
108108
}

CommunityToolkit.Mvvm.SourceGenerators/Extensions/INamedTypeSymbolExtensions.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
using System;
66
using System.Collections.Generic;
7-
using System.Text;
87
using CommunityToolkit.Mvvm.SourceGenerators.Helpers;
98
using Microsoft.CodeAnalysis;
109

@@ -16,11 +15,11 @@ namespace CommunityToolkit.Mvvm.SourceGenerators.Extensions;
1615
internal static class INamedTypeSymbolExtensions
1716
{
1817
/// <summary>
19-
/// Gets a valid filename for a given <see cref="INamedTypeSymbol"/> instance.
18+
/// Gets a fully qualified metadata name for a given <see cref="INamedTypeSymbol"/> instance.
2019
/// </summary>
2120
/// <param name="symbol">The input <see cref="INamedTypeSymbol"/> instance.</param>
22-
/// <returns>The full metadata name for <paramref name="symbol"/> that is also a valid filename.</returns>
23-
public static string GetFullMetadataNameForFileName(this INamedTypeSymbol symbol)
21+
/// <returns>The fully qualified metadata name for <paramref name="symbol"/>.</returns>
22+
public static string GetFullyQualifiedMetadataName(this INamedTypeSymbol symbol)
2423
{
2524
using ImmutableArrayBuilder<char> builder = ImmutableArrayBuilder<char>.Rent();
2625

CommunityToolkit.Mvvm.SourceGenerators/Messaging/IMessengerRegisterAllGenerator.Execute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static RecipientInfo GetInfo(INamedTypeSymbol typeSymbol, ImmutableArray<
5959
}
6060

6161
return new(
62-
typeSymbol.GetFullMetadataNameForFileName(),
62+
typeSymbol.GetFullyQualifiedMetadataName(),
6363
typeSymbol.GetFullyQualifiedName(),
6464
names.ToImmutable());
6565
}

CommunityToolkit.Mvvm.SourceGenerators/Models/HierarchyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static HierarchyInfo From(INamedTypeSymbol typeSymbol)
4141
}
4242

4343
return new(
44-
typeSymbol.GetFullMetadataNameForFileName(),
44+
typeSymbol.GetFullyQualifiedMetadataName(),
4545
typeSymbol.MetadataName,
4646
typeSymbol.ContainingNamespace.ToDisplayString(new(typeQualificationStyle: NameAndContainingTypesAndNamespaces)),
4747
hierarchy.ToImmutable());

0 commit comments

Comments
 (0)