Browse Source

Use a GetCSharpSignature instead of calling CSharpSignature directly to set common data like the context kind.

pull/1/head
triton 12 years ago
parent
commit
656e5ecf80
  1. 8
      src/Generator/Generators/CSharp/CSharpTypePrinter.cs

8
src/Generator/Generators/CSharp/CSharpTypePrinter.cs

@ -229,7 +229,7 @@ namespace CppSharp.Generators.CSharp
Context.Type = template; Context.Type = template;
return new CSharpTypePrinterResult() return new CSharpTypePrinterResult()
{ {
Type = typeMap.CSharpSignature(Context), Type = GetCSharpSignature(typeMap),
TypeMap = typeMap TypeMap = typeMap
}; };
} }
@ -237,6 +237,12 @@ namespace CppSharp.Generators.CSharp
return decl.Name; return decl.Name;
} }
private string GetCSharpSignature(TypeMap typeMap)
{
Context.CSharpKind = ContextKind;
return typeMap.CSharpSignature(Context);
}
public CSharpTypePrinterResult VisitTemplateParameterType( public CSharpTypePrinterResult VisitTemplateParameterType(
TemplateParameterType param, TypeQualifiers quals) TemplateParameterType param, TypeQualifiers quals)
{ {

Loading…
Cancel
Save