-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Diagnostics.cs
99 lines (89 loc) · 3.32 KB
/
Diagnostics.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
using Microsoft.CodeAnalysis;
#pragma warning disable RS2008
namespace AltV.Net.Async.CodeGen
{
public static class Diagnostics
{
public static DiagnosticDescriptor AsyncEntityShouldImplementEntity =
new(
"ALTV0001",
"Invalid async entity",
"Async entity {0} should implement alt:V's entity",
"AsyncEntity",
DiagnosticSeverity.Error,
true
);
public static DiagnosticDescriptor AsyncEntityInterfacePropertyNotFoundInClass =
new(
"ALTV0002",
"Invalid async entity",
"Property {0} from interface {1} was not found in class {2}",
"AsyncEntity",
DiagnosticSeverity.Error,
true
);
public static DiagnosticDescriptor AsyncEntitySetterNotFound =
new(
"ALTV0003",
"Cannot find setter",
"Setter {0} from interface {1} was not found in class {2}",
"AsyncEntity",
DiagnosticSeverity.Error,
true
);
public static DiagnosticDescriptor AsyncEntityGetterNotFound =
new(
"ALTV0004",
"Cannot find getter",
"Getter {0} from interface {1} was not found in class {2}",
"AsyncEntity",
DiagnosticSeverity.Error,
true
);
public static DiagnosticDescriptor AsyncEntityShouldImplementInterface =
new(
"ALTV0005",
"Invalid async entity",
"Async entity {0} should implement specified interface {1}",
"AsyncEntity",
DiagnosticSeverity.Error,
true
);
public static DiagnosticDescriptor AsyncEntityInterfaceMethodNotFoundInClass =
new(
"ALTV0006",
"Invalid async entity",
"Method {0} from interface {1} was not found in class {2}",
"AsyncEntity",
DiagnosticSeverity.Error,
true
);
public static DiagnosticDescriptor AsyncEntityClassShouldBePartial =
new(
"ALTV0007",
"Invalid async entity",
"Async entity class {0} should be declared as partial",
"AsyncEntity",
DiagnosticSeverity.Error,
true
);
public static DiagnosticDescriptor AsyncEntityInterfaceShouldBePartial =
new(
"ALTV0008",
"Invalid async entity interface",
"Async entity interface {0} should be declared as partial",
"AsyncEntity",
DiagnosticSeverity.Error,
true
);
public static DiagnosticDescriptor AsyncEntityCannotBeNested =
new(
"ALTV0009",
"Invalid async entity",
"Async entity class {0} cannot extend another async entity class {1}, async entities cannot be nested",
"AsyncEntity",
DiagnosticSeverity.Error,
true
);
}
}