Skip to content

Commit b83799a

Browse files
committed
core: Fix support for nested array custom attribute params
1 parent 17635fa commit b83799a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Cpp2IL.Core/Utils/AsmResolver/AsmResolverAssemblyPopulator.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ private static CustomAttributeArgument BuildArrayArgument(AssemblyDefinition par
9191
CustomAttributeEnumParameter enumParameter => enumParameter.UnderlyingPrimitiveParameter.PrimitiveValue,
9292
BaseCustomAttributeTypeParameter type => (object?)type.TypeContext?.ToTypeSignature(parentAssembly.ManifestModule!),
9393
CustomAttributeNullParameter => null,
94+
CustomAttributeArrayParameter array => BuildArrayArgument(parentAssembly, array),
9495
_ => throw new("Not supported array element type: " + e.GetType().FullName)
9596
};
9697

0 commit comments

Comments
 (0)