@@ -79,42 +79,42 @@ public fn void Diags.error(Diags* diags, SrcLoc loc, const char* format @(printf
7979 va_list args;
8080 va_start(args, format);
8181 SrcRange range = { 0, 0 }
82- diags.internal(Category. Error, loc, range, format, args);
82+ diags.internal(Error, loc, range, format, args);
8383 va_end(args);
8484}
8585
8686public fn void Diags.error2(Diags* diags, SrcLoc loc, const char* format, va_list args) {
8787 SrcRange range = { 0, 0 }
88- diags.internal(Category. Error, loc, range, format, args);
88+ diags.internal(Error, loc, range, format, args);
8989}
9090
9191public fn void Diags.note(Diags* diags, SrcLoc loc, const char* format @(printf_format), ...) {
9292 va_list args;
9393 va_start(args, format);
9494 SrcRange range = { 0, 0 }
95- diags.internal(Category. Note, loc, range, format, args);
95+ diags.internal(Note, loc, range, format, args);
9696 va_end(args);
9797}
9898
9999public fn void Diags.note2(Diags* diags, SrcLoc loc, const char* format, va_list args) {
100100 SrcRange range = { 0, 0 }
101- diags.internal(Category. Note, loc, range, format, args);
101+ diags.internal(Note, loc, range, format, args);
102102}
103103
104104public fn void Diags.warn(Diags* diags, SrcLoc loc, const char* format @(printf_format), ...) {
105105 va_list args;
106106 va_start(args, format);
107107 SrcRange range = { 0, 0 }
108- Category category = Category. Warning;
109- if (diags.promote_warnings) category = Category. Error;
108+ Category category = Warning;
109+ if (diags.promote_warnings) category = Error;
110110 diags.internal(category, loc, range, format, args);
111111 va_end(args);
112112}
113113
114114public fn void Diags.warn2(Diags* diags, SrcLoc loc, const char* format, va_list args) {
115115 SrcRange range = { 0, 0 }
116- Category category = Category. Warning;
117- if (diags.promote_warnings) category = Category. Error;
116+ Category category = Warning;
117+ if (diags.promote_warnings) category = Error;
118118 diags.internal(category, loc, range, format, args);
119119}
120120
@@ -124,7 +124,7 @@ public fn void Diags.errorRange(Diags* diags,
124124 const char* format @(printf_format), ...) {
125125 va_list args;
126126 va_start(args, format);
127- diags.internal(Category. Error, loc, range, format, args);
127+ diags.internal(Error, loc, range, format, args);
128128 va_end(args);
129129}
130130
@@ -133,7 +133,7 @@ public fn void Diags.errorRange2(Diags* diags,
133133 SrcRange range,
134134 const char* format,
135135 va_list args) {
136- diags.internal(Category. Error, loc, range, format, args);
136+ diags.internal(Error, loc, range, format, args);
137137}
138138
139139fn void Diags.internal(Diags* diags,
@@ -142,7 +142,7 @@ fn void Diags.internal(Diags* diags,
142142 SrcRange range,
143143 const char* format,
144144 va_list args) {
145- if (category == Category. Error) {
145+ if (category == Error) {
146146 diags.num_errors++;
147147 } else {
148148 diags.num_warnings++;
0 commit comments