Remove CallExpression support (#6639)

Users MUST use keyword call syntax now.

Closes https://github.com/KittyCAD/modeling-app/issues/4600
This commit is contained in:
Adam Chalmers
2025-05-02 16:08:12 -05:00
committed by GitHub
parent 75916d4300
commit 4fe8741ea7
309 changed files with 51419 additions and 66399 deletions

View File

@ -871,14 +871,18 @@ a1 = startSketchOn(offsetPlane(XY, offset = 10))
await page.keyboard.press('Enter')
await page.keyboard.type(`extrusion = startSketchOn(XY)
|> circle(center = [0, 0], radius = dia/2)
|> subtract2d(tool = squareHole(length, width, height))
|> subtract2d(tool = squareHole(l = length, w = width, height))
|> extrude(length = height)`)
// error in gutter
await expect(page.locator('.cm-lint-marker-error').first()).toBeVisible()
await page.hover('.cm-lint-marker-error:first-child')
await expect(
page.getByText('Expected 2 arguments, got 3').first()
page
.getByText(
'TODO ADAM: find the right error Expected 2 arguments, got 3'
)
.first()
).toBeVisible()
// Make sure there are two diagnostics