Skip to content

Commit 35dde07

Browse files
Rename parameters
Give better names.
1 parent 8844f5e commit 35dde07

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Validation/gen/Extensions/ISymbolExtensions.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,18 @@ attribute.AttributeClass is { } attributeClass &&
3737
return null;
3838
}
3939

40-
public static string? GetJsonPropertyName(this ISymbol property, INamedTypeSymbol jsonPropertyNameAttribute)
40+
public static string? GetJsonPropertyName(this ISymbol property, INamedTypeSymbol nameAttribute)
4141
{
42-
var displayNameAttribute = property.GetAttributes()
42+
var jsonPropertyNameAttribute = property.GetAttributes()
4343
.FirstOrDefault(attribute =>
4444
attribute.AttributeClass is { } attributeClass &&
45-
SymbolEqualityComparer.Default.Equals(attributeClass, jsonPropertyNameAttribute));
45+
SymbolEqualityComparer.Default.Equals(attributeClass, nameAttribute));
4646

47-
if (displayNameAttribute is not null)
47+
if (jsonPropertyNameAttribute is not null)
4848
{
49-
if (displayNameAttribute.ConstructorArguments.Length is 1)
49+
if (jsonPropertyNameAttribute.ConstructorArguments.Length is 1)
5050
{
51-
var arg = displayNameAttribute.ConstructorArguments[0];
51+
var arg = jsonPropertyNameAttribute.ConstructorArguments[0];
5252
if (arg.Kind == TypedConstantKind.Primitive && arg.Value is string name)
5353
{
5454
return name;

0 commit comments

Comments
 (0)