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)
244244 {
245245 foreach ( var param in attr . Constructor . GetParameters ( ) ) {
246246 var arg = attr . ConstructorArguments [ param . Position ] ;
247+ var convertedConstructorArgument = ConvertAttributeTypedArgument ( arg ) ;
247248
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 ;
258252 }
259253
260254 foreach ( var namedArg in attr . NamedArguments ) {
You can’t perform that action at this time.
0 commit comments