|
17 | 17 |
|
18 | 18 | type |
19 | 19 | TMsgKind* = enum |
| 20 | + # errors |
20 | 21 | errUnknown, errInternal, errIllFormedAstX, errCannotOpenFile, |
21 | 22 | errXExpected, |
22 | 23 | errGridTableNotImplemented, |
|
25 | 26 | errInvalidDirectiveX, |
26 | 27 | errGenerated, |
27 | 28 | errUser, |
| 29 | + # warnings |
28 | 30 | warnCannotOpenFile, |
29 | 31 | warnOctalEscape, warnXIsNeverRead, warnXmightNotBeenInit, |
30 | 32 | warnDeprecated, warnConfigDeprecated, |
|
37 | 39 | warnEachIdentIsTuple, |
38 | 40 | warnProveInit, warnProveField, warnProveIndex, warnGcUnsafe, warnGcUnsafe2, |
39 | 41 | warnUninit, warnGcMem, warnDestructor, warnLockLevel, warnResultShadowed, |
40 | | - warnInconsistentSpacing, warnCaseTransition, warnCycleCreated, warnUser, |
| 42 | + warnInconsistentSpacing, warnCaseTransition, warnCycleCreated, |
| 43 | + warnBackendWarning, warnUser, |
| 44 | + # hints |
41 | 45 | hintSuccess, hintSuccessX, hintCC, |
42 | 46 | hintLineTooLong, hintXDeclaredButNotUsed, |
43 | 47 | hintConvToBaseNotNeeded, |
|
95 | 99 | warnInconsistentSpacing: "Number of spaces around '$#' is not consistent", |
96 | 100 | warnCaseTransition: "Potential object case transition, instantiate new object instead", |
97 | 101 | warnCycleCreated: "$1", |
| 102 | + warnBackendWarning: "$1", |
98 | 103 | warnUser: "$1", |
99 | 104 | hintSuccess: "operation successful: $#", |
100 | 105 | # keep in sync with `pegSuccess` see testament.nim |
@@ -141,7 +146,7 @@ const |
141 | 146 | "UnsafeCode", "UnusedImport", "EachIdentIsTuple", |
142 | 147 | "ProveInit", "ProveField", "ProveIndex", "GcUnsafe", "GcUnsafe2", "Uninit", |
143 | 148 | "GcMem", "Destructor", "LockLevel", "ResultShadowed", |
144 | | - "Spacing", "CaseTransition", "CycleCreated", "User"] |
| 149 | + "Spacing", "CaseTransition", "CycleCreated", "BackendWarning", "User"] |
145 | 150 |
|
146 | 151 | HintsToStr* = [ |
147 | 152 | "Success", "SuccessX", "CC", "LineTooLong", |
|
0 commit comments