From be0f73f471ebe17d8eff822e05f93e438e48278f Mon Sep 17 00:00:00 2001 From: triton Date: Sun, 13 Oct 2013 21:16:13 +0100 Subject: [PATCH] Moved Diagnostics class to new core project. --- build/premake4.lua | 1 + src/{Generator => Core}/Diagnostics.cs | 6 ++ src/Generator/Generators/Generator.cs | 107 ------------------------- 3 files changed, 7 insertions(+), 107 deletions(-) rename src/{Generator => Core}/Diagnostics.cs (95%) delete mode 100644 src/Generator/Generators/Generator.cs diff --git a/build/premake4.lua b/build/premake4.lua index 7418615d..60d50daa 100644 --- a/build/premake4.lua +++ b/build/premake4.lua @@ -40,6 +40,7 @@ solution "CppSharp" IncludeTests() group "Libraries" + include (srcdir .. "/Core") include (srcdir .. "/AST/AST.lua") include (srcdir .. "/Generator/Generator.lua") include (srcdir .. "/Generator.Tests/Generator.Tests.lua") diff --git a/src/Generator/Diagnostics.cs b/src/Core/Diagnostics.cs similarity index 95% rename from src/Generator/Diagnostics.cs rename to src/Core/Diagnostics.cs index da5b2e29..694f0963 100644 --- a/src/Generator/Diagnostics.cs +++ b/src/Core/Diagnostics.cs @@ -15,6 +15,9 @@ namespace CppSharp PropertySynthetized } + /// + /// Represents the kind of the diagnostic. + /// public enum DiagnosticKind { Debug, @@ -23,6 +26,9 @@ namespace CppSharp Error } + /// + /// Keeps information related to a single diagnostic. + /// public struct DiagnosticInfo { public DiagnosticKind Kind; diff --git a/src/Generator/Generators/Generator.cs b/src/Generator/Generators/Generator.cs deleted file mode 100644 index cc75e0e3..00000000 --- a/src/Generator/Generators/Generator.cs +++ /dev/null @@ -1,107 +0,0 @@ -using System; -using System.Collections.Generic; -using CppSharp.AST; - -namespace CppSharp.Generators -{ - /// - /// Kinds of language generators. - /// - public enum LanguageGeneratorKind - { - CLI, - CSharp, - } - - /// - /// Output generated by each backend generator. - /// - public struct GeneratorOutput - { - /// - /// Translation unit associated with output. - /// - public TranslationUnit TranslationUnit; - - /// - /// Text templates with generated output. - /// - public List