* Add NodePath to operations * Change to use nodePath to get pathToNode instead of sourceRange * Add additional node path unit test * Update output * Fix import statement NodePaths * Update output * Factor into function
		
			
				
	
	
		
			196 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			196 lines
		
	
	
		
			3.7 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
---
 | 
						|
source: kcl-lib/src/simulation_tests.rs
 | 
						|
description: Operations executed involute_circular_units.kcl
 | 
						|
---
 | 
						|
[
 | 
						|
  {
 | 
						|
    "type": "StdLibCall",
 | 
						|
    "name": "startSketchOn",
 | 
						|
    "unlabeledArg": {
 | 
						|
      "value": {
 | 
						|
        "type": "Plane",
 | 
						|
        "artifact_id": "[uuid]"
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    "labeledArgs": {},
 | 
						|
    "nodePath": {
 | 
						|
      "steps": [
 | 
						|
        {
 | 
						|
          "type": "ProgramBodyItem",
 | 
						|
          "index": 10
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "PipeBodyItem",
 | 
						|
          "index": 0
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "sourceRange": []
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "type": "GroupBegin",
 | 
						|
    "group": {
 | 
						|
      "type": "FunctionCall",
 | 
						|
      "name": "polar",
 | 
						|
      "functionSourceRange": [],
 | 
						|
      "unlabeledArg": null,
 | 
						|
      "labeledArgs": {
 | 
						|
        "angle": {
 | 
						|
          "value": {
 | 
						|
            "type": "Number",
 | 
						|
            "value": 0.299,
 | 
						|
            "ty": {
 | 
						|
              "type": "Known",
 | 
						|
              "type": "Angle",
 | 
						|
              "type": "Radians"
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        },
 | 
						|
        "length": {
 | 
						|
          "value": {
 | 
						|
            "type": "Number",
 | 
						|
            "value": 4.933,
 | 
						|
            "ty": {
 | 
						|
              "type": "Default",
 | 
						|
              "len": {
 | 
						|
                "type": "Cm"
 | 
						|
              },
 | 
						|
              "angle": {
 | 
						|
                "type": "Degrees"
 | 
						|
              }
 | 
						|
            }
 | 
						|
          },
 | 
						|
          "sourceRange": []
 | 
						|
        }
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "nodePath": {
 | 
						|
      "steps": [
 | 
						|
        {
 | 
						|
          "type": "ProgramBodyItem",
 | 
						|
          "index": 10
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "PipeBodyItem",
 | 
						|
          "index": 7
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "CallKwArg",
 | 
						|
          "index": 0
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "sourceRange": []
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "type": "StdLibCall",
 | 
						|
    "name": "subtract2d",
 | 
						|
    "unlabeledArg": {
 | 
						|
      "value": {
 | 
						|
        "type": "Sketch",
 | 
						|
        "value": {
 | 
						|
          "artifactId": "[uuid]"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    "labeledArgs": {
 | 
						|
      "tool": {
 | 
						|
        "value": {
 | 
						|
          "type": "Sketch",
 | 
						|
          "value": {
 | 
						|
            "artifactId": "[uuid]"
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "nodePath": {
 | 
						|
      "steps": [
 | 
						|
        {
 | 
						|
          "type": "ProgramBodyItem",
 | 
						|
          "index": 10
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "PipeBodyItem",
 | 
						|
          "index": 10
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "sourceRange": []
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "type": "StdLibCall",
 | 
						|
    "name": "extrude",
 | 
						|
    "unlabeledArg": {
 | 
						|
      "value": {
 | 
						|
        "type": "Sketch",
 | 
						|
        "value": {
 | 
						|
          "artifactId": "[uuid]"
 | 
						|
        }
 | 
						|
      },
 | 
						|
      "sourceRange": []
 | 
						|
    },
 | 
						|
    "labeledArgs": {
 | 
						|
      "length": {
 | 
						|
        "value": {
 | 
						|
          "type": "Number",
 | 
						|
          "value": 0.3,
 | 
						|
          "ty": {
 | 
						|
            "type": "Default",
 | 
						|
            "len": {
 | 
						|
              "type": "Cm"
 | 
						|
            },
 | 
						|
            "angle": {
 | 
						|
              "type": "Degrees"
 | 
						|
            }
 | 
						|
          }
 | 
						|
        },
 | 
						|
        "sourceRange": []
 | 
						|
      }
 | 
						|
    },
 | 
						|
    "nodePath": {
 | 
						|
      "steps": [
 | 
						|
        {
 | 
						|
          "type": "ProgramBodyItem",
 | 
						|
          "index": 10
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationDeclaration"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "VariableDeclarationInit"
 | 
						|
        },
 | 
						|
        {
 | 
						|
          "type": "PipeBodyItem",
 | 
						|
          "index": 11
 | 
						|
        }
 | 
						|
      ]
 | 
						|
    },
 | 
						|
    "sourceRange": []
 | 
						|
  },
 | 
						|
  {
 | 
						|
    "type": "GroupEnd"
 | 
						|
  }
 | 
						|
]
 |