@@ -47,7 +47,7 @@ export function map_block_children(
4747 }
4848 // @ts -expect-error: TODO
4949 new_block = match ( new_block )
50- // .with(P.string, s => s )
50+ . with ( P . union ( P . nullish , P . boolean , P . number , P . string ) , ( v ) => v )
5151 . with ( { kind : "empty" } , ( block ) => block )
5252 . with ( { kind : "function" } , ( block ) => {
5353 const return_ = f_block ( block . return )
@@ -202,6 +202,7 @@ export function map_block_children(
202202 } )
203203 . with ( { kind : "include" } , ( block ) => block )
204204 . with ( { kind : "import" } , ( block ) => block )
205+ . with ( { kind : "aggregator" } , ( block ) => block )
205206 . with ( { kind : undefined } , ( block ) => block )
206207 . exhaustive ( )
207208 match ( new_block )
@@ -293,6 +294,7 @@ export function iter_block_children(
293294 . with ( { kind : "read" } , ( ) => { } )
294295 . with ( { kind : "include" } , ( ) => { } )
295296 . with ( { kind : "import" } , ( ) => { } )
297+ . with ( { kind : "aggregator" } , ( ) => { } )
296298 . with ( { kind : undefined } , ( ) => { } )
297299 . exhaustive ( )
298300 match ( block )
0 commit comments