blob: c52dcc895322ac734fbc9cb8890515e004ea0782 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
namespace ILLink.Shared
{
public enum DiagnosticId
{
// Linker diagnostic ids.
RequiresUnreferencedCode = 2026,
RequiresUnreferencedCodeAttributeMismatch = 2046,
MakeGenericType = 2055,
MakeGenericMethod = 2060,
RequiresUnreferencedCodeOnStaticConstructor = 2116,
// Single-file diagnostic ids.
AvoidAssemblyLocationInSingleFile = 3000,
AvoidAssemblyGetFilesInSingleFile = 3001,
RequiresAssemblyFiles = 3002,
RequiresAssembyFilesAttributeMismatch = 3003
}
public static class DiagnosticIdExtensions
{
public static string AsString (this DiagnosticId diagnosticId) => $"IL{(int) diagnosticId}";
}
}
|