@@ -116,7 +116,6 @@ pub fn pushDiagnostic(self: *Parser, tag: IR.Diagnostic.Tag, region: IR.Region)
116
116
}
117
117
/// add a malformed token
118
118
pub fn pushMalformed (self : * Parser , comptime t : type , tag : IR.Diagnostic.Tag ) t {
119
- std .debug .panic ("!!!! pushMalformed t={any} tag={s}\n " , .{ t , @tagName (tag ) });
120
119
const pos = self .pos ;
121
120
self .advanceOne (); // TODO: find a better point to advance to
122
121
self .diagnostics .append (self .gpa , .{
@@ -226,13 +225,11 @@ fn parseModuleHeader(self: *Parser) IR.NodeStore.HeaderIdx {
226
225
};
227
226
const scratch_top = self .store .scratchExposedItemTop ();
228
227
self .parseCollectionSpan (IR .NodeStore .ExposedItemIdx , .CloseSquare , IR .NodeStore .addScratchExposedItem , Parser .parseExposedItem ) catch {
229
- std .debug .print ("Ended at {s}\n " , .{@tagName (self .peek ())});
230
228
while (self .peek () != .CloseSquare and self .peek () != .EndOfFile ) {
231
229
self .advance ();
232
230
}
233
231
self .expect (.CloseSquare ) catch {};
234
232
self .store .clearScratchExposedItemsFrom (scratch_top );
235
- std .debug .print ("Expected CloseSquare, got {s}\n " , .{@tagName (self .peek ())});
236
233
return self .pushMalformed (IR .NodeStore .HeaderIdx , .import_exposing_no_close );
237
234
};
238
235
const exposes = self .store .exposedItemSpanFrom (scratch_top );
@@ -259,13 +256,11 @@ pub fn parseAppHeader(self: *Parser) IR.NodeStore.HeaderIdx {
259
256
};
260
257
const scratch_top = self .store .scratchExposedItemTop ();
261
258
self .parseCollectionSpan (IR .NodeStore .ExposedItemIdx , .CloseSquare , IR .NodeStore .addScratchExposedItem , Parser .parseExposedItem ) catch {
262
- std .debug .print ("Ended at {s}\n " , .{@tagName (self .peek ())});
263
259
while (self .peek () != .CloseSquare and self .peek () != .EndOfFile ) {
264
260
self .advance ();
265
261
}
266
262
self .expect (.CloseSquare ) catch {};
267
263
self .store .clearScratchExposedItemsFrom (scratch_top );
268
- std .debug .print ("Expected CloseSquare, got {s}\n " , .{@tagName (self .peek ())});
269
264
return self .pushMalformed (IR .NodeStore .HeaderIdx , .import_exposing_no_close );
270
265
};
271
266
const provides = self .store .exposedItemSpanFrom (scratch_top );
0 commit comments