From 1426f21ff8b37280c036996204e011836c1086a5 Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Wed, 1 Feb 2017 16:09:57 +0000 Subject: [PATCH] Rename TextDiagnosticPrinter to ConsoleDiagnostics. --- src/Core/Diagnostics.cs | 4 ++-- src/Generator.Tests/AST/TestAST.cs | 4 ++-- src/Generator.Tests/ASTTestFixture.cs | 4 ++-- src/Generator.Tests/ReadNativeDependenciesTest.cs | 4 ++-- src/Generator/Driver.cs | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Core/Diagnostics.cs b/src/Core/Diagnostics.cs index fb1e0ce9..0503e9ca 100644 --- a/src/Core/Diagnostics.cs +++ b/src/Core/Diagnostics.cs @@ -99,12 +99,12 @@ namespace CppSharp } } - public class TextDiagnosticPrinter : IDiagnostics + public class ConsoleDiagnostics : IDiagnostics { public Stack Indents; public DiagnosticKind Level { get; set; } - public TextDiagnosticPrinter() + public ConsoleDiagnostics() { Indents = new Stack(); Level = DiagnosticKind.Message; diff --git a/src/Generator.Tests/AST/TestAST.cs b/src/Generator.Tests/AST/TestAST.cs index b9729c19..e10a956c 100644 --- a/src/Generator.Tests/AST/TestAST.cs +++ b/src/Generator.Tests/AST/TestAST.cs @@ -1,4 +1,4 @@ -using System.Linq; +using System.Linq; using CppSharp.Passes; using CppSharp.AST; using CppSharp.AST.Extensions; @@ -315,7 +315,7 @@ namespace CppSharp.Generator.Tests.AST [Test] public void TestAmbiguity() { - var bindingContext = new BindingContext(new TextDiagnosticPrinter(), new DriverOptions(), + var bindingContext = new BindingContext(new ConsoleDiagnostics(), new DriverOptions(), new ParserOptions()); new CleanUnitPass { Context = bindingContext }.VisitASTContext(AstContext); new CheckAmbiguousFunctions { Context = bindingContext }.VisitASTContext(AstContext); diff --git a/src/Generator.Tests/ASTTestFixture.cs b/src/Generator.Tests/ASTTestFixture.cs index bc1ab2c2..ececa4ac 100644 --- a/src/Generator.Tests/ASTTestFixture.cs +++ b/src/Generator.Tests/ASTTestFixture.cs @@ -1,4 +1,4 @@ -using System; +using System; using CppSharp.AST; using CppSharp.Utils; using CppSharp.Parser; @@ -22,7 +22,7 @@ namespace CppSharp.Generator.Tests Options.Headers.AddRange(files); - Driver = new Driver(Options, new TextDiagnosticPrinter()) + Driver = new Driver(Options, new ConsoleDiagnostics()) { ParserOptions = this.ParserOptions }; diff --git a/src/Generator.Tests/ReadNativeDependenciesTest.cs b/src/Generator.Tests/ReadNativeDependenciesTest.cs index 5efec84a..08c2ba70 100644 --- a/src/Generator.Tests/ReadNativeDependenciesTest.cs +++ b/src/Generator.Tests/ReadNativeDependenciesTest.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; using CppSharp.Utils; using NUnit.Framework; using CppSharp.Parser; @@ -42,7 +42,7 @@ namespace CppSharp.Generator.Tests parserOptions.AddLibraryDirs(GeneratorTest.GetTestsDirectory("Native")); var driverOptions = new DriverOptions(); driverOptions.Libraries.Add(library); - var driver = new Driver(driverOptions, new TextDiagnosticPrinter()) + var driver = new Driver(driverOptions, new ConsoleDiagnostics()) { ParserOptions = parserOptions }; diff --git a/src/Generator/Driver.cs b/src/Generator/Driver.cs index 90e3be16..f879a08f 100644 --- a/src/Generator/Driver.cs +++ b/src/Generator/Driver.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.CodeDom.Compiler; using System.Collections.Generic; using System.Globalization; @@ -474,7 +474,7 @@ namespace CppSharp { var options = new DriverOptions(); - var Log = new TextDiagnosticPrinter(); + var Log = new ConsoleDiagnostics(); var driver = new Driver(options, Log); library.Setup(driver);