|
|
|
@ -87,8 +87,22 @@ namespace CppSharp.Generators.CSharp |
|
|
|
|
|
|
|
|
|
|
|
public CSharpTypePrinterResult VisitTagType(TagType tag, TypeQualifiers quals) |
|
|
|
public CSharpTypePrinterResult VisitTagType(TagType tag, TypeQualifiers quals) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (tag.Declaration == null) |
|
|
|
if (tag.Declaration == null) |
|
|
|
return string.Empty; |
|
|
|
return string.Empty; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TypeMap typeMap; |
|
|
|
|
|
|
|
if (TypeMapDatabase.FindTypeMap(tag.Declaration, out typeMap)) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
typeMap.Type = tag; |
|
|
|
|
|
|
|
Context.CSharpKind = ContextKind; |
|
|
|
|
|
|
|
Context.Type = tag; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new CSharpTypePrinterResult() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Type = typeMap.CSharpSignature(Context), |
|
|
|
|
|
|
|
TypeMap = typeMap |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return tag.Declaration.Visit(this); |
|
|
|
return tag.Declaration.Visit(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|