mirror of https://github.com/mono/CppSharp.git
c-sharpdotnetmonobindingsbridgecclangcpluspluscppsharpglueinteropparserparsingpinvokeswigsyntax-treevisitorsxamarinxamarin-bindings
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
606 B
32 lines
606 B
using System; |
|
|
|
namespace Cxxi |
|
{ |
|
public enum DiagnosticKind |
|
{ |
|
Message, |
|
Warning, |
|
Error |
|
} |
|
|
|
public struct DiagnosticInfo |
|
{ |
|
public string Message; |
|
public string File; |
|
public int Line; |
|
public int Column; |
|
} |
|
|
|
public interface IDiagnosticConsumer |
|
{ |
|
void Emit(DiagnosticKind kind, DiagnosticInfo info); |
|
} |
|
|
|
public class TextDiagnosticPrinter : IDiagnosticConsumer |
|
{ |
|
public void Emit(DiagnosticKind kind, DiagnosticInfo info) |
|
{ |
|
Console.WriteLine(info.Message); |
|
} |
|
} |
|
}
|
|
|