File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/Validation/gen/Extensions Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments