Users MUST use keyword call syntax now. Closes https://github.com/KittyCAD/modeling-app/issues/4600
		
			
				
	
	
		
			203 lines
		
	
	
		
			5.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			203 lines
		
	
	
		
			5.1 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
---
 | 
						|
source: kcl-lib/src/simulation_tests.rs
 | 
						|
description: Result of parsing import_cycle1.kcl
 | 
						|
---
 | 
						|
{
 | 
						|
  "Ok": {
 | 
						|
    "body": [
 | 
						|
      {
 | 
						|
        "commentStart": 0,
 | 
						|
        "end": 0,
 | 
						|
        "path": {
 | 
						|
          "type": "Kcl",
 | 
						|
          "filename": "import_cycle2.kcl"
 | 
						|
        },
 | 
						|
        "selector": {
 | 
						|
          "type": "List",
 | 
						|
          "items": [
 | 
						|
            {
 | 
						|
              "alias": null,
 | 
						|
              "commentStart": 0,
 | 
						|
              "end": 0,
 | 
						|
              "name": {
 | 
						|
                "commentStart": 0,
 | 
						|
                "end": 0,
 | 
						|
                "name": "two",
 | 
						|
                "start": 0,
 | 
						|
                "type": "Identifier"
 | 
						|
              },
 | 
						|
              "start": 0,
 | 
						|
              "type": "ImportItem"
 | 
						|
            }
 | 
						|
          ]
 | 
						|
        },
 | 
						|
        "start": 0,
 | 
						|
        "type": "ImportStatement",
 | 
						|
        "type": "ImportStatement"
 | 
						|
      },
 | 
						|
      {
 | 
						|
        "commentStart": 0,
 | 
						|
        "declaration": {
 | 
						|
          "commentStart": 0,
 | 
						|
          "end": 0,
 | 
						|
          "id": {
 | 
						|
            "commentStart": 0,
 | 
						|
            "end": 0,
 | 
						|
            "name": "one",
 | 
						|
            "start": 0,
 | 
						|
            "type": "Identifier"
 | 
						|
          },
 | 
						|
          "init": {
 | 
						|
            "body": {
 | 
						|
              "body": [
 | 
						|
                {
 | 
						|
                  "argument": {
 | 
						|
                    "commentStart": 0,
 | 
						|
                    "end": 0,
 | 
						|
                    "left": {
 | 
						|
                      "callee": {
 | 
						|
                        "abs_path": false,
 | 
						|
                        "commentStart": 0,
 | 
						|
                        "end": 0,
 | 
						|
                        "name": {
 | 
						|
                          "commentStart": 0,
 | 
						|
                          "end": 0,
 | 
						|
                          "name": "two",
 | 
						|
                          "start": 0,
 | 
						|
                          "type": "Identifier"
 | 
						|
                        },
 | 
						|
                        "path": [],
 | 
						|
                        "start": 0,
 | 
						|
                        "type": "Name"
 | 
						|
                      },
 | 
						|
                      "commentStart": 0,
 | 
						|
                      "end": 0,
 | 
						|
                      "start": 0,
 | 
						|
                      "type": "CallExpressionKw",
 | 
						|
                      "type": "CallExpressionKw",
 | 
						|
                      "unlabeled": null
 | 
						|
                    },
 | 
						|
                    "operator": "-",
 | 
						|
                    "right": {
 | 
						|
                      "commentStart": 0,
 | 
						|
                      "end": 0,
 | 
						|
                      "raw": "1",
 | 
						|
                      "start": 0,
 | 
						|
                      "type": "Literal",
 | 
						|
                      "type": "Literal",
 | 
						|
                      "value": {
 | 
						|
                        "value": 1.0,
 | 
						|
                        "suffix": "None"
 | 
						|
                      }
 | 
						|
                    },
 | 
						|
                    "start": 0,
 | 
						|
                    "type": "BinaryExpression",
 | 
						|
                    "type": "BinaryExpression"
 | 
						|
                  },
 | 
						|
                  "commentStart": 0,
 | 
						|
                  "end": 0,
 | 
						|
                  "start": 0,
 | 
						|
                  "type": "ReturnStatement",
 | 
						|
                  "type": "ReturnStatement"
 | 
						|
                }
 | 
						|
              ],
 | 
						|
              "commentStart": 0,
 | 
						|
              "end": 0,
 | 
						|
              "start": 0
 | 
						|
            },
 | 
						|
            "commentStart": 0,
 | 
						|
            "end": 0,
 | 
						|
            "params": [],
 | 
						|
            "start": 0,
 | 
						|
            "type": "FunctionExpression",
 | 
						|
            "type": "FunctionExpression"
 | 
						|
          },
 | 
						|
          "start": 0,
 | 
						|
          "type": "VariableDeclarator"
 | 
						|
        },
 | 
						|
        "end": 0,
 | 
						|
        "kind": "fn",
 | 
						|
        "start": 0,
 | 
						|
        "type": "VariableDeclaration",
 | 
						|
        "type": "VariableDeclaration",
 | 
						|
        "visibility": "export"
 | 
						|
      }
 | 
						|
    ],
 | 
						|
    "commentStart": 0,
 | 
						|
    "end": 0,
 | 
						|
    "innerAttrs": [
 | 
						|
      {
 | 
						|
        "commentStart": 0,
 | 
						|
        "end": 0,
 | 
						|
        "name": {
 | 
						|
          "commentStart": 0,
 | 
						|
          "end": 0,
 | 
						|
          "name": "settings",
 | 
						|
          "start": 0,
 | 
						|
          "type": "Identifier"
 | 
						|
        },
 | 
						|
        "properties": [
 | 
						|
          {
 | 
						|
            "commentStart": 0,
 | 
						|
            "end": 0,
 | 
						|
            "key": {
 | 
						|
              "commentStart": 0,
 | 
						|
              "end": 0,
 | 
						|
              "name": "defaultLengthUnit",
 | 
						|
              "start": 0,
 | 
						|
              "type": "Identifier"
 | 
						|
            },
 | 
						|
            "start": 0,
 | 
						|
            "type": "ObjectProperty",
 | 
						|
            "value": {
 | 
						|
              "abs_path": false,
 | 
						|
              "commentStart": 0,
 | 
						|
              "end": 0,
 | 
						|
              "name": {
 | 
						|
                "commentStart": 0,
 | 
						|
                "end": 0,
 | 
						|
                "name": "in",
 | 
						|
                "start": 0,
 | 
						|
                "type": "Identifier"
 | 
						|
              },
 | 
						|
              "path": [],
 | 
						|
              "start": 0,
 | 
						|
              "type": "Name",
 | 
						|
              "type": "Name"
 | 
						|
            }
 | 
						|
          }
 | 
						|
        ],
 | 
						|
        "start": 0,
 | 
						|
        "type": "Annotation"
 | 
						|
      }
 | 
						|
    ],
 | 
						|
    "nonCodeMeta": {
 | 
						|
      "nonCodeNodes": {
 | 
						|
        "0": [
 | 
						|
          {
 | 
						|
            "commentStart": 0,
 | 
						|
            "end": 0,
 | 
						|
            "start": 0,
 | 
						|
            "type": "NonCodeNode",
 | 
						|
            "value": {
 | 
						|
              "type": "newLine"
 | 
						|
            }
 | 
						|
          }
 | 
						|
        ]
 | 
						|
      },
 | 
						|
      "startNodes": [
 | 
						|
        {
 | 
						|
          "commentStart": 0,
 | 
						|
          "end": 0,
 | 
						|
          "start": 0,
 | 
						|
          "type": "NonCodeNode",
 | 
						|
          "value": {
 | 
						|
            "type": "newLine"
 | 
						|
          }
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "start": 0
 | 
						|
  }
 | 
						|
}
 |