* 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>
		
			
				
	
	
		
			268 lines
		
	
	
		
			5.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			268 lines
		
	
	
		
			5.5 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ---
 | |
| source: kcl-lib/src/simulation_tests.rs
 | |
| description: Operations executed pattern_linear_in_module.kcl
 | |
| ---
 | |
| {
 | |
|   "rust/kcl-lib/tests/pattern_linear_in_module/input.kcl": [
 | |
|     {
 | |
|       "type": "GroupBegin",
 | |
|       "group": {
 | |
|         "type": "ModuleInstance",
 | |
|         "name": "thing.kcl",
 | |
|         "moduleId": 0
 | |
|       },
 | |
|       "nodePath": {
 | |
|         "steps": [
 | |
|           {
 | |
|             "type": "ProgramBodyItem",
 | |
|             "index": 0
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     {
 | |
|       "type": "GroupEnd"
 | |
|     },
 | |
|     {
 | |
|       "type": "GroupBegin",
 | |
|       "group": {
 | |
|         "type": "FunctionCall",
 | |
|         "name": "thing",
 | |
|         "functionSourceRange": [],
 | |
|         "unlabeledArg": null,
 | |
|         "labeledArgs": {}
 | |
|       },
 | |
|       "nodePath": {
 | |
|         "steps": [
 | |
|           {
 | |
|             "type": "ProgramBodyItem",
 | |
|             "index": 1
 | |
|           },
 | |
|           {
 | |
|             "type": "ExpressionStatementExpr"
 | |
|           }
 | |
|         ]
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     {
 | |
|       "type": "StdLibCall",
 | |
|       "name": "startSketchOn",
 | |
|       "unlabeledArg": {
 | |
|         "value": {
 | |
|           "type": "Plane",
 | |
|           "artifact_id": "[uuid]"
 | |
|         },
 | |
|         "sourceRange": []
 | |
|       },
 | |
|       "labeledArgs": {},
 | |
|       "nodePath": {
 | |
|         "steps": []
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     {
 | |
|       "type": "StdLibCall",
 | |
|       "name": "extrude",
 | |
|       "unlabeledArg": {
 | |
|         "value": {
 | |
|           "type": "Array",
 | |
|           "value": [
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             }
 | |
|           ]
 | |
|         },
 | |
|         "sourceRange": []
 | |
|       },
 | |
|       "labeledArgs": {
 | |
|         "length": {
 | |
|           "value": {
 | |
|             "type": "Number",
 | |
|             "value": 1.0,
 | |
|             "ty": {
 | |
|               "type": "Default",
 | |
|               "len": {
 | |
|                 "type": "Mm"
 | |
|               },
 | |
|               "angle": {
 | |
|                 "type": "Degrees"
 | |
|               }
 | |
|             }
 | |
|           },
 | |
|           "sourceRange": []
 | |
|         }
 | |
|       },
 | |
|       "nodePath": {
 | |
|         "steps": []
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     {
 | |
|       "type": "GroupEnd"
 | |
|     }
 | |
|   ],
 | |
|   "rust/kcl-lib/tests/pattern_linear_in_module/thing.kcl": [
 | |
|     {
 | |
|       "type": "GroupBegin",
 | |
|       "group": {
 | |
|         "type": "FunctionCall",
 | |
|         "name": "thing",
 | |
|         "functionSourceRange": [],
 | |
|         "unlabeledArg": null,
 | |
|         "labeledArgs": {}
 | |
|       },
 | |
|       "nodePath": {
 | |
|         "steps": []
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     {
 | |
|       "type": "StdLibCall",
 | |
|       "name": "startSketchOn",
 | |
|       "unlabeledArg": {
 | |
|         "value": {
 | |
|           "type": "Plane",
 | |
|           "artifact_id": "[uuid]"
 | |
|         },
 | |
|         "sourceRange": []
 | |
|       },
 | |
|       "labeledArgs": {},
 | |
|       "nodePath": {
 | |
|         "steps": []
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     {
 | |
|       "type": "StdLibCall",
 | |
|       "name": "extrude",
 | |
|       "unlabeledArg": {
 | |
|         "value": {
 | |
|           "type": "Array",
 | |
|           "value": [
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "type": "Sketch",
 | |
|               "value": {
 | |
|                 "artifactId": "[uuid]"
 | |
|               }
 | |
|             }
 | |
|           ]
 | |
|         },
 | |
|         "sourceRange": []
 | |
|       },
 | |
|       "labeledArgs": {
 | |
|         "length": {
 | |
|           "value": {
 | |
|             "type": "Number",
 | |
|             "value": 1.0,
 | |
|             "ty": {
 | |
|               "type": "Default",
 | |
|               "len": {
 | |
|                 "type": "Mm"
 | |
|               },
 | |
|               "angle": {
 | |
|                 "type": "Degrees"
 | |
|               }
 | |
|             }
 | |
|           },
 | |
|           "sourceRange": []
 | |
|         }
 | |
|       },
 | |
|       "nodePath": {
 | |
|         "steps": []
 | |
|       },
 | |
|       "sourceRange": []
 | |
|     },
 | |
|     {
 | |
|       "type": "GroupEnd"
 | |
|     }
 | |
|   ],
 | |
|   "std::appearance": [],
 | |
|   "std::array": [],
 | |
|   "std::math": [],
 | |
|   "std::prelude": [],
 | |
|   "std::sketch": [],
 | |
|   "std::solid": [],
 | |
|   "std::sweep": [],
 | |
|   "std::transform": [],
 | |
|   "std::turns": [],
 | |
|   "std::types": [],
 | |
|   "std::units": []
 | |
| }
 |