File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
src/Smdn.Reflection.ReverseGenerating/Smdn.Reflection.ReverseGenerating Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -244,17 +244,11 @@ IEnumerable<string> ConvertAttributeArguments(CustomAttributeData attr)
244
244
{
245
245
foreach ( var param in attr . Constructor . GetParameters ( ) ) {
246
246
var arg = attr . ConstructorArguments [ param . Position ] ;
247
+ var convertedConstructorArgument = ConvertAttributeTypedArgument ( arg ) ;
247
248
248
- if ( options . AttributeDeclaration . WithNamedArguments ) {
249
- yield return string . Concat (
250
- param . Name ,
251
- ": " ,
252
- ConvertAttributeTypedArgument ( arg )
253
- ) ;
254
- }
255
- else {
256
- yield return ConvertAttributeTypedArgument ( arg ) ;
257
- }
249
+ yield return options . AttributeDeclaration . WithNamedArguments
250
+ ? string . Concat ( param . Name , ": " , convertedConstructorArgument )
251
+ : convertedConstructorArgument ;
258
252
}
259
253
260
254
foreach ( var namedArg in attr . NamedArguments ) {
You can’t perform that action at this time.
0 commit comments