fix: simple knot tests
This commit is contained in:
parent
9ca2200448
commit
cd94a43cc9
7 changed files with 75 additions and 41 deletions
|
|
@ -247,7 +247,7 @@ fn popScratch(p: *Parse, context: *const StmtContext) *Ast.Node {
|
|||
|
||||
fn nodeListFromScratch(p: *Parse, start_offset: usize, end_offset: usize) Error![]*Ast.Node {
|
||||
const span = end_offset - start_offset;
|
||||
assert(span > 0);
|
||||
assert(span >= 0);
|
||||
|
||||
const list = try p.arena.alloc(*Ast.Node, span);
|
||||
defer p.scratch.shrinkRetainingCapacity(start_offset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue