* Change so that operations are stored per module * Refactor so that all modeling commands go through ExecState * Remove unneeded PartialOrd implementations * Remove artifact_commands from KclError since it was only for debugging --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
		
			
				
	
	
		
			291 lines
		
	
	
		
			6.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			291 lines
		
	
	
		
			6.2 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ---
 | |
| source: kcl-lib/src/simulation_tests.rs
 | |
| description: Operations executed sketch_on_face_start.kcl
 | |
| ---
 | |
| {
 | |
|   "rust/kcl-lib/tests/sketch_on_face_start/input.kcl": [
 | |
|     {
 | |
|       "type": "GroupBegin",
 | |
|       "group": {
 | |
|         "type": "FunctionCall",
 | |
|         "name": "cube",
 | |
|         "functionSourceRange": [],
 | |
|         "unlabeledArg": null,
 | |
|         "labeledArgs": {
 | |
|           "pos": {
 | |
|             "value": {
 | |
|               "type": "Array",
 | |
|               "value": [
 | |
|                 {
 | |
|                   "type": "Number",
 | |
|                   "value": 0.0,
 | |
|                   "ty": {
 | |
|                     "type": "Default",
 | |
|                     "len": {
 | |
|                       "type": "Mm"
 | |
|                     },
 | |
|                     "angle": {
 | |
|                       "type": "Degrees"
 | |
|                     }
 | |
|                   }
 | |
|                 },
 | |
|                 {
 | |
|                   "type": "Number",
 | |
|                   "value": 0.0,
 | |
|                   "ty": {
 | |
|                     "type": "Default",
 | |
|                     "len": {
 | |
|                       "type": "Mm"
 | |
|                     },
 | |
|                     "angle": {
 | |
|                       "type": "Degrees"
 | |
|                     }
 | |
|                   }
 | |
|                 }
 | |
|               ]
 | |
|             },
 | |
|             "sourceRange": []
 | |
|           },
 | |
|           "scale": {
 | |
|             "value": {
 | |
|               "type": "Number",
 | |
|               "value": 20.0,
 | |
|               "ty": {
 | |
|                 "type": "Default",
 | |
|                 "len": {
 | |
|                   "type": "Mm"
 | |
|                 },
 | |
|                 "angle": {
 | |
|                   "type": "Degrees"
 | |
|                 }
 | |
|               }
 | |
|             },
 | |
|             "sourceRange": []
 | |
|           }
 | |
|         }
 | |
|       },
 | |
|       "nodePath": {
 | |
|         "steps": [
 | |
|           {
 | |
|             "type": "ProgramBodyItem",
 | |
|             "index": 1
 | |
|           },
 | |
|           {
 | |
|             "type": "VariableDeclarationDeclaration"
 | |
|           },
 | |
|           {
 | |
|             "type": "VariableDeclarationInit"
 | |
|           },
 | |
|           {
 | |
|             "type": "PipeBodyItem",
 | |
|             "index": 0
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     {
 | |
|       "type": "StdLibCall",
 | |
|       "name": "startSketchOn",
 | |
|       "unlabeledArg": {
 | |
|         "value": {
 | |
|           "type": "Plane",
 | |
|           "artifact_id": "[uuid]"
 | |
|         },
 | |
|         "sourceRange": []
 | |
|       },
 | |
|       "labeledArgs": {},
 | |
|       "nodePath": {
 | |
|         "steps": [
 | |
|           {
 | |
|             "type": "ProgramBodyItem",
 | |
|             "index": 0
 | |
|           },
 | |
|           {
 | |
|             "type": "VariableDeclarationDeclaration"
 | |
|           },
 | |
|           {
 | |
|             "type": "VariableDeclarationInit"
 | |
|           },
 | |
|           {
 | |
|             "type": "FunctionExpressionBody"
 | |
|           },
 | |
|           {
 | |
|             "type": "FunctionExpressionBodyItem",
 | |
|             "index": 0
 | |
|           },
 | |
|           {
 | |
|             "type": "VariableDeclarationDeclaration"
 | |
|           },
 | |
|           {
 | |
|             "type": "VariableDeclarationInit"
 | |
|           },
 | |
|           {
 | |
|             "type": "PipeBodyItem",
 | |
|             "index": 0
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     {
 | |
|       "type": "GroupEnd"
 | |
|     },
 | |
|     {
 | |
|       "type": "StdLibCall",
 | |
|       "name": "extrude",
 | |
|       "unlabeledArg": {
 | |
|         "value": {
 | |
|           "type": "Sketch",
 | |
|           "value": {
 | |
|             "artifactId": "[uuid]"
 | |
|           }
 | |
|         },
 | |
|         "sourceRange": []
 | |
|       },
 | |
|       "labeledArgs": {
 | |
|         "length": {
 | |
|           "value": {
 | |
|             "type": "Number",
 | |
|             "value": 20.0,
 | |
|             "ty": {
 | |
|               "type": "Default",
 | |
|               "len": {
 | |
|                 "type": "Mm"
 | |
|               },
 | |
|               "angle": {
 | |
|                 "type": "Degrees"
 | |
|               }
 | |
|             }
 | |
|           },
 | |
|           "sourceRange": []
 | |
|         }
 | |
|       },
 | |
|       "nodePath": {
 | |
|         "steps": [
 | |
|           {
 | |
|             "type": "ProgramBodyItem",
 | |
|             "index": 1
 | |
|           },
 | |
|           {
 | |
|             "type": "VariableDeclarationDeclaration"
 | |
|           },
 | |
|           {
 | |
|             "type": "VariableDeclarationInit"
 | |
|           },
 | |
|           {
 | |
|             "type": "PipeBodyItem",
 | |
|             "index": 2
 | |
|           },
 | |
|           {
 | |
|             "type": "LabeledExpressionExpr"
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     {
 | |
|       "type": "StdLibCall",
 | |
|       "name": "startSketchOn",
 | |
|       "unlabeledArg": {
 | |
|         "value": {
 | |
|           "type": "Solid",
 | |
|           "value": {
 | |
|             "artifactId": "[uuid]"
 | |
|           }
 | |
|         },
 | |
|         "sourceRange": []
 | |
|       },
 | |
|       "labeledArgs": {
 | |
|         "face": {
 | |
|           "value": {
 | |
|             "type": "String",
 | |
|             "value": "start"
 | |
|           },
 | |
|           "sourceRange": []
 | |
|         }
 | |
|       },
 | |
|       "nodePath": {
 | |
|         "steps": [
 | |
|           {
 | |
|             "type": "ProgramBodyItem",
 | |
|             "index": 2
 | |
|           },
 | |
|           {
 | |
|             "type": "VariableDeclarationDeclaration"
 | |
|           },
 | |
|           {
 | |
|             "type": "VariableDeclarationInit"
 | |
|           },
 | |
|           {
 | |
|             "type": "PipeBodyItem",
 | |
|             "index": 0
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     {
 | |
|       "type": "StdLibCall",
 | |
|       "name": "extrude",
 | |
|       "unlabeledArg": {
 | |
|         "value": {
 | |
|           "type": "Sketch",
 | |
|           "value": {
 | |
|             "artifactId": "[uuid]"
 | |
|           }
 | |
|         },
 | |
|         "sourceRange": []
 | |
|       },
 | |
|       "labeledArgs": {
 | |
|         "length": {
 | |
|           "value": {
 | |
|             "type": "Number",
 | |
|             "value": 5.0,
 | |
|             "ty": {
 | |
|               "type": "Default",
 | |
|               "len": {
 | |
|                 "type": "Mm"
 | |
|               },
 | |
|               "angle": {
 | |
|                 "type": "Degrees"
 | |
|               }
 | |
|             }
 | |
|           },
 | |
|           "sourceRange": []
 | |
|         }
 | |
|       },
 | |
|       "nodePath": {
 | |
|         "steps": [
 | |
|           {
 | |
|             "type": "ProgramBodyItem",
 | |
|             "index": 2
 | |
|           },
 | |
|           {
 | |
|             "type": "VariableDeclarationDeclaration"
 | |
|           },
 | |
|           {
 | |
|             "type": "VariableDeclarationInit"
 | |
|           },
 | |
|           {
 | |
|             "type": "PipeBodyItem",
 | |
|             "index": 6
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     }
 | |
|   ],
 | |
|   "std::appearance": [],
 | |
|   "std::array": [],
 | |
|   "std::math": [],
 | |
|   "std::prelude": [],
 | |
|   "std::sketch": [],
 | |
|   "std::solid": [],
 | |
|   "std::sweep": [],
 | |
|   "std::transform": [],
 | |
|   "std::turns": [],
 | |
|   "std::types": [],
 | |
|   "std::units": []
 | |
| }
 |