IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
DiagnosticEvent.cs
Go to the documentation of this file.
1using System;
2
4{
5
6 readonly partial struct DiagnosticEvent(Diagnostic Diagnostic, object?[] Args, Exception? Exception = null, DiagnosticLocation Location = default)
7 {
8
12 public readonly Diagnostic Diagnostic = Diagnostic;
13
17 public readonly object?[] Args = Args;
18
22 public readonly Exception? Exception = Exception;
23
27 public readonly DiagnosticLocation Location = Location;
28
33 public override string ToString()
34 {
35#if NET8_0_OR_GREATER
36 return string.Format(null, Diagnostic.Message, Args);
37#else
38 return string.Format(Diagnostic.Message, Args);
39#endif
40 }
41
42 }
43
44}
readonly struct DiagnosticLocation(string Path, int StartLine, int StartColumn, int EndLine, int EndColumn)
Describes the location of a diagnostic event.