little swap

This commit is contained in:
max-mrgrsk
2025-05-09 21:58:53 +02:00
parent 8ccc5653ab
commit 17d0f8cf30

View File

@ -5,8 +5,8 @@ import { locateExtrudeDeclarator } from '@src/lang/modifyAst/addEdgeTreatment'
import { err } from '@src/lib/trap'
export function deleteNodeInExtrudePipe(
node: PathToNode,
ast: Node<Program>
ast: Node<Program>,
node: PathToNode
): Error | void {
const pipeIndex = node.findIndex(([_, type]) => type === 'PipeExpression') + 1
if (!(node[pipeIndex][0] && typeof node[pipeIndex][0] === 'number')) {