Browse Source

Implement missing visitor methods.

pull/1/head
triton 13 years ago
parent
commit
daaa91acfa
  1. 10
      src/Generator/Generators/CLI/CLIMarshal.cs
  2. 24
      src/Generator/Generators/CSharp/CSharpHelpers.cs

10
src/Generator/Generators/CLI/CLIMarshal.cs

@ -124,6 +124,11 @@ namespace Cxxi.Generators.CLI
return template.Template.Visit(this); return template.Template.Visit(this);
} }
public bool VisitPrimitiveType(PrimitiveType type, TypeQualifiers quals)
{
throw new NotImplementedException();
}
public bool VisitDeclaration(Declaration decl, TypeQualifiers quals) public bool VisitDeclaration(Declaration decl, TypeQualifiers quals)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
@ -383,6 +388,11 @@ namespace Cxxi.Generators.CLI
return template.Template.Visit(this); return template.Template.Visit(this);
} }
public bool VisitPrimitiveType(PrimitiveType type, TypeQualifiers quals)
{
throw new NotImplementedException();
}
public bool VisitDeclaration(Declaration decl, TypeQualifiers quals) public bool VisitDeclaration(Declaration decl, TypeQualifiers quals)
{ {
throw new NotImplementedException(); throw new NotImplementedException();

24
src/Generator/Generators/CSharp/CSharpHelpers.cs

@ -1,14 +1,15 @@
 using System;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Cxxi.Generators; using Cxxi.Generators;
using Cxxi.Types;
namespace Cxxi.Templates.CSharp namespace Cxxi.Templates.CSharp
{ {
class CSharpTypePrinter : ITypeVisitor<string> class CSharpTypePrinter : ITypePrinter
{ {
public Library Library { get; set; }
public CSharpTypePrinter() public CSharpTypePrinter()
{ {
} }
@ -91,11 +92,21 @@ namespace Cxxi.Templates.CSharp
throw new NotImplementedException(); throw new NotImplementedException();
} }
public string VisitPrimitiveType(PrimitiveType type, TypeQualifiers quals)
{
throw new NotImplementedException();
}
public string VisitDeclaration(Declaration decl, TypeQualifiers quals) public string VisitDeclaration(Declaration decl, TypeQualifiers quals)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
} }
public string GetArgumentsString(FunctionType function, bool hasNames)
{
throw new NotImplementedException();
}
public string GetArgumentString(Parameter arg, bool hasName) public string GetArgumentString(Parameter arg, bool hasName)
{ {
throw new NotImplementedException(); throw new NotImplementedException();
@ -105,6 +116,11 @@ namespace Cxxi.Templates.CSharp
//else //else
// return Type.ToCSharp(); // return Type.ToCSharp();
} }
public string ToDelegateString(FunctionType function)
{
throw new NotImplementedException();
}
} }
public class CSharpModule : TextTemplate public class CSharpModule : TextTemplate

Loading…
Cancel
Save