From 2f5ac6391d16b1218b24d074c00bfe3f49d45410 Mon Sep 17 00:00:00 2001 From: Manuel Carrasco Date: Thu, 24 Oct 2019 10:50:19 -0300 Subject: [PATCH] Set base type for structs in CCIProvider --- CCIProvider/TypeExtractor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CCIProvider/TypeExtractor.cs b/CCIProvider/TypeExtractor.cs index 19e64dda..4567dd75 100644 --- a/CCIProvider/TypeExtractor.cs +++ b/CCIProvider/TypeExtractor.cs @@ -116,6 +116,8 @@ public TypeDefinition ExtractStruct(Cci.INamedTypeDefinition typedef, Cci.ISourc { var name = typedef.Name.Value; var type = new TypeDefinition(name, TypeKind.ValueType, TypeDefinitionKind.Struct); + var basedef = typedef.BaseClasses.SingleOrDefault(); + type.Base = ExtractType(basedef) as IBasicType; ExtractAttributes(type.Attributes, typedef.Attributes); ExtractGenericTypeParameters(type, typedef);