From daaa91acfa24f5d71b87d5affcc7d993951f6b7c Mon Sep 17 00:00:00 2001 From: triton Date: Mon, 4 Feb 2013 23:40:59 +0000 Subject: [PATCH] Implement missing visitor methods. --- src/Generator/Generators/CLI/CLIMarshal.cs | 10 ++++++++ .../Generators/CSharp/CSharpHelpers.cs | 24 +++++++++++++++---- 2 files changed, 30 insertions(+), 4 deletions(-) diff --git a/src/Generator/Generators/CLI/CLIMarshal.cs b/src/Generator/Generators/CLI/CLIMarshal.cs index ef032f2f..6d1fb196 100644 --- a/src/Generator/Generators/CLI/CLIMarshal.cs +++ b/src/Generator/Generators/CLI/CLIMarshal.cs @@ -124,6 +124,11 @@ namespace Cxxi.Generators.CLI return template.Template.Visit(this); } + public bool VisitPrimitiveType(PrimitiveType type, TypeQualifiers quals) + { + throw new NotImplementedException(); + } + public bool VisitDeclaration(Declaration decl, TypeQualifiers quals) { throw new NotImplementedException(); @@ -383,6 +388,11 @@ namespace Cxxi.Generators.CLI return template.Template.Visit(this); } + public bool VisitPrimitiveType(PrimitiveType type, TypeQualifiers quals) + { + throw new NotImplementedException(); + } + public bool VisitDeclaration(Declaration decl, TypeQualifiers quals) { throw new NotImplementedException(); diff --git a/src/Generator/Generators/CSharp/CSharpHelpers.cs b/src/Generator/Generators/CSharp/CSharpHelpers.cs index f6da28b3..3a375c77 100644 --- a/src/Generator/Generators/CSharp/CSharpHelpers.cs +++ b/src/Generator/Generators/CSharp/CSharpHelpers.cs @@ -1,14 +1,15 @@ - -using System; +using System; using System.Collections.Generic; using System.Linq; -using System.Text; using Cxxi.Generators; +using Cxxi.Types; namespace Cxxi.Templates.CSharp { - class CSharpTypePrinter : ITypeVisitor + class CSharpTypePrinter : ITypePrinter { + public Library Library { get; set; } + public CSharpTypePrinter() { } @@ -91,11 +92,21 @@ namespace Cxxi.Templates.CSharp throw new NotImplementedException(); } + public string VisitPrimitiveType(PrimitiveType type, TypeQualifiers quals) + { + throw new NotImplementedException(); + } + public string VisitDeclaration(Declaration decl, TypeQualifiers quals) { throw new NotImplementedException(); } + public string GetArgumentsString(FunctionType function, bool hasNames) + { + throw new NotImplementedException(); + } + public string GetArgumentString(Parameter arg, bool hasName) { throw new NotImplementedException(); @@ -105,6 +116,11 @@ namespace Cxxi.Templates.CSharp //else // return Type.ToCSharp(); } + + public string ToDelegateString(FunctionType function) + { + throw new NotImplementedException(); + } } public class CSharpModule : TextTemplate