Users MUST use keyword call syntax now. Closes https://github.com/KittyCAD/modeling-app/issues/4600
		
			
				
	
	
		
			188 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			188 lines
		
	
	
		
			4.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ---
 | |
| source: kcl-lib/src/simulation_tests.rs
 | |
| description: Result of parsing array_elem_pop_fail.kcl
 | |
| ---
 | |
| {
 | |
|   "Ok": {
 | |
|     "body": [
 | |
|       {
 | |
|         "commentStart": 0,
 | |
|         "declaration": {
 | |
|           "commentStart": 0,
 | |
|           "end": 0,
 | |
|           "id": {
 | |
|             "commentStart": 0,
 | |
|             "end": 0,
 | |
|             "name": "arr",
 | |
|             "start": 0,
 | |
|             "type": "Identifier"
 | |
|           },
 | |
|           "init": {
 | |
|             "commentStart": 0,
 | |
|             "elements": [
 | |
|               {
 | |
|                 "commentStart": 0,
 | |
|                 "end": 0,
 | |
|                 "raw": "1",
 | |
|                 "start": 0,
 | |
|                 "type": "Literal",
 | |
|                 "type": "Literal",
 | |
|                 "value": {
 | |
|                   "value": 1.0,
 | |
|                   "suffix": "None"
 | |
|                 }
 | |
|               },
 | |
|               {
 | |
|                 "commentStart": 0,
 | |
|                 "end": 0,
 | |
|                 "raw": "2",
 | |
|                 "start": 0,
 | |
|                 "type": "Literal",
 | |
|                 "type": "Literal",
 | |
|                 "value": {
 | |
|                   "value": 2.0,
 | |
|                   "suffix": "None"
 | |
|                 }
 | |
|               },
 | |
|               {
 | |
|                 "commentStart": 0,
 | |
|                 "end": 0,
 | |
|                 "raw": "3",
 | |
|                 "start": 0,
 | |
|                 "type": "Literal",
 | |
|                 "type": "Literal",
 | |
|                 "value": {
 | |
|                   "value": 3.0,
 | |
|                   "suffix": "None"
 | |
|                 }
 | |
|               }
 | |
|             ],
 | |
|             "end": 0,
 | |
|             "start": 0,
 | |
|             "type": "ArrayExpression",
 | |
|             "type": "ArrayExpression"
 | |
|           },
 | |
|           "start": 0,
 | |
|           "type": "VariableDeclarator"
 | |
|         },
 | |
|         "end": 0,
 | |
|         "kind": "const",
 | |
|         "start": 0,
 | |
|         "type": "VariableDeclaration",
 | |
|         "type": "VariableDeclaration"
 | |
|       },
 | |
|       {
 | |
|         "commentStart": 0,
 | |
|         "declaration": {
 | |
|           "commentStart": 0,
 | |
|           "end": 0,
 | |
|           "id": {
 | |
|             "commentStart": 0,
 | |
|             "end": 0,
 | |
|             "name": "pushedArr",
 | |
|             "start": 0,
 | |
|             "type": "Identifier"
 | |
|           },
 | |
|           "init": {
 | |
|             "callee": {
 | |
|               "abs_path": false,
 | |
|               "commentStart": 0,
 | |
|               "end": 0,
 | |
|               "name": {
 | |
|                 "commentStart": 0,
 | |
|                 "end": 0,
 | |
|                 "name": "pop",
 | |
|                 "start": 0,
 | |
|                 "type": "Identifier"
 | |
|               },
 | |
|               "path": [],
 | |
|               "start": 0,
 | |
|               "type": "Name"
 | |
|             },
 | |
|             "commentStart": 0,
 | |
|             "end": 0,
 | |
|             "start": 0,
 | |
|             "type": "CallExpressionKw",
 | |
|             "type": "CallExpressionKw",
 | |
|             "unlabeled": {
 | |
|               "abs_path": false,
 | |
|               "commentStart": 0,
 | |
|               "end": 0,
 | |
|               "name": {
 | |
|                 "commentStart": 0,
 | |
|                 "end": 0,
 | |
|                 "name": "arr",
 | |
|                 "start": 0,
 | |
|                 "type": "Identifier"
 | |
|               },
 | |
|               "path": [],
 | |
|               "start": 0,
 | |
|               "type": "Name",
 | |
|               "type": "Name"
 | |
|             }
 | |
|           },
 | |
|           "start": 0,
 | |
|           "type": "VariableDeclarator"
 | |
|         },
 | |
|         "end": 0,
 | |
|         "kind": "const",
 | |
|         "start": 0,
 | |
|         "type": "VariableDeclaration",
 | |
|         "type": "VariableDeclaration"
 | |
|       },
 | |
|       {
 | |
|         "commentStart": 0,
 | |
|         "declaration": {
 | |
|           "commentStart": 0,
 | |
|           "end": 0,
 | |
|           "id": {
 | |
|             "commentStart": 0,
 | |
|             "end": 0,
 | |
|             "name": "fail",
 | |
|             "start": 0,
 | |
|             "type": "Identifier"
 | |
|           },
 | |
|           "init": {
 | |
|             "commentStart": 0,
 | |
|             "computed": false,
 | |
|             "end": 0,
 | |
|             "object": {
 | |
|               "commentStart": 0,
 | |
|               "end": 0,
 | |
|               "name": "pushedArr",
 | |
|               "start": 0,
 | |
|               "type": "Identifier",
 | |
|               "type": "Identifier"
 | |
|             },
 | |
|             "property": {
 | |
|               "commentStart": 0,
 | |
|               "end": 0,
 | |
|               "raw": "2",
 | |
|               "start": 0,
 | |
|               "type": "Literal",
 | |
|               "type": "Literal",
 | |
|               "value": {
 | |
|                 "value": 2.0,
 | |
|                 "suffix": "None"
 | |
|               }
 | |
|             },
 | |
|             "start": 0,
 | |
|             "type": "MemberExpression",
 | |
|             "type": "MemberExpression"
 | |
|           },
 | |
|           "start": 0,
 | |
|           "type": "VariableDeclarator"
 | |
|         },
 | |
|         "end": 0,
 | |
|         "kind": "const",
 | |
|         "start": 0,
 | |
|         "type": "VariableDeclaration",
 | |
|         "type": "VariableDeclaration"
 | |
|       }
 | |
|     ],
 | |
|     "commentStart": 0,
 | |
|     "end": 0,
 | |
|     "start": 0
 | |
|   }
 | |
| }
 |