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:
		@ -137,32 +137,6 @@ description: Result of parsing hex-nut.kcl
 | 
			
		||||
                    "init": {
 | 
			
		||||
                      "body": [
 | 
			
		||||
                        {
 | 
			
		||||
                          "arguments": [
 | 
			
		||||
                            {
 | 
			
		||||
                              "argument": {
 | 
			
		||||
                                "abs_path": false,
 | 
			
		||||
                                "commentStart": 0,
 | 
			
		||||
                                "end": 0,
 | 
			
		||||
                                "name": {
 | 
			
		||||
                                  "commentStart": 0,
 | 
			
		||||
                                  "end": 0,
 | 
			
		||||
                                  "name": "XZ",
 | 
			
		||||
                                  "start": 0,
 | 
			
		||||
                                  "type": "Identifier"
 | 
			
		||||
                                },
 | 
			
		||||
                                "path": [],
 | 
			
		||||
                                "start": 0,
 | 
			
		||||
                                "type": "Name",
 | 
			
		||||
                                "type": "Name"
 | 
			
		||||
                              },
 | 
			
		||||
                              "commentStart": 0,
 | 
			
		||||
                              "end": 0,
 | 
			
		||||
                              "operator": "-",
 | 
			
		||||
                              "start": 0,
 | 
			
		||||
                              "type": "UnaryExpression",
 | 
			
		||||
                              "type": "UnaryExpression"
 | 
			
		||||
                            }
 | 
			
		||||
                          ],
 | 
			
		||||
                          "callee": {
 | 
			
		||||
                            "abs_path": false,
 | 
			
		||||
                            "commentStart": 0,
 | 
			
		||||
@ -181,8 +155,32 @@ description: Result of parsing hex-nut.kcl
 | 
			
		||||
                          "commentStart": 0,
 | 
			
		||||
                          "end": 0,
 | 
			
		||||
                          "start": 0,
 | 
			
		||||
                          "type": "CallExpression",
 | 
			
		||||
                          "type": "CallExpression"
 | 
			
		||||
                          "type": "CallExpressionKw",
 | 
			
		||||
                          "type": "CallExpressionKw",
 | 
			
		||||
                          "unlabeled": {
 | 
			
		||||
                            "argument": {
 | 
			
		||||
                              "abs_path": false,
 | 
			
		||||
                              "commentStart": 0,
 | 
			
		||||
                              "end": 0,
 | 
			
		||||
                              "name": {
 | 
			
		||||
                                "commentStart": 0,
 | 
			
		||||
                                "end": 0,
 | 
			
		||||
                                "name": "XZ",
 | 
			
		||||
                                "start": 0,
 | 
			
		||||
                                "type": "Identifier"
 | 
			
		||||
                              },
 | 
			
		||||
                              "path": [],
 | 
			
		||||
                              "start": 0,
 | 
			
		||||
                              "type": "Name",
 | 
			
		||||
                              "type": "Name"
 | 
			
		||||
                            },
 | 
			
		||||
                            "commentStart": 0,
 | 
			
		||||
                            "end": 0,
 | 
			
		||||
                            "operator": "-",
 | 
			
		||||
                            "start": 0,
 | 
			
		||||
                            "type": "UnaryExpression",
 | 
			
		||||
                            "type": "UnaryExpression"
 | 
			
		||||
                          }
 | 
			
		||||
                        },
 | 
			
		||||
                        {
 | 
			
		||||
                          "arguments": [
 | 
			
		||||
@ -694,7 +692,6 @@ description: Result of parsing hex-nut.kcl
 | 
			
		||||
                          "unlabeled": null
 | 
			
		||||
                        },
 | 
			
		||||
                        {
 | 
			
		||||
                          "arguments": [],
 | 
			
		||||
                          "callee": {
 | 
			
		||||
                            "abs_path": false,
 | 
			
		||||
                            "commentStart": 0,
 | 
			
		||||
@ -713,8 +710,9 @@ description: Result of parsing hex-nut.kcl
 | 
			
		||||
                          "commentStart": 0,
 | 
			
		||||
                          "end": 0,
 | 
			
		||||
                          "start": 0,
 | 
			
		||||
                          "type": "CallExpression",
 | 
			
		||||
                          "type": "CallExpression"
 | 
			
		||||
                          "type": "CallExpressionKw",
 | 
			
		||||
                          "type": "CallExpressionKw",
 | 
			
		||||
                          "unlabeled": null
 | 
			
		||||
                        },
 | 
			
		||||
                        {
 | 
			
		||||
                          "arguments": [
 | 
			
		||||
 | 
			
		||||
@ -4,19 +4,17 @@ description: Operations executed hex-nut.kcl
 | 
			
		||||
---
 | 
			
		||||
[
 | 
			
		||||
  {
 | 
			
		||||
    "labeledArgs": {
 | 
			
		||||
      "planeOrSolid": {
 | 
			
		||||
        "value": {
 | 
			
		||||
          "type": "Plane",
 | 
			
		||||
          "artifact_id": "[uuid]"
 | 
			
		||||
        },
 | 
			
		||||
        "sourceRange": []
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "labeledArgs": {},
 | 
			
		||||
    "name": "startSketchOn",
 | 
			
		||||
    "sourceRange": [],
 | 
			
		||||
    "type": "StdLibCall",
 | 
			
		||||
    "unlabeledArg": null
 | 
			
		||||
    "unlabeledArg": {
 | 
			
		||||
      "value": {
 | 
			
		||||
        "type": "Plane",
 | 
			
		||||
        "artifact_id": "[uuid]"
 | 
			
		||||
      },
 | 
			
		||||
      "sourceRange": []
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    "labeledArgs": {
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user