Improve snapshot testing (#5856)
* Improve snapshot testing Signed-off-by: Nick Cameron <nrc@ncameron.org> * A snapshot a day keeps the bugs away! 📷🐛 * A snapshot a day keeps the bugs away! 📷🐛 --------- Signed-off-by: Nick Cameron <nrc@ncameron.org> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
		| @ -5,11 +5,7 @@ description: Artifact commands add_lots.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands add_lots.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands add_lots.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands add_lots.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										11
									
								
								rust/kcl-lib/tests/add_lots/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								rust/kcl-lib/tests/add_lots/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing add_lots.kcl | ||||
| --- | ||||
| fn f(i) { | ||||
|   return i * 2 | ||||
| } | ||||
|  | ||||
| x = f(0) + f(1) + f(2) + f(3) + f(4) + f(5) + f(6) + f(7) + f(8) + f(9) + f(10) + f(11) + f(12) + f(13) + f(14) + f(15) + f(16) + f(17) + f(18) + f(19) + f(20) + f(21) + f(22) + f(23) + f(24) + f(25) + f(26) + f(27) + f(28) + f(29) + f(30) + f(31) + f(32) + f(33) + f(34) + f(35) + f(36) + f(37) + f(38) + f(39) + f(40) + f(41) + f(42) + f(43) + f(44) + f(45) + f(46) + f(47) + f(48) + f(49) + f(50) + f(51) + f(52) + f(53) + f(54) + f(55) + f(56) + f(57) + f(58) + f(59) + f(60) + f(61) + f(62) + f(63) + f(64) + f(65) + f(66) + f(67) + f(68) + f(69) + f(70) + f(71) + f(72) + f(73) + f(74) + f(75) + f(76) + f(77) + f(78) + f(79) + f(80) + f(81) + f(82) + f(83) + f(84) + f(85) + f(86) + f(87) + f(88) + f(89) + f(90) + f(91) + f(92) + f(93) + f(94) + f(95) + f(96) + f(97) + f(98) + f(99) + f(100) | ||||
|  | ||||
| assertEqual(x, 10100, 0.1, "Big sum") | ||||
| @ -5,11 +5,7 @@ description: Artifact commands angled_line.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -84,11 +64,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       67, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -104,22 +80,14 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       67, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       67, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -132,22 +100,14 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       67, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       73, | ||||
|       97, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -164,11 +124,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       103, | ||||
|       142, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -185,11 +141,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       148, | ||||
|       174, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -206,11 +158,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       180, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -227,11 +175,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       223, | ||||
|       250, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -248,11 +192,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       256, | ||||
|       264, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -260,11 +200,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -280,11 +216,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -294,22 +226,14 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -317,11 +241,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -330,11 +250,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -344,11 +260,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -358,11 +270,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -372,11 +280,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -386,11 +290,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -400,11 +300,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -414,11 +310,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -428,11 +320,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -442,11 +330,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -456,11 +340,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -470,11 +350,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -484,11 +360,7 @@ description: Artifact commands angled_line.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -7,9 +7,9 @@ description: Result of parsing angled_line.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 289, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 7, | ||||
|             "end": 0, | ||||
|             "name": "part001", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -19,22 +19,22 @@ description: Result of parsing angled_line.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 28, | ||||
|                     "end": 0, | ||||
|                     "raw": "'XY'", | ||||
|                     "start": 24, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": "XY" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 23, | ||||
|                   "end": 0, | ||||
|                   "name": "startSketchOn", | ||||
|                   "start": 10, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 29, | ||||
|                 "start": 10, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -43,9 +43,9 @@ description: Result of parsing angled_line.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 55, | ||||
|                         "end": 0, | ||||
|                         "raw": "4.83", | ||||
|                         "start": 51, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -54,9 +54,9 @@ description: Result of parsing angled_line.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 62, | ||||
|                         "end": 0, | ||||
|                         "raw": "12.56", | ||||
|                         "start": 57, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -65,26 +65,26 @@ description: Result of parsing angled_line.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 63, | ||||
|                     "start": 50, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 66, | ||||
|                     "start": 65, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 49, | ||||
|                   "end": 0, | ||||
|                   "name": "startProfileAt", | ||||
|                   "start": 35, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 67, | ||||
|                 "start": 35, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -93,17 +93,17 @@ description: Result of parsing angled_line.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 81, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 78, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 89, | ||||
|                           "end": 0, | ||||
|                           "raw": "15.1", | ||||
|                           "start": 85, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -112,9 +112,9 @@ description: Result of parsing angled_line.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 95, | ||||
|                           "end": 0, | ||||
|                           "raw": "2.48", | ||||
|                           "start": 91, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -123,21 +123,21 @@ description: Result of parsing angled_line.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 96, | ||||
|                       "start": 84, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 77, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 73, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 97, | ||||
|                 "start": 73, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -147,17 +147,17 @@ description: Result of parsing angled_line.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 111, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 108, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 119, | ||||
|                           "end": 0, | ||||
|                           "raw": "3.15", | ||||
|                           "start": 115, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -167,9 +167,9 @@ description: Result of parsing angled_line.kcl | ||||
|                         }, | ||||
|                         { | ||||
|                           "argument": { | ||||
|                             "end": 126, | ||||
|                             "end": 0, | ||||
|                             "raw": "9.85", | ||||
|                             "start": 122, | ||||
|                             "start": 0, | ||||
|                             "type": "Literal", | ||||
|                             "type": "Literal", | ||||
|                             "value": { | ||||
| @ -177,15 +177,15 @@ description: Result of parsing angled_line.kcl | ||||
|                               "suffix": "None" | ||||
|                             } | ||||
|                           }, | ||||
|                           "end": 126, | ||||
|                           "end": 0, | ||||
|                           "operator": "-", | ||||
|                           "start": 121, | ||||
|                           "start": 0, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 127, | ||||
|                       "start": 114, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -193,14 +193,14 @@ description: Result of parsing angled_line.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 132, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 129, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 141, | ||||
|                       "start": 135, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "seg01" | ||||
| @ -208,13 +208,13 @@ description: Result of parsing angled_line.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 107, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 103, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 142, | ||||
|                 "start": 103, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -224,18 +224,18 @@ description: Result of parsing angled_line.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 156, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 153, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "argument": { | ||||
|                             "end": 166, | ||||
|                             "end": 0, | ||||
|                             "raw": "15.17", | ||||
|                             "start": 161, | ||||
|                             "start": 0, | ||||
|                             "type": "Literal", | ||||
|                             "type": "Literal", | ||||
|                             "value": { | ||||
| @ -243,17 +243,17 @@ description: Result of parsing angled_line.kcl | ||||
|                               "suffix": "None" | ||||
|                             } | ||||
|                           }, | ||||
|                           "end": 166, | ||||
|                           "end": 0, | ||||
|                           "operator": "-", | ||||
|                           "start": 160, | ||||
|                           "start": 0, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         }, | ||||
|                         { | ||||
|                           "argument": { | ||||
|                             "end": 172, | ||||
|                             "end": 0, | ||||
|                             "raw": "4.1", | ||||
|                             "start": 169, | ||||
|                             "start": 0, | ||||
|                             "type": "Literal", | ||||
|                             "type": "Literal", | ||||
|                             "value": { | ||||
| @ -261,28 +261,28 @@ description: Result of parsing angled_line.kcl | ||||
|                               "suffix": "None" | ||||
|                             } | ||||
|                           }, | ||||
|                           "end": 172, | ||||
|                           "end": 0, | ||||
|                           "operator": "-", | ||||
|                           "start": 168, | ||||
|                           "start": 0, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 173, | ||||
|                       "start": 159, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 152, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 148, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 174, | ||||
|                 "start": 148, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -294,28 +294,28 @@ description: Result of parsing angled_line.kcl | ||||
|                       { | ||||
|                         "arguments": [ | ||||
|                           { | ||||
|                             "end": 204, | ||||
|                             "end": 0, | ||||
|                             "name": "seg01", | ||||
|                             "start": 199, | ||||
|                             "start": 0, | ||||
|                             "type": "Identifier", | ||||
|                             "type": "Identifier" | ||||
|                           } | ||||
|                         ], | ||||
|                         "callee": { | ||||
|                           "end": 198, | ||||
|                           "end": 0, | ||||
|                           "name": "segAng", | ||||
|                           "start": 192, | ||||
|                           "start": 0, | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         "end": 205, | ||||
|                         "start": 192, | ||||
|                         "end": 0, | ||||
|                         "start": 0, | ||||
|                         "type": "CallExpression", | ||||
|                         "type": "CallExpression" | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 212, | ||||
|                         "end": 0, | ||||
|                         "raw": "12.35", | ||||
|                         "start": 207, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -324,26 +324,26 @@ description: Result of parsing angled_line.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 213, | ||||
|                     "start": 191, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 216, | ||||
|                     "start": 215, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 190, | ||||
|                   "end": 0, | ||||
|                   "name": "angledLine", | ||||
|                   "start": 180, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 217, | ||||
|                 "start": 180, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -352,18 +352,18 @@ description: Result of parsing angled_line.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 231, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 228, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "argument": { | ||||
|                             "end": 241, | ||||
|                             "end": 0, | ||||
|                             "raw": "13.02", | ||||
|                             "start": 236, | ||||
|                             "start": 0, | ||||
|                             "type": "Literal", | ||||
|                             "type": "Literal", | ||||
|                             "value": { | ||||
| @ -371,16 +371,16 @@ description: Result of parsing angled_line.kcl | ||||
|                               "suffix": "None" | ||||
|                             } | ||||
|                           }, | ||||
|                           "end": 241, | ||||
|                           "end": 0, | ||||
|                           "operator": "-", | ||||
|                           "start": 235, | ||||
|                           "start": 0, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 248, | ||||
|                           "end": 0, | ||||
|                           "raw": "10.03", | ||||
|                           "start": 243, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -389,21 +389,21 @@ description: Result of parsing angled_line.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 249, | ||||
|                       "start": 234, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 227, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 223, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 250, | ||||
|                 "start": 223, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -411,20 +411,20 @@ description: Result of parsing angled_line.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 263, | ||||
|                     "start": 262, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 261, | ||||
|                   "end": 0, | ||||
|                   "name": "close", | ||||
|                   "start": 256, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 264, | ||||
|                 "start": 256, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -433,15 +433,15 @@ description: Result of parsing angled_line.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 284, | ||||
|                       "end": 0, | ||||
|                       "name": "length", | ||||
|                       "start": 278, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 288, | ||||
|                       "end": 0, | ||||
|                       "raw": "4", | ||||
|                       "start": 287, | ||||
|                       "start": 0, | ||||
|                       "type": "Literal", | ||||
|                       "type": "Literal", | ||||
|                       "value": { | ||||
| @ -452,34 +452,34 @@ description: Result of parsing angled_line.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 277, | ||||
|                   "end": 0, | ||||
|                   "name": "extrude", | ||||
|                   "start": 270, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 289, | ||||
|                 "start": 270, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
|               } | ||||
|             ], | ||||
|             "end": 289, | ||||
|             "start": 10, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "PipeExpression", | ||||
|             "type": "PipeExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 289, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 290, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -10,19 +10,11 @@ description: Operations executed angled_line.kcl | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           24, | ||||
|           28, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -42,19 +34,11 @@ description: Operations executed angled_line.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           287, | ||||
|           288, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       270, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -63,11 +47,7 @@ description: Operations executed angled_line.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         270, | ||||
|         289, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
|  | ||||
| @ -13,22 +13,14 @@ description: Variables in memory after executing angled_line.kcl | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             73, | ||||
|             97, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             103, | ||||
|             142, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 141, | ||||
|             "start": 135, | ||||
| @ -40,44 +32,28 @@ description: Variables in memory after executing angled_line.kcl | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             148, | ||||
|             174, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             180, | ||||
|             217, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             223, | ||||
|             250, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             256, | ||||
|             264, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         } | ||||
| @ -89,11 +65,7 @@ description: Variables in memory after executing angled_line.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 73, | ||||
|                 97, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               4.83, | ||||
| @ -112,11 +84,7 @@ description: Variables in memory after executing angled_line.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 103, | ||||
|                 142, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               19.93, | ||||
| @ -140,11 +108,7 @@ description: Variables in memory after executing angled_line.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 148, | ||||
|                 174, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               23.08, | ||||
| @ -163,11 +127,7 @@ description: Variables in memory after executing angled_line.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 180, | ||||
|                 217, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               7.91, | ||||
| @ -186,11 +146,7 @@ description: Variables in memory after executing angled_line.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 223, | ||||
|                 250, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               11.6718, | ||||
| @ -209,11 +165,7 @@ description: Variables in memory after executing angled_line.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 256, | ||||
|                 264, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               -1.3482, | ||||
| @ -274,11 +226,7 @@ description: Variables in memory after executing angled_line.kcl | ||||
|           "tag": null, | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               35, | ||||
|               67, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           } | ||||
|         }, | ||||
|         "tags": { | ||||
|  | ||||
							
								
								
									
										13
									
								
								rust/kcl-lib/tests/angled_line/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								rust/kcl-lib/tests/angled_line/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing angled_line.kcl | ||||
| --- | ||||
| part001 = startSketchOn('XY') | ||||
|   |> startProfileAt([4.83, 12.56], %) | ||||
|   |> line(end = [15.1, 2.48]) | ||||
|   |> line(end = [3.15, -9.85], tag = $seg01) | ||||
|   |> line(end = [-15.17, -4.1]) | ||||
|   |> angledLine([segAng(seg01), 12.35], %) | ||||
|   |> line(end = [-13.02, 10.03]) | ||||
|   |> close(%) | ||||
|   |> extrude(length = 4) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands argument_error.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands argument_error.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands argument_error.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands argument_error.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of parsing argument_error.kcl | ||||
| --- | ||||
| { | ||||
| @ -7,11 +7,11 @@ description: Result of parsing argument_error.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 22, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 4, | ||||
|             "end": 0, | ||||
|             "name": "f", | ||||
|             "start": 3, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
| @ -19,9 +19,9 @@ description: Result of parsing argument_error.kcl | ||||
|               "body": [ | ||||
|                 { | ||||
|                   "argument": { | ||||
|                     "end": 20, | ||||
|                     "end": 0, | ||||
|                     "raw": "5", | ||||
|                     "start": 19, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": { | ||||
| @ -29,57 +29,57 @@ description: Result of parsing argument_error.kcl | ||||
|                       "suffix": "None" | ||||
|                     } | ||||
|                   }, | ||||
|                   "end": 20, | ||||
|                   "start": 12, | ||||
|                   "end": 0, | ||||
|                   "start": 0, | ||||
|                   "type": "ReturnStatement", | ||||
|                   "type": "ReturnStatement" | ||||
|                 } | ||||
|               ], | ||||
|               "end": 22, | ||||
|               "start": 8 | ||||
|               "end": 0, | ||||
|               "start": 0 | ||||
|             }, | ||||
|             "end": 22, | ||||
|             "end": 0, | ||||
|             "params": [ | ||||
|               { | ||||
|                 "type": "Parameter", | ||||
|                 "identifier": { | ||||
|                   "end": 6, | ||||
|                   "end": 0, | ||||
|                   "name": "i", | ||||
|                   "start": 5, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 } | ||||
|               } | ||||
|             ], | ||||
|             "start": 4, | ||||
|             "start": 0, | ||||
|             "type": "FunctionExpression", | ||||
|             "type": "FunctionExpression" | ||||
|           }, | ||||
|           "start": 3, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 22, | ||||
|         "end": 0, | ||||
|         "kind": "fn", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "end": 38, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "end": 29, | ||||
|               "end": 0, | ||||
|               "name": "f", | ||||
|               "start": 28, | ||||
|               "start": 0, | ||||
|               "type": "Identifier", | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             { | ||||
|               "elements": [ | ||||
|                 { | ||||
|                   "end": 33, | ||||
|                   "end": 0, | ||||
|                   "raw": "0", | ||||
|                   "start": 32, | ||||
|                   "start": 0, | ||||
|                   "type": "Literal", | ||||
|                   "type": "Literal", | ||||
|                   "value": { | ||||
| @ -88,9 +88,9 @@ description: Result of parsing argument_error.kcl | ||||
|                   } | ||||
|                 }, | ||||
|                 { | ||||
|                   "end": 36, | ||||
|                   "end": 0, | ||||
|                   "raw": "1", | ||||
|                   "start": 35, | ||||
|                   "start": 0, | ||||
|                   "type": "Literal", | ||||
|                   "type": "Literal", | ||||
|                   "value": { | ||||
| @ -99,35 +99,35 @@ description: Result of parsing argument_error.kcl | ||||
|                   } | ||||
|                 } | ||||
|               ], | ||||
|               "end": 37, | ||||
|               "start": 31, | ||||
|               "end": 0, | ||||
|               "start": 0, | ||||
|               "type": "ArrayExpression", | ||||
|               "type": "ArrayExpression" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 27, | ||||
|             "end": 0, | ||||
|             "name": "map", | ||||
|             "start": 24, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 38, | ||||
|           "start": 24, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 24, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       } | ||||
|     ], | ||||
|     "end": 39, | ||||
|     "end": 0, | ||||
|     "nonCodeMeta": { | ||||
|       "nonCodeNodes": { | ||||
|         "0": [ | ||||
|           { | ||||
|             "end": 24, | ||||
|             "start": 22, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "newLine" | ||||
|  | ||||
							
								
								
									
										9
									
								
								rust/kcl-lib/tests/argument_error/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								rust/kcl-lib/tests/argument_error/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,9 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing argument_error.kcl | ||||
| --- | ||||
| fn f(i) { | ||||
|   return 5 | ||||
| } | ||||
|  | ||||
| map(f, [0, 1]) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands array_elem_pop.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands array_elem_pop.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands array_elem_pop.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands array_elem_pop.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -7,9 +7,9 @@ description: Result of parsing array_elem_pop.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 15, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 3, | ||||
|             "end": 0, | ||||
|             "name": "arr", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -17,9 +17,9 @@ description: Result of parsing array_elem_pop.kcl | ||||
|           "init": { | ||||
|             "elements": [ | ||||
|               { | ||||
|                 "end": 8, | ||||
|                 "end": 0, | ||||
|                 "raw": "1", | ||||
|                 "start": 7, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -28,9 +28,9 @@ description: Result of parsing array_elem_pop.kcl | ||||
|                 } | ||||
|               }, | ||||
|               { | ||||
|                 "end": 11, | ||||
|                 "end": 0, | ||||
|                 "raw": "2", | ||||
|                 "start": 10, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -39,9 +39,9 @@ description: Result of parsing array_elem_pop.kcl | ||||
|                 } | ||||
|               }, | ||||
|               { | ||||
|                 "end": 14, | ||||
|                 "end": 0, | ||||
|                 "raw": "3", | ||||
|                 "start": 13, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -50,15 +50,15 @@ description: Result of parsing array_elem_pop.kcl | ||||
|                 } | ||||
|               } | ||||
|             ], | ||||
|             "end": 15, | ||||
|             "start": 6, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "ArrayExpression", | ||||
|             "type": "ArrayExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 15, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
| @ -66,139 +66,139 @@ description: Result of parsing array_elem_pop.kcl | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 35, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 24, | ||||
|             "end": 0, | ||||
|             "name": "new_arr1", | ||||
|             "start": 16, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "arguments": [ | ||||
|               { | ||||
|                 "end": 34, | ||||
|                 "end": 0, | ||||
|                 "name": "arr", | ||||
|                 "start": 31, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 30, | ||||
|               "end": 0, | ||||
|               "name": "pop", | ||||
|               "start": 27, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 35, | ||||
|             "start": 27, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpression", | ||||
|             "type": "CallExpression" | ||||
|           }, | ||||
|           "start": 16, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 35, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 16, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 60, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 44, | ||||
|             "end": 0, | ||||
|             "name": "new_arr2", | ||||
|             "start": 36, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "arguments": [ | ||||
|               { | ||||
|                 "end": 59, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr1", | ||||
|                 "start": 51, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 50, | ||||
|               "end": 0, | ||||
|               "name": "pop", | ||||
|               "start": 47, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 60, | ||||
|             "start": 47, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpression", | ||||
|             "type": "CallExpression" | ||||
|           }, | ||||
|           "start": 36, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 60, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 36, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 85, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 69, | ||||
|             "end": 0, | ||||
|             "name": "new_arr3", | ||||
|             "start": 61, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "arguments": [ | ||||
|               { | ||||
|                 "end": 84, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr2", | ||||
|                 "start": 76, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 75, | ||||
|               "end": 0, | ||||
|               "name": "pop", | ||||
|               "start": 72, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 85, | ||||
|             "start": 72, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpression", | ||||
|             "type": "CallExpression" | ||||
|           }, | ||||
|           "start": 61, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 85, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 61, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "end": 159, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 109, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 106, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr1", | ||||
|                 "start": 98, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 108, | ||||
|                 "end": 0, | ||||
|                 "raw": "0", | ||||
|                 "start": 107, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -206,14 +206,14 @@ description: Result of parsing array_elem_pop.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 98, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 112, | ||||
|               "end": 0, | ||||
|               "raw": "1", | ||||
|               "start": 111, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -222,9 +222,9 @@ description: Result of parsing array_elem_pop.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 121, | ||||
|               "end": 0, | ||||
|               "raw": "0.00001", | ||||
|               "start": 114, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -233,47 +233,47 @@ description: Result of parsing array_elem_pop.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 158, | ||||
|               "end": 0, | ||||
|               "raw": "\"element 0 should not have changed\"", | ||||
|               "start": 123, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "element 0 should not have changed" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 97, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 86, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 159, | ||||
|           "start": 86, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 86, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 233, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 183, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 180, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr1", | ||||
|                 "start": 172, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 182, | ||||
|                 "end": 0, | ||||
|                 "raw": "1", | ||||
|                 "start": 181, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -281,14 +281,14 @@ description: Result of parsing array_elem_pop.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 172, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 186, | ||||
|               "end": 0, | ||||
|               "raw": "2", | ||||
|               "start": 185, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -297,9 +297,9 @@ description: Result of parsing array_elem_pop.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 195, | ||||
|               "end": 0, | ||||
|               "raw": "0.00001", | ||||
|               "start": 188, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -308,47 +308,47 @@ description: Result of parsing array_elem_pop.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 232, | ||||
|               "end": 0, | ||||
|               "raw": "\"element 1 should not have changed\"", | ||||
|               "start": 197, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "element 1 should not have changed" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 171, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 160, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 233, | ||||
|           "start": 160, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 160, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 307, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 257, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 254, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr2", | ||||
|                 "start": 246, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 256, | ||||
|                 "end": 0, | ||||
|                 "raw": "0", | ||||
|                 "start": 255, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -356,14 +356,14 @@ description: Result of parsing array_elem_pop.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 246, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 260, | ||||
|               "end": 0, | ||||
|               "raw": "1", | ||||
|               "start": 259, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -372,9 +372,9 @@ description: Result of parsing array_elem_pop.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 269, | ||||
|               "end": 0, | ||||
|               "raw": "0.00001", | ||||
|               "start": 262, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -383,31 +383,31 @@ description: Result of parsing array_elem_pop.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 306, | ||||
|               "end": 0, | ||||
|               "raw": "\"element 0 should not have changed\"", | ||||
|               "start": 271, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "element 0 should not have changed" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 245, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 234, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 307, | ||||
|           "start": 234, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 234, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       } | ||||
|     ], | ||||
|     "end": 308, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
							
								
								
									
										11
									
								
								rust/kcl-lib/tests/array_elem_pop/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								rust/kcl-lib/tests/array_elem_pop/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,11 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing array_elem_pop.kcl | ||||
| --- | ||||
| arr = [1, 2, 3] | ||||
| new_arr1 = pop(arr) | ||||
| new_arr2 = pop(new_arr1) | ||||
| new_arr3 = pop(new_arr2) | ||||
| assertEqual(new_arr1[0], 1, 0.00001, "element 0 should not have changed") | ||||
| assertEqual(new_arr1[1], 2, 0.00001, "element 1 should not have changed") | ||||
| assertEqual(new_arr2[0], 1, 0.00001, "element 0 should not have changed") | ||||
| @ -5,11 +5,7 @@ description: Artifact commands array_elem_pop_empty_fail.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands array_elem_pop_empty_fail.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands array_elem_pop_empty_fail.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands array_elem_pop_empty_fail.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -7,24 +7,24 @@ description: Result of parsing array_elem_pop_empty_fail.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 8, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 3, | ||||
|             "end": 0, | ||||
|             "name": "arr", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "elements": [], | ||||
|             "end": 8, | ||||
|             "start": 6, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "ArrayExpression", | ||||
|             "type": "ArrayExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 8, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
| @ -32,45 +32,45 @@ description: Result of parsing array_elem_pop_empty_fail.kcl | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 24, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 13, | ||||
|             "end": 0, | ||||
|             "name": "fail", | ||||
|             "start": 9, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "arguments": [ | ||||
|               { | ||||
|                 "end": 23, | ||||
|                 "end": 0, | ||||
|                 "name": "arr", | ||||
|                 "start": 20, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 19, | ||||
|               "end": 0, | ||||
|               "name": "pop", | ||||
|               "start": 16, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 24, | ||||
|             "start": 16, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpression", | ||||
|             "type": "CallExpression" | ||||
|           }, | ||||
|           "start": 9, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 24, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 9, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 25, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing array_elem_pop_empty_fail.kcl | ||||
| --- | ||||
| arr = [] | ||||
| fail = pop(arr) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands array_elem_pop_fail.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands array_elem_pop_fail.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands array_elem_pop_fail.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands array_elem_pop_fail.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of parsing array_elem_pop_fail.kcl | ||||
| --- | ||||
| { | ||||
| @ -7,9 +7,9 @@ description: Result of parsing array_elem_pop_fail.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 15, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 3, | ||||
|             "end": 0, | ||||
|             "name": "arr", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -17,9 +17,9 @@ description: Result of parsing array_elem_pop_fail.kcl | ||||
|           "init": { | ||||
|             "elements": [ | ||||
|               { | ||||
|                 "end": 8, | ||||
|                 "end": 0, | ||||
|                 "raw": "1", | ||||
|                 "start": 7, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -28,9 +28,9 @@ description: Result of parsing array_elem_pop_fail.kcl | ||||
|                 } | ||||
|               }, | ||||
|               { | ||||
|                 "end": 11, | ||||
|                 "end": 0, | ||||
|                 "raw": "2", | ||||
|                 "start": 10, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -39,9 +39,9 @@ description: Result of parsing array_elem_pop_fail.kcl | ||||
|                 } | ||||
|               }, | ||||
|               { | ||||
|                 "end": 14, | ||||
|                 "end": 0, | ||||
|                 "raw": "3", | ||||
|                 "start": 13, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -50,15 +50,15 @@ description: Result of parsing array_elem_pop_fail.kcl | ||||
|                 } | ||||
|               } | ||||
|             ], | ||||
|             "end": 15, | ||||
|             "start": 6, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "ArrayExpression", | ||||
|             "type": "ArrayExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 15, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
| @ -66,66 +66,66 @@ description: Result of parsing array_elem_pop_fail.kcl | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 36, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 25, | ||||
|             "end": 0, | ||||
|             "name": "pushedArr", | ||||
|             "start": 16, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "arguments": [ | ||||
|               { | ||||
|                 "end": 35, | ||||
|                 "end": 0, | ||||
|                 "name": "arr", | ||||
|                 "start": 32, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 31, | ||||
|               "end": 0, | ||||
|               "name": "pop", | ||||
|               "start": 28, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 36, | ||||
|             "start": 28, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpression", | ||||
|             "type": "CallExpression" | ||||
|           }, | ||||
|           "start": 16, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 36, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 16, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 56, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 41, | ||||
|             "end": 0, | ||||
|             "name": "fail", | ||||
|             "start": 37, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "computed": false, | ||||
|             "end": 56, | ||||
|             "end": 0, | ||||
|             "object": { | ||||
|               "end": 53, | ||||
|               "end": 0, | ||||
|               "name": "pushedArr", | ||||
|               "start": 44, | ||||
|               "start": 0, | ||||
|               "type": "Identifier", | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "property": { | ||||
|               "end": 55, | ||||
|               "end": 0, | ||||
|               "raw": "2", | ||||
|               "start": 54, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -133,21 +133,21 @@ description: Result of parsing array_elem_pop_fail.kcl | ||||
|                 "suffix": "None" | ||||
|               } | ||||
|             }, | ||||
|             "start": 44, | ||||
|             "start": 0, | ||||
|             "type": "MemberExpression", | ||||
|             "type": "MemberExpression" | ||||
|           }, | ||||
|           "start": 37, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 56, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 37, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 57, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
							
								
								
									
										7
									
								
								rust/kcl-lib/tests/array_elem_pop_fail/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								rust/kcl-lib/tests/array_elem_pop_fail/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing array_elem_pop_fail.kcl | ||||
| --- | ||||
| arr = [1, 2, 3] | ||||
| pushedArr = pop(arr) | ||||
| fail = pushedArr[2] | ||||
| @ -5,11 +5,7 @@ description: Artifact commands array_elem_push.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands array_elem_push.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands array_elem_push.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands array_elem_push.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of parsing array_elem_push.kcl | ||||
| --- | ||||
| { | ||||
| @ -7,9 +7,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 15, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 3, | ||||
|             "end": 0, | ||||
|             "name": "arr", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -17,9 +17,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|           "init": { | ||||
|             "elements": [ | ||||
|               { | ||||
|                 "end": 8, | ||||
|                 "end": 0, | ||||
|                 "raw": "1", | ||||
|                 "start": 7, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -28,9 +28,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|                 } | ||||
|               }, | ||||
|               { | ||||
|                 "end": 11, | ||||
|                 "end": 0, | ||||
|                 "raw": "2", | ||||
|                 "start": 10, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -39,9 +39,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|                 } | ||||
|               }, | ||||
|               { | ||||
|                 "end": 14, | ||||
|                 "end": 0, | ||||
|                 "raw": "3", | ||||
|                 "start": 13, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -50,15 +50,15 @@ description: Result of parsing array_elem_push.kcl | ||||
|                 } | ||||
|               } | ||||
|             ], | ||||
|             "end": 15, | ||||
|             "start": 6, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "ArrayExpression", | ||||
|             "type": "ArrayExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 15, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
| @ -66,26 +66,26 @@ description: Result of parsing array_elem_push.kcl | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 39, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 24, | ||||
|             "end": 0, | ||||
|             "name": "new_arr1", | ||||
|             "start": 16, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "arguments": [ | ||||
|               { | ||||
|                 "end": 35, | ||||
|                 "end": 0, | ||||
|                 "name": "arr", | ||||
|                 "start": 32, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               { | ||||
|                 "end": 38, | ||||
|                 "end": 0, | ||||
|                 "raw": "4", | ||||
|                 "start": 37, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -95,47 +95,47 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 31, | ||||
|               "end": 0, | ||||
|               "name": "push", | ||||
|               "start": 27, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 39, | ||||
|             "start": 27, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpression", | ||||
|             "type": "CallExpression" | ||||
|           }, | ||||
|           "start": 16, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 39, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 16, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 68, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 48, | ||||
|             "end": 0, | ||||
|             "name": "new_arr2", | ||||
|             "start": 40, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "arguments": [ | ||||
|               { | ||||
|                 "end": 64, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr1", | ||||
|                 "start": 56, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               { | ||||
|                 "end": 67, | ||||
|                 "end": 0, | ||||
|                 "raw": "5", | ||||
|                 "start": 66, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -145,43 +145,43 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 55, | ||||
|               "end": 0, | ||||
|               "name": "push", | ||||
|               "start": 51, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 68, | ||||
|             "start": 51, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpression", | ||||
|             "type": "CallExpression" | ||||
|           }, | ||||
|           "start": 40, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 68, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 40, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "end": 142, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 92, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 89, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr1", | ||||
|                 "start": 81, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 91, | ||||
|                 "end": 0, | ||||
|                 "raw": "0", | ||||
|                 "start": 90, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -189,14 +189,14 @@ description: Result of parsing array_elem_push.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 81, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 95, | ||||
|               "end": 0, | ||||
|               "raw": "1", | ||||
|               "start": 94, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -205,9 +205,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 104, | ||||
|               "end": 0, | ||||
|               "raw": "0.00001", | ||||
|               "start": 97, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -216,47 +216,47 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 141, | ||||
|               "end": 0, | ||||
|               "raw": "\"element 0 should not have changed\"", | ||||
|               "start": 106, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "element 0 should not have changed" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 80, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 69, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 142, | ||||
|           "start": 69, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 69, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 216, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 166, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 163, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr1", | ||||
|                 "start": 155, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 165, | ||||
|                 "end": 0, | ||||
|                 "raw": "1", | ||||
|                 "start": 164, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -264,14 +264,14 @@ description: Result of parsing array_elem_push.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 155, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 169, | ||||
|               "end": 0, | ||||
|               "raw": "2", | ||||
|               "start": 168, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -280,9 +280,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 178, | ||||
|               "end": 0, | ||||
|               "raw": "0.00001", | ||||
|               "start": 171, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -291,47 +291,47 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 215, | ||||
|               "end": 0, | ||||
|               "raw": "\"element 1 should not have changed\"", | ||||
|               "start": 180, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "element 1 should not have changed" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 154, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 143, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 216, | ||||
|           "start": 143, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 143, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 290, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 240, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 237, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr1", | ||||
|                 "start": 229, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 239, | ||||
|                 "end": 0, | ||||
|                 "raw": "2", | ||||
|                 "start": 238, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -339,14 +339,14 @@ description: Result of parsing array_elem_push.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 229, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 243, | ||||
|               "end": 0, | ||||
|               "raw": "3", | ||||
|               "start": 242, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -355,9 +355,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 252, | ||||
|               "end": 0, | ||||
|               "raw": "0.00001", | ||||
|               "start": 245, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -366,47 +366,47 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 289, | ||||
|               "end": 0, | ||||
|               "raw": "\"element 2 should not have changed\"", | ||||
|               "start": 254, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "element 2 should not have changed" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 228, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 217, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 290, | ||||
|           "start": 217, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 217, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 366, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 314, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 311, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr1", | ||||
|                 "start": 303, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 313, | ||||
|                 "end": 0, | ||||
|                 "raw": "3", | ||||
|                 "start": 312, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -414,14 +414,14 @@ description: Result of parsing array_elem_push.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 303, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 317, | ||||
|               "end": 0, | ||||
|               "raw": "4", | ||||
|               "start": 316, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -430,9 +430,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 326, | ||||
|               "end": 0, | ||||
|               "raw": "0.00001", | ||||
|               "start": 319, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -441,47 +441,47 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 365, | ||||
|               "end": 0, | ||||
|               "raw": "\"4 was added to the end of the array\"", | ||||
|               "start": 328, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "4 was added to the end of the array" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 302, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 291, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 366, | ||||
|           "start": 291, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 291, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 440, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 390, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 387, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr2", | ||||
|                 "start": 379, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 389, | ||||
|                 "end": 0, | ||||
|                 "raw": "0", | ||||
|                 "start": 388, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -489,14 +489,14 @@ description: Result of parsing array_elem_push.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 379, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 393, | ||||
|               "end": 0, | ||||
|               "raw": "1", | ||||
|               "start": 392, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -505,9 +505,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 402, | ||||
|               "end": 0, | ||||
|               "raw": "0.00001", | ||||
|               "start": 395, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -516,47 +516,47 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 439, | ||||
|               "end": 0, | ||||
|               "raw": "\"element 0 should not have changed\"", | ||||
|               "start": 404, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "element 0 should not have changed" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 378, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 367, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 440, | ||||
|           "start": 367, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 367, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 514, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 464, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 461, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr2", | ||||
|                 "start": 453, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 463, | ||||
|                 "end": 0, | ||||
|                 "raw": "1", | ||||
|                 "start": 462, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -564,14 +564,14 @@ description: Result of parsing array_elem_push.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 453, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 467, | ||||
|               "end": 0, | ||||
|               "raw": "2", | ||||
|               "start": 466, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -580,9 +580,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 476, | ||||
|               "end": 0, | ||||
|               "raw": "0.00001", | ||||
|               "start": 469, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -591,47 +591,47 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 513, | ||||
|               "end": 0, | ||||
|               "raw": "\"element 1 should not have changed\"", | ||||
|               "start": 478, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "element 1 should not have changed" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 452, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 441, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 514, | ||||
|           "start": 441, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 441, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 588, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 538, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 535, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr2", | ||||
|                 "start": 527, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 537, | ||||
|                 "end": 0, | ||||
|                 "raw": "2", | ||||
|                 "start": 536, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -639,14 +639,14 @@ description: Result of parsing array_elem_push.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 527, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 541, | ||||
|               "end": 0, | ||||
|               "raw": "3", | ||||
|               "start": 540, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -655,9 +655,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 550, | ||||
|               "end": 0, | ||||
|               "raw": "0.00001", | ||||
|               "start": 543, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -666,47 +666,47 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 587, | ||||
|               "end": 0, | ||||
|               "raw": "\"element 2 should not have changed\"", | ||||
|               "start": 552, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "element 2 should not have changed" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 526, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 515, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 588, | ||||
|           "start": 515, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 515, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 664, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 612, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 609, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr2", | ||||
|                 "start": 601, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 611, | ||||
|                 "end": 0, | ||||
|                 "raw": "3", | ||||
|                 "start": 610, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -714,14 +714,14 @@ description: Result of parsing array_elem_push.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 601, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 615, | ||||
|               "end": 0, | ||||
|               "raw": "4", | ||||
|               "start": 614, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -730,9 +730,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 624, | ||||
|               "end": 0, | ||||
|               "raw": "0.00001", | ||||
|               "start": 617, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -741,47 +741,47 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 663, | ||||
|               "end": 0, | ||||
|               "raw": "\"4 was added to the end of the array\"", | ||||
|               "start": 626, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "4 was added to the end of the array" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 600, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 589, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 664, | ||||
|           "start": 589, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 589, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 740, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 688, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 685, | ||||
|                 "end": 0, | ||||
|                 "name": "new_arr2", | ||||
|                 "start": 677, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 687, | ||||
|                 "end": 0, | ||||
|                 "raw": "4", | ||||
|                 "start": 686, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -789,14 +789,14 @@ description: Result of parsing array_elem_push.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 677, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 691, | ||||
|               "end": 0, | ||||
|               "raw": "5", | ||||
|               "start": 690, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -805,9 +805,9 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 700, | ||||
|               "end": 0, | ||||
|               "raw": "0.00001", | ||||
|               "start": 693, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -816,31 +816,31 @@ description: Result of parsing array_elem_push.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 739, | ||||
|               "end": 0, | ||||
|               "raw": "\"5 was added to the end of the array\"", | ||||
|               "start": 702, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "5 was added to the end of the array" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 676, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 665, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 740, | ||||
|           "start": 665, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 665, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       } | ||||
|     ], | ||||
|     "end": 741, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
							
								
								
									
										16
									
								
								rust/kcl-lib/tests/array_elem_push/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								rust/kcl-lib/tests/array_elem_push/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,16 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing array_elem_push.kcl | ||||
| --- | ||||
| arr = [1, 2, 3] | ||||
| new_arr1 = push(arr, 4) | ||||
| new_arr2 = push(new_arr1, 5) | ||||
| assertEqual(new_arr1[0], 1, 0.00001, "element 0 should not have changed") | ||||
| assertEqual(new_arr1[1], 2, 0.00001, "element 1 should not have changed") | ||||
| assertEqual(new_arr1[2], 3, 0.00001, "element 2 should not have changed") | ||||
| assertEqual(new_arr1[3], 4, 0.00001, "4 was added to the end of the array") | ||||
| assertEqual(new_arr2[0], 1, 0.00001, "element 0 should not have changed") | ||||
| assertEqual(new_arr2[1], 2, 0.00001, "element 1 should not have changed") | ||||
| assertEqual(new_arr2[2], 3, 0.00001, "element 2 should not have changed") | ||||
| assertEqual(new_arr2[3], 4, 0.00001, "4 was added to the end of the array") | ||||
| assertEqual(new_arr2[4], 5, 0.00001, "5 was added to the end of the array") | ||||
| @ -5,11 +5,7 @@ description: Artifact commands array_elem_push_fail.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands array_elem_push_fail.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands array_elem_push_fail.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands array_elem_push_fail.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of parsing array_elem_push_fail.kcl | ||||
| --- | ||||
| { | ||||
| @ -7,9 +7,9 @@ description: Result of parsing array_elem_push_fail.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 15, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 3, | ||||
|             "end": 0, | ||||
|             "name": "arr", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -17,9 +17,9 @@ description: Result of parsing array_elem_push_fail.kcl | ||||
|           "init": { | ||||
|             "elements": [ | ||||
|               { | ||||
|                 "end": 8, | ||||
|                 "end": 0, | ||||
|                 "raw": "1", | ||||
|                 "start": 7, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -28,9 +28,9 @@ description: Result of parsing array_elem_push_fail.kcl | ||||
|                 } | ||||
|               }, | ||||
|               { | ||||
|                 "end": 11, | ||||
|                 "end": 0, | ||||
|                 "raw": "2", | ||||
|                 "start": 10, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -39,9 +39,9 @@ description: Result of parsing array_elem_push_fail.kcl | ||||
|                 } | ||||
|               }, | ||||
|               { | ||||
|                 "end": 14, | ||||
|                 "end": 0, | ||||
|                 "raw": "3", | ||||
|                 "start": 13, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -50,15 +50,15 @@ description: Result of parsing array_elem_push_fail.kcl | ||||
|                 } | ||||
|               } | ||||
|             ], | ||||
|             "end": 15, | ||||
|             "start": 6, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "ArrayExpression", | ||||
|             "type": "ArrayExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 15, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
| @ -66,26 +66,26 @@ description: Result of parsing array_elem_push_fail.kcl | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 40, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 25, | ||||
|             "end": 0, | ||||
|             "name": "pushedArr", | ||||
|             "start": 16, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "arguments": [ | ||||
|               { | ||||
|                 "end": 36, | ||||
|                 "end": 0, | ||||
|                 "name": "arr", | ||||
|                 "start": 33, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               { | ||||
|                 "end": 39, | ||||
|                 "end": 0, | ||||
|                 "raw": "4", | ||||
|                 "start": 38, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -95,48 +95,48 @@ description: Result of parsing array_elem_push_fail.kcl | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 32, | ||||
|               "end": 0, | ||||
|               "name": "push", | ||||
|               "start": 28, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 40, | ||||
|             "start": 28, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpression", | ||||
|             "type": "CallExpression" | ||||
|           }, | ||||
|           "start": 16, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 40, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 16, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 54, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 45, | ||||
|             "end": 0, | ||||
|             "name": "fail", | ||||
|             "start": 41, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "computed": false, | ||||
|             "end": 54, | ||||
|             "end": 0, | ||||
|             "object": { | ||||
|               "end": 51, | ||||
|               "end": 0, | ||||
|               "name": "arr", | ||||
|               "start": 48, | ||||
|               "start": 0, | ||||
|               "type": "Identifier", | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "property": { | ||||
|               "end": 53, | ||||
|               "end": 0, | ||||
|               "raw": "3", | ||||
|               "start": 52, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -144,21 +144,21 @@ description: Result of parsing array_elem_push_fail.kcl | ||||
|                 "suffix": "None" | ||||
|               } | ||||
|             }, | ||||
|             "start": 48, | ||||
|             "start": 0, | ||||
|             "type": "MemberExpression", | ||||
|             "type": "MemberExpression" | ||||
|           }, | ||||
|           "start": 41, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 54, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 41, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 55, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
							
								
								
									
										7
									
								
								rust/kcl-lib/tests/array_elem_push_fail/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								rust/kcl-lib/tests/array_elem_push_fail/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing array_elem_push_fail.kcl | ||||
| --- | ||||
| arr = [1, 2, 3] | ||||
| pushedArr = push(arr, 4) | ||||
| fail = arr[3] | ||||
| @ -5,11 +5,7 @@ description: Artifact commands array_index_oob.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands array_index_oob.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands array_index_oob.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands array_index_oob.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -7,24 +7,24 @@ description: Result of parsing array_index_oob.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 8, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 3, | ||||
|             "end": 0, | ||||
|             "name": "arr", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "elements": [], | ||||
|             "end": 8, | ||||
|             "start": 6, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "ArrayExpression", | ||||
|             "type": "ArrayExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 8, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
| @ -32,27 +32,27 @@ description: Result of parsing array_index_oob.kcl | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 19, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 10, | ||||
|             "end": 0, | ||||
|             "name": "x", | ||||
|             "start": 9, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "computed": false, | ||||
|             "end": 19, | ||||
|             "end": 0, | ||||
|             "object": { | ||||
|               "end": 16, | ||||
|               "end": 0, | ||||
|               "name": "arr", | ||||
|               "start": 13, | ||||
|               "start": 0, | ||||
|               "type": "Identifier", | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "property": { | ||||
|               "end": 18, | ||||
|               "end": 0, | ||||
|               "raw": "0", | ||||
|               "start": 17, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -60,21 +60,21 @@ description: Result of parsing array_index_oob.kcl | ||||
|                 "suffix": "None" | ||||
|               } | ||||
|             }, | ||||
|             "start": 13, | ||||
|             "start": 0, | ||||
|             "type": "MemberExpression", | ||||
|             "type": "MemberExpression" | ||||
|           }, | ||||
|           "start": 9, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 19, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 9, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 20, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
							
								
								
									
										6
									
								
								rust/kcl-lib/tests/array_index_oob/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								rust/kcl-lib/tests/array_index_oob/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing array_index_oob.kcl | ||||
| --- | ||||
| arr = [] | ||||
| x = arr[0] | ||||
| @ -5,11 +5,7 @@ description: Artifact commands array_range_expr.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands array_range_expr.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands array_range_expr.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands array_range_expr.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										21
									
								
								rust/kcl-lib/tests/array_range_expr/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								rust/kcl-lib/tests/array_range_expr/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing array_range_expr.kcl | ||||
| --- | ||||
| r1 = [0..4] | ||||
| assertEqual(r1[4], 4, 0.00001, "last element is included") | ||||
|  | ||||
| four = 4 | ||||
| zero = 0 | ||||
| r2 = [zero..four] | ||||
| assertEqual(r2[4], 4, 0.00001, "last element is included") | ||||
|  | ||||
| five = int(four + 1) | ||||
| r3 = [zero..five] | ||||
| assertEqual(r3[4], 4, 0.00001, "second-to-last element is included") | ||||
| assertEqual(r3[5], 5, 0.00001, "last element is included") | ||||
|  | ||||
| r4 = [int(zero + 1) .. int(five - 1)] | ||||
| assertEqual(r4[0], 1, 0.00001, "first element is 1") | ||||
| assertEqual(r4[2], 3, 0.00001, "second-to-last element is 3") | ||||
| assertEqual(r4[3], 4, 0.00001, "last element is 4") | ||||
| @ -5,11 +5,7 @@ description: Artifact commands array_range_negative_expr.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands array_range_negative_expr.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands array_range_negative_expr.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands array_range_negative_expr.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of parsing array_range_negative_expr.kcl | ||||
| --- | ||||
| { | ||||
| @ -7,19 +7,19 @@ description: Result of parsing array_range_negative_expr.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 19, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 2, | ||||
|             "end": 0, | ||||
|             "name": "xs", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "end": 19, | ||||
|             "end": 0, | ||||
|             "endElement": { | ||||
|               "end": 18, | ||||
|               "end": 0, | ||||
|               "raw": "5", | ||||
|               "start": 17, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -28,14 +28,14 @@ description: Result of parsing array_range_negative_expr.kcl | ||||
|               } | ||||
|             }, | ||||
|             "endInclusive": true, | ||||
|             "start": 5, | ||||
|             "start": 0, | ||||
|             "startElement": { | ||||
|               "arguments": [ | ||||
|                 { | ||||
|                   "argument": { | ||||
|                     "end": 12, | ||||
|                     "end": 0, | ||||
|                     "raw": "5", | ||||
|                     "start": 11, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": { | ||||
| @ -43,21 +43,21 @@ description: Result of parsing array_range_negative_expr.kcl | ||||
|                       "suffix": "None" | ||||
|                     } | ||||
|                   }, | ||||
|                   "end": 12, | ||||
|                   "end": 0, | ||||
|                   "operator": "-", | ||||
|                   "start": 10, | ||||
|                   "start": 0, | ||||
|                   "type": "UnaryExpression", | ||||
|                   "type": "UnaryExpression" | ||||
|                 } | ||||
|               ], | ||||
|               "callee": { | ||||
|                 "end": 9, | ||||
|                 "end": 0, | ||||
|                 "name": "int", | ||||
|                 "start": 6, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "end": 13, | ||||
|               "start": 6, | ||||
|               "end": 0, | ||||
|               "start": 0, | ||||
|               "type": "CallExpression", | ||||
|               "type": "CallExpression" | ||||
|             }, | ||||
| @ -67,30 +67,30 @@ description: Result of parsing array_range_negative_expr.kcl | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 19, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "end": 72, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "arguments": [ | ||||
|             { | ||||
|               "computed": false, | ||||
|               "end": 37, | ||||
|               "end": 0, | ||||
|               "object": { | ||||
|                 "end": 34, | ||||
|                 "end": 0, | ||||
|                 "name": "xs", | ||||
|                 "start": 32, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "property": { | ||||
|                 "end": 36, | ||||
|                 "end": 0, | ||||
|                 "raw": "0", | ||||
|                 "start": 35, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -98,15 +98,15 @@ description: Result of parsing array_range_negative_expr.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "start": 32, | ||||
|               "start": 0, | ||||
|               "type": "MemberExpression", | ||||
|               "type": "MemberExpression" | ||||
|             }, | ||||
|             { | ||||
|               "argument": { | ||||
|                 "end": 41, | ||||
|                 "end": 0, | ||||
|                 "raw": "5", | ||||
|                 "start": 40, | ||||
|                 "start": 0, | ||||
|                 "type": "Literal", | ||||
|                 "type": "Literal", | ||||
|                 "value": { | ||||
| @ -114,16 +114,16 @@ description: Result of parsing array_range_negative_expr.kcl | ||||
|                   "suffix": "None" | ||||
|                 } | ||||
|               }, | ||||
|               "end": 41, | ||||
|               "end": 0, | ||||
|               "operator": "-", | ||||
|               "start": 39, | ||||
|               "start": 0, | ||||
|               "type": "UnaryExpression", | ||||
|               "type": "UnaryExpression" | ||||
|             }, | ||||
|             { | ||||
|               "end": 48, | ||||
|               "end": 0, | ||||
|               "raw": "0.001", | ||||
|               "start": 43, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": { | ||||
| @ -132,31 +132,31 @@ description: Result of parsing array_range_negative_expr.kcl | ||||
|               } | ||||
|             }, | ||||
|             { | ||||
|               "end": 71, | ||||
|               "end": 0, | ||||
|               "raw": "\"first element is -5\"", | ||||
|               "start": 50, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "first element is -5" | ||||
|             } | ||||
|           ], | ||||
|           "callee": { | ||||
|             "end": 31, | ||||
|             "end": 0, | ||||
|             "name": "assertEqual", | ||||
|             "start": 20, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "end": 72, | ||||
|           "start": 20, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "CallExpression", | ||||
|           "type": "CallExpression" | ||||
|         }, | ||||
|         "start": 20, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       } | ||||
|     ], | ||||
|     "end": 73, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -0,0 +1,6 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing array_range_negative_expr.kcl | ||||
| --- | ||||
| xs = [int(-5) .. 5] | ||||
| assertEqual(xs[0], -5, 0.001, "first element is -5") | ||||
| @ -5,11 +5,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       12, | ||||
|       31, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -84,11 +64,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       37, | ||||
|       64, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -104,22 +80,14 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       37, | ||||
|       64, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       37, | ||||
|       64, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -132,22 +100,14 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       37, | ||||
|       64, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       70, | ||||
|       89, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -164,11 +124,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       95, | ||||
|       131, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -185,11 +141,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       137, | ||||
|       171, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -206,11 +158,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       177, | ||||
|       233, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -227,11 +175,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       239, | ||||
|       246, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -239,11 +183,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -259,11 +199,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -273,22 +209,14 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -296,11 +224,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -309,11 +233,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -323,11 +243,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -337,11 +253,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -351,11 +263,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -365,11 +273,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -379,11 +283,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -393,11 +293,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -407,11 +303,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -421,11 +313,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       298, | ||||
|       332, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_fillet_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -437,11 +325,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       383, | ||||
|       410, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -453,22 +337,14 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       383, | ||||
|       410, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       383, | ||||
|       410, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -481,22 +357,14 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       383, | ||||
|       410, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       416, | ||||
|       434, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -513,11 +381,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       440, | ||||
|       459, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -534,11 +398,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       465, | ||||
|       521, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -555,11 +415,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       527, | ||||
|       534, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -567,11 +423,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       548, | ||||
|       578, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -583,11 +435,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       548, | ||||
|       578, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -597,22 +445,14 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       548, | ||||
|       578, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       548, | ||||
|       578, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -620,11 +460,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       548, | ||||
|       578, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -633,11 +469,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       548, | ||||
|       578, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -647,11 +479,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       548, | ||||
|       578, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -661,11 +489,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       548, | ||||
|       578, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -675,11 +499,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       548, | ||||
|       578, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -689,11 +509,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       548, | ||||
|       578, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -703,11 +519,7 @@ description: Artifact commands artifact_graph_example_code1.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       548, | ||||
|       578, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -10,19 +10,11 @@ description: Operations executed artifact_graph_example_code1.kcl | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           26, | ||||
|           30, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       12, | ||||
|       31, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -42,19 +34,11 @@ description: Operations executed artifact_graph_example_code1.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           288, | ||||
|           291, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       260, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -63,11 +47,7 @@ description: Operations executed artifact_graph_example_code1.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         268, | ||||
|         277, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -86,11 +66,7 @@ description: Operations executed artifact_graph_example_code1.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           314, | ||||
|           315, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       }, | ||||
|       "tags": { | ||||
|         "value": { | ||||
| @ -103,19 +79,11 @@ description: Operations executed artifact_graph_example_code1.kcl | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           324, | ||||
|           331, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "fillet", | ||||
|     "sourceRange": [ | ||||
|       298, | ||||
|       332, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -124,11 +92,7 @@ description: Operations executed artifact_graph_example_code1.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         298, | ||||
|         332, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -140,11 +104,7 @@ description: Operations executed artifact_graph_example_code1.kcl | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           359, | ||||
|           369, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       }, | ||||
|       "tag": { | ||||
|         "value": { | ||||
| @ -152,19 +112,11 @@ description: Operations executed artifact_graph_example_code1.kcl | ||||
|           "value": "seg02", | ||||
|           "artifact_id": "[uuid]" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           371, | ||||
|           376, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       345, | ||||
|       377, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -184,19 +136,11 @@ description: Operations executed artifact_graph_example_code1.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           576, | ||||
|           577, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       548, | ||||
|       578, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -205,11 +149,7 @@ description: Operations executed artifact_graph_example_code1.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         556, | ||||
|         565, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
|  | ||||
| @ -13,22 +13,14 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             70, | ||||
|             89, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             95, | ||||
|             131, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 130, | ||||
|             "start": 124, | ||||
| @ -40,11 +32,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             137, | ||||
|             171, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 170, | ||||
|             "start": 164, | ||||
| @ -56,11 +44,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             177, | ||||
|             233, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         } | ||||
| @ -72,11 +56,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 70, | ||||
|                 89, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               -5.0, | ||||
| @ -95,11 +75,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 95, | ||||
|                 131, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               -5.0, | ||||
| @ -123,11 +99,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 137, | ||||
|                 171, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               5.55, | ||||
| @ -151,11 +123,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 177, | ||||
|                 233, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               5.55, | ||||
| @ -174,11 +142,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 239, | ||||
|                 246, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               -5.0, | ||||
| @ -239,11 +203,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|           "tag": null, | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               37, | ||||
|               64, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           } | ||||
|         }, | ||||
|         "tags": { | ||||
| @ -289,33 +249,21 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             416, | ||||
|             434, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             440, | ||||
|             459, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             465, | ||||
|             521, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         } | ||||
| @ -327,11 +275,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 416, | ||||
|                 434, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               -2.0, | ||||
| @ -350,11 +294,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 440, | ||||
|                 459, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               0.0, | ||||
| @ -373,11 +313,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 465, | ||||
|                 521, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               2.0, | ||||
| @ -396,11 +332,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 527, | ||||
|                 534, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               -2.0, | ||||
| @ -445,22 +377,14 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|               { | ||||
|                 "faceId": "[uuid]", | ||||
|                 "id": "[uuid]", | ||||
|                 "sourceRange": [ | ||||
|                   70, | ||||
|                   89, | ||||
|                   0 | ||||
|                 ], | ||||
|                 "sourceRange": [], | ||||
|                 "tag": null, | ||||
|                 "type": "extrudePlane" | ||||
|               }, | ||||
|               { | ||||
|                 "faceId": "[uuid]", | ||||
|                 "id": "[uuid]", | ||||
|                 "sourceRange": [ | ||||
|                   95, | ||||
|                   131, | ||||
|                   0 | ||||
|                 ], | ||||
|                 "sourceRange": [], | ||||
|                 "tag": { | ||||
|                   "end": 130, | ||||
|                   "start": 124, | ||||
| @ -472,11 +396,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|               { | ||||
|                 "faceId": "[uuid]", | ||||
|                 "id": "[uuid]", | ||||
|                 "sourceRange": [ | ||||
|                   137, | ||||
|                   171, | ||||
|                   0 | ||||
|                 ], | ||||
|                 "sourceRange": [], | ||||
|                 "tag": { | ||||
|                   "end": 170, | ||||
|                   "start": 164, | ||||
| @ -488,11 +408,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|               { | ||||
|                 "faceId": "[uuid]", | ||||
|                 "id": "[uuid]", | ||||
|                 "sourceRange": [ | ||||
|                   177, | ||||
|                   233, | ||||
|                   0 | ||||
|                 ], | ||||
|                 "sourceRange": [], | ||||
|                 "tag": null, | ||||
|                 "type": "extrudePlane" | ||||
|               } | ||||
| @ -504,11 +420,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|                 { | ||||
|                   "__geoMeta": { | ||||
|                     "id": "[uuid]", | ||||
|                     "sourceRange": [ | ||||
|                       70, | ||||
|                       89, | ||||
|                       0 | ||||
|                     ] | ||||
|                     "sourceRange": [] | ||||
|                   }, | ||||
|                   "from": [ | ||||
|                     -5.0, | ||||
| @ -527,11 +439,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|                 { | ||||
|                   "__geoMeta": { | ||||
|                     "id": "[uuid]", | ||||
|                     "sourceRange": [ | ||||
|                       95, | ||||
|                       131, | ||||
|                       0 | ||||
|                     ] | ||||
|                     "sourceRange": [] | ||||
|                   }, | ||||
|                   "from": [ | ||||
|                     -5.0, | ||||
| @ -555,11 +463,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|                 { | ||||
|                   "__geoMeta": { | ||||
|                     "id": "[uuid]", | ||||
|                     "sourceRange": [ | ||||
|                       137, | ||||
|                       171, | ||||
|                       0 | ||||
|                     ] | ||||
|                     "sourceRange": [] | ||||
|                   }, | ||||
|                   "from": [ | ||||
|                     5.55, | ||||
| @ -583,11 +487,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|                 { | ||||
|                   "__geoMeta": { | ||||
|                     "id": "[uuid]", | ||||
|                     "sourceRange": [ | ||||
|                       177, | ||||
|                       233, | ||||
|                       0 | ||||
|                     ] | ||||
|                     "sourceRange": [] | ||||
|                   }, | ||||
|                   "from": [ | ||||
|                     5.55, | ||||
| @ -606,11 +506,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|                 { | ||||
|                   "__geoMeta": { | ||||
|                     "id": "[uuid]", | ||||
|                     "sourceRange": [ | ||||
|                       239, | ||||
|                       246, | ||||
|                       0 | ||||
|                     ] | ||||
|                     "sourceRange": [] | ||||
|                   }, | ||||
|                   "from": [ | ||||
|                     -5.0, | ||||
| @ -671,11 +567,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|                 "tag": null, | ||||
|                 "__geoMeta": { | ||||
|                   "id": "[uuid]", | ||||
|                   "sourceRange": [ | ||||
|                     37, | ||||
|                     64, | ||||
|                     0 | ||||
|                   ] | ||||
|                   "sourceRange": [] | ||||
|                 } | ||||
|               }, | ||||
|               "tags": { | ||||
| @ -729,11 +621,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|           "tag": null, | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               383, | ||||
|               410, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           } | ||||
|         }, | ||||
|         "artifactId": "[uuid]", | ||||
| @ -769,11 +657,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               70, | ||||
|               89, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             -5.0, | ||||
| @ -792,11 +676,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               95, | ||||
|               131, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             -5.0, | ||||
| @ -820,11 +700,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               137, | ||||
|               171, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             5.55, | ||||
| @ -848,11 +724,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               177, | ||||
|               233, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             5.55, | ||||
| @ -871,11 +743,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               239, | ||||
|               246, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             -5.0, | ||||
| @ -936,11 +804,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         "tag": null, | ||||
|         "__geoMeta": { | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             37, | ||||
|             64, | ||||
|             0 | ||||
|           ] | ||||
|           "sourceRange": [] | ||||
|         } | ||||
|       }, | ||||
|       "tags": { | ||||
| @ -969,11 +833,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               416, | ||||
|               434, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             -2.0, | ||||
| @ -992,11 +852,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               440, | ||||
|               459, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             0.0, | ||||
| @ -1015,11 +871,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               465, | ||||
|               521, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             2.0, | ||||
| @ -1038,11 +890,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               527, | ||||
|               534, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             -2.0, | ||||
| @ -1087,22 +935,14 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|             { | ||||
|               "faceId": "[uuid]", | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 70, | ||||
|                 89, | ||||
|                 0 | ||||
|               ], | ||||
|               "sourceRange": [], | ||||
|               "tag": null, | ||||
|               "type": "extrudePlane" | ||||
|             }, | ||||
|             { | ||||
|               "faceId": "[uuid]", | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 95, | ||||
|                 131, | ||||
|                 0 | ||||
|               ], | ||||
|               "sourceRange": [], | ||||
|               "tag": { | ||||
|                 "end": 130, | ||||
|                 "start": 124, | ||||
| @ -1114,11 +954,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|             { | ||||
|               "faceId": "[uuid]", | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 137, | ||||
|                 171, | ||||
|                 0 | ||||
|               ], | ||||
|               "sourceRange": [], | ||||
|               "tag": { | ||||
|                 "end": 170, | ||||
|                 "start": 164, | ||||
| @ -1130,11 +966,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|             { | ||||
|               "faceId": "[uuid]", | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 177, | ||||
|                 233, | ||||
|                 0 | ||||
|               ], | ||||
|               "sourceRange": [], | ||||
|               "tag": null, | ||||
|               "type": "extrudePlane" | ||||
|             } | ||||
| @ -1146,11 +978,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|               { | ||||
|                 "__geoMeta": { | ||||
|                   "id": "[uuid]", | ||||
|                   "sourceRange": [ | ||||
|                     70, | ||||
|                     89, | ||||
|                     0 | ||||
|                   ] | ||||
|                   "sourceRange": [] | ||||
|                 }, | ||||
|                 "from": [ | ||||
|                   -5.0, | ||||
| @ -1169,11 +997,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|               { | ||||
|                 "__geoMeta": { | ||||
|                   "id": "[uuid]", | ||||
|                   "sourceRange": [ | ||||
|                     95, | ||||
|                     131, | ||||
|                     0 | ||||
|                   ] | ||||
|                   "sourceRange": [] | ||||
|                 }, | ||||
|                 "from": [ | ||||
|                   -5.0, | ||||
| @ -1197,11 +1021,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|               { | ||||
|                 "__geoMeta": { | ||||
|                   "id": "[uuid]", | ||||
|                   "sourceRange": [ | ||||
|                     137, | ||||
|                     171, | ||||
|                     0 | ||||
|                   ] | ||||
|                   "sourceRange": [] | ||||
|                 }, | ||||
|                 "from": [ | ||||
|                   5.55, | ||||
| @ -1225,11 +1045,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|               { | ||||
|                 "__geoMeta": { | ||||
|                   "id": "[uuid]", | ||||
|                   "sourceRange": [ | ||||
|                     177, | ||||
|                     233, | ||||
|                     0 | ||||
|                   ] | ||||
|                   "sourceRange": [] | ||||
|                 }, | ||||
|                 "from": [ | ||||
|                   5.55, | ||||
| @ -1248,11 +1064,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|               { | ||||
|                 "__geoMeta": { | ||||
|                   "id": "[uuid]", | ||||
|                   "sourceRange": [ | ||||
|                     239, | ||||
|                     246, | ||||
|                     0 | ||||
|                   ] | ||||
|                   "sourceRange": [] | ||||
|                 }, | ||||
|                 "from": [ | ||||
|                   -5.0, | ||||
| @ -1313,11 +1125,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|               "tag": null, | ||||
|               "__geoMeta": { | ||||
|                 "id": "[uuid]", | ||||
|                 "sourceRange": [ | ||||
|                   37, | ||||
|                   64, | ||||
|                   0 | ||||
|                 ] | ||||
|                 "sourceRange": [] | ||||
|               } | ||||
|             }, | ||||
|             "tags": { | ||||
| @ -1371,11 +1179,7 @@ description: Variables in memory after executing artifact_graph_example_code1.kc | ||||
|         "tag": null, | ||||
|         "__geoMeta": { | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             383, | ||||
|             410, | ||||
|             0 | ||||
|           ] | ||||
|           "sourceRange": [] | ||||
|         } | ||||
|       }, | ||||
|       "artifactId": "[uuid]", | ||||
|  | ||||
| @ -0,0 +1,20 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing artifact_graph_example_code1.kcl | ||||
| --- | ||||
| sketch001 = startSketchOn('XY') | ||||
|   |> startProfileAt([-5, -5], %) | ||||
|   |> line(end = [0, 10]) | ||||
|   |> line(end = [10.55, 0], tag = $seg01) | ||||
|   |> line(end = [0, -10], tag = $seg02) | ||||
|   |> line(endAbsolute = [profileStartX(%), profileStartY(%)]) | ||||
|   |> close() | ||||
| extrude001 = extrude(sketch001, length = -10) | ||||
|   |> fillet(radius = 5, tags = [seg01]) | ||||
| sketch002 = startSketchOn(extrude001, seg02) | ||||
|   |> startProfileAt([-2, -6], %) | ||||
|   |> line(end = [2, 3]) | ||||
|   |> line(end = [2, -3]) | ||||
|   |> line(endAbsolute = [profileStartX(%), profileStartY(%)]) | ||||
|   |> close() | ||||
| extrude002 = extrude(sketch002, length = 5) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       12, | ||||
|       31, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -84,11 +64,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       37, | ||||
|       65, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -104,22 +80,14 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       37, | ||||
|       65, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       37, | ||||
|       65, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -132,22 +100,14 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       37, | ||||
|       65, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       71, | ||||
|       121, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -164,11 +124,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       127, | ||||
|       227, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -185,11 +141,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       233, | ||||
|       353, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -206,11 +158,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       359, | ||||
|       415, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -227,11 +175,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       421, | ||||
|       428, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -239,11 +183,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       441, | ||||
|       461, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -268,11 +208,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       467, | ||||
|       496, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -288,22 +224,14 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       467, | ||||
|       496, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       467, | ||||
|       496, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -316,22 +244,14 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       467, | ||||
|       496, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       502, | ||||
|       527, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -348,11 +268,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       533, | ||||
|       559, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -369,11 +285,7 @@ description: Artifact commands artifact_graph_example_code_no_3d.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       565, | ||||
|       597, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
|  | ||||
| @ -7,9 +7,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 428, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 9, | ||||
|             "end": 0, | ||||
|             "name": "sketch003", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -19,22 +19,22 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 30, | ||||
|                     "end": 0, | ||||
|                     "raw": "'YZ'", | ||||
|                     "start": 26, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": "YZ" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 25, | ||||
|                   "end": 0, | ||||
|                   "name": "startSketchOn", | ||||
|                   "start": 12, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 31, | ||||
|                 "start": 12, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -43,9 +43,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 57, | ||||
|                         "end": 0, | ||||
|                         "raw": "5.82", | ||||
|                         "start": 53, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -54,9 +54,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 60, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 59, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -65,26 +65,26 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 61, | ||||
|                     "start": 52, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 64, | ||||
|                     "start": 63, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 51, | ||||
|                   "end": 0, | ||||
|                   "name": "startProfileAt", | ||||
|                   "start": 37, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 65, | ||||
|                 "start": 37, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -93,9 +93,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 86, | ||||
|                         "end": 0, | ||||
|                         "raw": "180", | ||||
|                         "start": 83, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -104,9 +104,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 93, | ||||
|                         "end": 0, | ||||
|                         "raw": "11.54", | ||||
|                         "start": 88, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -115,33 +115,33 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 94, | ||||
|                     "start": 82, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 97, | ||||
|                     "start": 96, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 120, | ||||
|                     "start": 99, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "TagDeclarator", | ||||
|                     "type": "TagDeclarator", | ||||
|                     "value": "rectangleSegmentA001" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 81, | ||||
|                   "end": 0, | ||||
|                   "name": "angledLine", | ||||
|                   "start": 71, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 121, | ||||
|                 "start": 71, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -150,33 +150,33 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 180, | ||||
|                         "end": 0, | ||||
|                         "left": { | ||||
|                           "arguments": [ | ||||
|                             { | ||||
|                               "end": 174, | ||||
|                               "end": 0, | ||||
|                               "name": "rectangleSegmentA001", | ||||
|                               "start": 154, | ||||
|                               "start": 0, | ||||
|                               "type": "Identifier", | ||||
|                               "type": "Identifier" | ||||
|                             } | ||||
|                           ], | ||||
|                           "callee": { | ||||
|                             "end": 153, | ||||
|                             "end": 0, | ||||
|                             "name": "segAng", | ||||
|                             "start": 147, | ||||
|                             "start": 0, | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "end": 175, | ||||
|                           "start": 147, | ||||
|                           "end": 0, | ||||
|                           "start": 0, | ||||
|                           "type": "CallExpression", | ||||
|                           "type": "CallExpression" | ||||
|                         }, | ||||
|                         "operator": "-", | ||||
|                         "right": { | ||||
|                           "end": 180, | ||||
|                           "end": 0, | ||||
|                           "raw": "90", | ||||
|                           "start": 178, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -184,14 +184,14 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                             "suffix": "None" | ||||
|                           } | ||||
|                         }, | ||||
|                         "start": 147, | ||||
|                         "start": 0, | ||||
|                         "type": "BinaryExpression", | ||||
|                         "type": "BinaryExpression" | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 193, | ||||
|                         "end": 0, | ||||
|                         "raw": "8.21", | ||||
|                         "start": 189, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -200,33 +200,33 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 200, | ||||
|                     "start": 138, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 203, | ||||
|                     "start": 202, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 226, | ||||
|                     "start": 205, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "TagDeclarator", | ||||
|                     "type": "TagDeclarator", | ||||
|                     "value": "rectangleSegmentB001" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 137, | ||||
|                   "end": 0, | ||||
|                   "name": "angledLine", | ||||
|                   "start": 127, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 227, | ||||
|                 "start": 127, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -237,21 +237,21 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                       { | ||||
|                         "arguments": [ | ||||
|                           { | ||||
|                             "end": 280, | ||||
|                             "end": 0, | ||||
|                             "name": "rectangleSegmentA001", | ||||
|                             "start": 260, | ||||
|                             "start": 0, | ||||
|                             "type": "Identifier", | ||||
|                             "type": "Identifier" | ||||
|                           } | ||||
|                         ], | ||||
|                         "callee": { | ||||
|                           "end": 259, | ||||
|                           "end": 0, | ||||
|                           "name": "segAng", | ||||
|                           "start": 253, | ||||
|                           "start": 0, | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         "end": 281, | ||||
|                         "start": 253, | ||||
|                         "end": 0, | ||||
|                         "start": 0, | ||||
|                         "type": "CallExpression", | ||||
|                         "type": "CallExpression" | ||||
|                       }, | ||||
| @ -259,58 +259,58 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                         "argument": { | ||||
|                           "arguments": [ | ||||
|                             { | ||||
|                               "end": 318, | ||||
|                               "end": 0, | ||||
|                               "name": "rectangleSegmentA001", | ||||
|                               "start": 298, | ||||
|                               "start": 0, | ||||
|                               "type": "Identifier", | ||||
|                               "type": "Identifier" | ||||
|                             } | ||||
|                           ], | ||||
|                           "callee": { | ||||
|                             "end": 297, | ||||
|                             "end": 0, | ||||
|                             "name": "segLen", | ||||
|                             "start": 291, | ||||
|                             "start": 0, | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "end": 319, | ||||
|                           "start": 291, | ||||
|                           "end": 0, | ||||
|                           "start": 0, | ||||
|                           "type": "CallExpression", | ||||
|                           "type": "CallExpression" | ||||
|                         }, | ||||
|                         "end": 319, | ||||
|                         "end": 0, | ||||
|                         "operator": "-", | ||||
|                         "start": 290, | ||||
|                         "start": 0, | ||||
|                         "type": "UnaryExpression", | ||||
|                         "type": "UnaryExpression" | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 326, | ||||
|                     "start": 244, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 329, | ||||
|                     "start": 328, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 352, | ||||
|                     "start": 331, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "TagDeclarator", | ||||
|                     "type": "TagDeclarator", | ||||
|                     "value": "rectangleSegmentC001" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 243, | ||||
|                   "end": 0, | ||||
|                   "name": "angledLine", | ||||
|                   "start": 233, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 353, | ||||
|                 "start": 233, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -319,9 +319,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 375, | ||||
|                       "end": 0, | ||||
|                       "name": "endAbsolute", | ||||
|                       "start": 364, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
| @ -329,59 +329,59 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                         { | ||||
|                           "arguments": [ | ||||
|                             { | ||||
|                               "end": 394, | ||||
|                               "start": 393, | ||||
|                               "end": 0, | ||||
|                               "start": 0, | ||||
|                               "type": "PipeSubstitution", | ||||
|                               "type": "PipeSubstitution" | ||||
|                             } | ||||
|                           ], | ||||
|                           "callee": { | ||||
|                             "end": 392, | ||||
|                             "end": 0, | ||||
|                             "name": "profileStartX", | ||||
|                             "start": 379, | ||||
|                             "start": 0, | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "end": 395, | ||||
|                           "start": 379, | ||||
|                           "end": 0, | ||||
|                           "start": 0, | ||||
|                           "type": "CallExpression", | ||||
|                           "type": "CallExpression" | ||||
|                         }, | ||||
|                         { | ||||
|                           "arguments": [ | ||||
|                             { | ||||
|                               "end": 412, | ||||
|                               "start": 411, | ||||
|                               "end": 0, | ||||
|                               "start": 0, | ||||
|                               "type": "PipeSubstitution", | ||||
|                               "type": "PipeSubstitution" | ||||
|                             } | ||||
|                           ], | ||||
|                           "callee": { | ||||
|                             "end": 410, | ||||
|                             "end": 0, | ||||
|                             "name": "profileStartY", | ||||
|                             "start": 397, | ||||
|                             "start": 0, | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "end": 413, | ||||
|                           "start": 397, | ||||
|                           "end": 0, | ||||
|                           "start": 0, | ||||
|                           "type": "CallExpression", | ||||
|                           "type": "CallExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 414, | ||||
|                       "start": 378, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 363, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 359, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 415, | ||||
|                 "start": 359, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -389,26 +389,26 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|               { | ||||
|                 "arguments": [], | ||||
|                 "callee": { | ||||
|                   "end": 426, | ||||
|                   "end": 0, | ||||
|                   "name": "close", | ||||
|                   "start": 421, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 428, | ||||
|                 "start": 421, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               } | ||||
|             ], | ||||
|             "end": 428, | ||||
|             "start": 12, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "PipeExpression", | ||||
|             "type": "PipeExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 428, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
| @ -416,11 +416,11 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 597, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 438, | ||||
|             "end": 0, | ||||
|             "name": "sketch004", | ||||
|             "start": 429, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
| @ -428,22 +428,22 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 460, | ||||
|                     "end": 0, | ||||
|                     "raw": "'-XZ'", | ||||
|                     "start": 455, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": "-XZ" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 454, | ||||
|                   "end": 0, | ||||
|                   "name": "startSketchOn", | ||||
|                   "start": 441, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 461, | ||||
|                 "start": 441, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -452,9 +452,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 484, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 483, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -463,9 +463,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 491, | ||||
|                         "end": 0, | ||||
|                         "raw": "14.36", | ||||
|                         "start": 486, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -474,26 +474,26 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 492, | ||||
|                     "start": 482, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 495, | ||||
|                     "start": 494, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 481, | ||||
|                   "end": 0, | ||||
|                   "name": "startProfileAt", | ||||
|                   "start": 467, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 496, | ||||
|                 "start": 467, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -502,17 +502,17 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 510, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 507, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 519, | ||||
|                           "end": 0, | ||||
|                           "raw": "15.49", | ||||
|                           "start": 514, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -521,9 +521,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 525, | ||||
|                           "end": 0, | ||||
|                           "raw": "0.05", | ||||
|                           "start": 521, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -532,21 +532,21 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 526, | ||||
|                       "start": 513, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 506, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 502, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 527, | ||||
|                 "start": 502, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -556,9 +556,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 551, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 550, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -567,9 +567,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 554, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 553, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -578,26 +578,26 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 555, | ||||
|                     "start": 549, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 558, | ||||
|                     "start": 557, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 548, | ||||
|                   "end": 0, | ||||
|                   "name": "tangentialArcTo", | ||||
|                   "start": 533, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 559, | ||||
|                 "start": 533, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -607,9 +607,9 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "argument": { | ||||
|                           "end": 586, | ||||
|                           "end": 0, | ||||
|                           "raw": "6.8", | ||||
|                           "start": 583, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -617,16 +617,16 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                             "suffix": "None" | ||||
|                           } | ||||
|                         }, | ||||
|                         "end": 586, | ||||
|                         "end": 0, | ||||
|                         "operator": "-", | ||||
|                         "start": 582, | ||||
|                         "start": 0, | ||||
|                         "type": "UnaryExpression", | ||||
|                         "type": "UnaryExpression" | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 592, | ||||
|                         "end": 0, | ||||
|                         "raw": "8.17", | ||||
|                         "start": 588, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -635,46 +635,46 @@ description: Result of parsing artifact_graph_example_code_no_3d.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 593, | ||||
|                     "start": 581, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 596, | ||||
|                     "start": 595, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 580, | ||||
|                   "end": 0, | ||||
|                   "name": "tangentialArcTo", | ||||
|                   "start": 565, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 597, | ||||
|                 "start": 565, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               } | ||||
|             ], | ||||
|             "end": 597, | ||||
|             "start": 441, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "PipeExpression", | ||||
|             "type": "PipeExpression" | ||||
|           }, | ||||
|           "start": 429, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 597, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 429, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 598, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Operations executed artifact_graph_example_code_no_3d.kcl | ||||
| --- | ||||
| [ | ||||
| @ -10,19 +10,11 @@ description: Operations executed artifact_graph_example_code_no_3d.kcl | ||||
|           "type": "String", | ||||
|           "value": "YZ" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           26, | ||||
|           30, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       12, | ||||
|       31, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -33,19 +25,11 @@ description: Operations executed artifact_graph_example_code_no_3d.kcl | ||||
|           "type": "String", | ||||
|           "value": "-XZ" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           455, | ||||
|           460, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       441, | ||||
|       461, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   } | ||||
|  | ||||
| @ -27,11 +27,7 @@ description: Variables in memory after executing artifact_graph_example_code_no_ | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               71, | ||||
|               121, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             5.82, | ||||
| @ -55,11 +51,7 @@ description: Variables in memory after executing artifact_graph_example_code_no_ | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               127, | ||||
|               227, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             -5.72, | ||||
| @ -83,11 +75,7 @@ description: Variables in memory after executing artifact_graph_example_code_no_ | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               233, | ||||
|               353, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             -5.72, | ||||
| @ -111,11 +99,7 @@ description: Variables in memory after executing artifact_graph_example_code_no_ | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               359, | ||||
|               415, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             5.82, | ||||
| @ -134,11 +118,7 @@ description: Variables in memory after executing artifact_graph_example_code_no_ | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               421, | ||||
|               428, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             5.82, | ||||
| @ -199,11 +179,7 @@ description: Variables in memory after executing artifact_graph_example_code_no_ | ||||
|         "tag": null, | ||||
|         "__geoMeta": { | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             37, | ||||
|             65, | ||||
|             0 | ||||
|           ] | ||||
|           "sourceRange": [] | ||||
|         } | ||||
|       }, | ||||
|       "tags": { | ||||
| @ -236,11 +212,7 @@ description: Variables in memory after executing artifact_graph_example_code_no_ | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               502, | ||||
|               527, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             0.0, | ||||
| @ -259,11 +231,7 @@ description: Variables in memory after executing artifact_graph_example_code_no_ | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               533, | ||||
|               559, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "ccw": false, | ||||
|           "center": [ | ||||
| @ -287,11 +255,7 @@ description: Variables in memory after executing artifact_graph_example_code_no_ | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               565, | ||||
|               597, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "ccw": true, | ||||
|           "center": [ | ||||
| @ -357,11 +321,7 @@ description: Variables in memory after executing artifact_graph_example_code_no_ | ||||
|         "tag": null, | ||||
|         "__geoMeta": { | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             467, | ||||
|             496, | ||||
|             0 | ||||
|           ] | ||||
|           "sourceRange": [] | ||||
|         } | ||||
|       }, | ||||
|       "artifactId": "[uuid]", | ||||
|  | ||||
| @ -0,0 +1,22 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing artifact_graph_example_code_no_3d.kcl | ||||
| --- | ||||
| sketch003 = startSketchOn('YZ') | ||||
|   |> startProfileAt([5.82, 0], %) | ||||
|   |> angledLine([180, 11.54], %, $rectangleSegmentA001) | ||||
|   |> angledLine([ | ||||
|        segAng(rectangleSegmentA001) - 90, | ||||
|        8.21 | ||||
|      ], %, $rectangleSegmentB001) | ||||
|   |> angledLine([ | ||||
|        segAng(rectangleSegmentA001), | ||||
|        -segLen(rectangleSegmentA001) | ||||
|      ], %, $rectangleSegmentC001) | ||||
|   |> line(endAbsolute = [profileStartX(%), profileStartY(%)]) | ||||
|   |> close() | ||||
| sketch004 = startSketchOn('-XZ') | ||||
|   |> startProfileAt([0, 14.36], %) | ||||
|   |> line(end = [15.49, 0.05]) | ||||
|   |> tangentialArcTo([0, 0], %) | ||||
|   |> tangentialArcTo([-6.8, 8.17], %) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       17, | ||||
|       47, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -84,11 +64,7 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       17, | ||||
|       47, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "plane_set_color", | ||||
|       "plane_id": "[uuid]", | ||||
| @ -102,11 +78,7 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       65, | ||||
|       96, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -131,11 +103,7 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       65, | ||||
|       96, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "plane_set_color", | ||||
|       "plane_id": "[uuid]", | ||||
| @ -149,11 +117,7 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       114, | ||||
|       144, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -178,11 +142,7 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       114, | ||||
|       144, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "plane_set_color", | ||||
|       "plane_id": "[uuid]", | ||||
| @ -196,11 +156,7 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       193, | ||||
|       218, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -216,22 +172,14 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       193, | ||||
|       218, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       193, | ||||
|       218, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -244,22 +192,14 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       193, | ||||
|       218, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       224, | ||||
|       249, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -276,11 +216,7 @@ description: Artifact commands artifact_graph_example_code_offset_planes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       193, | ||||
|       218, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -7,9 +7,9 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 47, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 14, | ||||
|             "end": 0, | ||||
|             "name": "offsetPlane001", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -19,15 +19,15 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|               { | ||||
|                 "type": "LabeledArg", | ||||
|                 "label": { | ||||
|                   "end": 41, | ||||
|                   "end": 0, | ||||
|                   "name": "offset", | ||||
|                   "start": 35, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "arg": { | ||||
|                   "end": 46, | ||||
|                   "end": 0, | ||||
|                   "raw": "20", | ||||
|                   "start": 44, | ||||
|                   "start": 0, | ||||
|                   "type": "Literal", | ||||
|                   "type": "Literal", | ||||
|                   "value": { | ||||
| @ -38,19 +38,19 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 28, | ||||
|               "end": 0, | ||||
|               "name": "offsetPlane", | ||||
|               "start": 17, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 47, | ||||
|             "start": 17, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpressionKw", | ||||
|             "type": "CallExpressionKw", | ||||
|             "unlabeled": { | ||||
|               "end": 33, | ||||
|               "end": 0, | ||||
|               "raw": "\"XY\"", | ||||
|               "start": 29, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "XY" | ||||
| @ -59,7 +59,7 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 47, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
| @ -67,11 +67,11 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 96, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 62, | ||||
|             "end": 0, | ||||
|             "name": "offsetPlane002", | ||||
|             "start": 48, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
| @ -79,16 +79,16 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|               { | ||||
|                 "type": "LabeledArg", | ||||
|                 "label": { | ||||
|                   "end": 89, | ||||
|                   "end": 0, | ||||
|                   "name": "offset", | ||||
|                   "start": 83, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "arg": { | ||||
|                   "argument": { | ||||
|                     "end": 95, | ||||
|                     "end": 0, | ||||
|                     "raw": "50", | ||||
|                     "start": 93, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": { | ||||
| @ -96,49 +96,49 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|                       "suffix": "None" | ||||
|                     } | ||||
|                   }, | ||||
|                   "end": 95, | ||||
|                   "end": 0, | ||||
|                   "operator": "-", | ||||
|                   "start": 92, | ||||
|                   "start": 0, | ||||
|                   "type": "UnaryExpression", | ||||
|                   "type": "UnaryExpression" | ||||
|                 } | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 76, | ||||
|               "end": 0, | ||||
|               "name": "offsetPlane", | ||||
|               "start": 65, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 96, | ||||
|             "start": 65, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpressionKw", | ||||
|             "type": "CallExpressionKw", | ||||
|             "unlabeled": { | ||||
|               "end": 81, | ||||
|               "end": 0, | ||||
|               "raw": "\"XZ\"", | ||||
|               "start": 77, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "XZ" | ||||
|             } | ||||
|           }, | ||||
|           "start": 48, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 96, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 48, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 144, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 111, | ||||
|             "end": 0, | ||||
|             "name": "offsetPlane003", | ||||
|             "start": 97, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
| @ -146,15 +146,15 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|               { | ||||
|                 "type": "LabeledArg", | ||||
|                 "label": { | ||||
|                   "end": 138, | ||||
|                   "end": 0, | ||||
|                   "name": "offset", | ||||
|                   "start": 132, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "arg": { | ||||
|                   "end": 143, | ||||
|                   "end": 0, | ||||
|                   "raw": "10", | ||||
|                   "start": 141, | ||||
|                   "start": 0, | ||||
|                   "type": "Literal", | ||||
|                   "type": "Literal", | ||||
|                   "value": { | ||||
| @ -165,40 +165,40 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 125, | ||||
|               "end": 0, | ||||
|               "name": "offsetPlane", | ||||
|               "start": 114, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 144, | ||||
|             "start": 114, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpressionKw", | ||||
|             "type": "CallExpressionKw", | ||||
|             "unlabeled": { | ||||
|               "end": 130, | ||||
|               "end": 0, | ||||
|               "raw": "\"YZ\"", | ||||
|               "start": 126, | ||||
|               "start": 0, | ||||
|               "type": "Literal", | ||||
|               "type": "Literal", | ||||
|               "value": "YZ" | ||||
|             } | ||||
|           }, | ||||
|           "start": 97, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 144, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 97, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 249, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 155, | ||||
|             "end": 0, | ||||
|             "name": "sketch002", | ||||
|             "start": 146, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
| @ -206,21 +206,21 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 186, | ||||
|                     "end": 0, | ||||
|                     "name": "offsetPlane001", | ||||
|                     "start": 172, | ||||
|                     "start": 0, | ||||
|                     "type": "Identifier", | ||||
|                     "type": "Identifier" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 171, | ||||
|                   "end": 0, | ||||
|                   "name": "startSketchOn", | ||||
|                   "start": 158, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 187, | ||||
|                 "start": 158, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -229,9 +229,9 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 210, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 209, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -240,9 +240,9 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 213, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 212, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -251,26 +251,26 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 214, | ||||
|                     "start": 208, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 217, | ||||
|                     "start": 216, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 207, | ||||
|                   "end": 0, | ||||
|                   "name": "startProfileAt", | ||||
|                   "start": 193, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 218, | ||||
|                 "start": 193, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -279,17 +279,17 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 232, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 229, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 240, | ||||
|                           "end": 0, | ||||
|                           "raw": "6.78", | ||||
|                           "start": 236, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -298,9 +298,9 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 247, | ||||
|                           "end": 0, | ||||
|                           "raw": "15.01", | ||||
|                           "start": 242, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -309,48 +309,48 @@ description: Result of parsing artifact_graph_example_code_offset_planes.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 248, | ||||
|                       "start": 235, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 228, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 224, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 249, | ||||
|                 "start": 224, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
|               } | ||||
|             ], | ||||
|             "end": 249, | ||||
|             "start": 158, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "PipeExpression", | ||||
|             "type": "PipeExpression" | ||||
|           }, | ||||
|           "start": 146, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 249, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 146, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 250, | ||||
|     "end": 0, | ||||
|     "nonCodeMeta": { | ||||
|       "nonCodeNodes": { | ||||
|         "2": [ | ||||
|           { | ||||
|             "end": 146, | ||||
|             "start": 144, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "newLine" | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Operations executed artifact_graph_example_code_offset_planes.kcl | ||||
| --- | ||||
| [ | ||||
| @ -19,30 +19,18 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           44, | ||||
|           46, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "offsetPlane", | ||||
|     "sourceRange": [ | ||||
|       17, | ||||
|       47, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "String", | ||||
|         "value": "XY" | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         29, | ||||
|         33, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -61,30 +49,18 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           92, | ||||
|           95, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "offsetPlane", | ||||
|     "sourceRange": [ | ||||
|       65, | ||||
|       96, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "String", | ||||
|         "value": "XZ" | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         77, | ||||
|         81, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -103,30 +79,18 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           141, | ||||
|           143, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "offsetPlane", | ||||
|     "sourceRange": [ | ||||
|       114, | ||||
|       144, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
|         "type": "String", | ||||
|         "value": "YZ" | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         126, | ||||
|         130, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -136,19 +100,11 @@ description: Operations executed artifact_graph_example_code_offset_planes.kcl | ||||
|           "type": "Plane", | ||||
|           "artifact_id": "[uuid]" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           172, | ||||
|           186, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       158, | ||||
|       187, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   } | ||||
|  | ||||
| @ -105,11 +105,7 @@ description: Variables in memory after executing artifact_graph_example_code_off | ||||
|         { | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               224, | ||||
|               249, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           }, | ||||
|           "from": [ | ||||
|             0.0, | ||||
| @ -170,11 +166,7 @@ description: Variables in memory after executing artifact_graph_example_code_off | ||||
|         "tag": null, | ||||
|         "__geoMeta": { | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             193, | ||||
|             218, | ||||
|             0 | ||||
|           ] | ||||
|           "sourceRange": [] | ||||
|         } | ||||
|       }, | ||||
|       "artifactId": "[uuid]", | ||||
|  | ||||
| @ -0,0 +1,11 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing artifact_graph_example_code_offset_planes.kcl | ||||
| --- | ||||
| offsetPlane001 = offsetPlane("XY", offset = 20) | ||||
| offsetPlane002 = offsetPlane("XZ", offset = -50) | ||||
| offsetPlane003 = offsetPlane("YZ", offset = 10) | ||||
|  | ||||
| sketch002 = startSketchOn(offsetPlane001) | ||||
|   |> startProfileAt([0, 0], %) | ||||
|   |> line(end = [6.78, 15.01]) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       12, | ||||
|       31, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -84,11 +64,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       37, | ||||
|       62, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -104,22 +80,14 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       37, | ||||
|       62, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       37, | ||||
|       62, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -132,22 +100,14 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       37, | ||||
|       62, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       68, | ||||
|       86, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -164,11 +124,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       92, | ||||
|       125, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -185,11 +141,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       131, | ||||
|       187, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -206,11 +158,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       193, | ||||
|       200, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -218,11 +166,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       214, | ||||
|       244, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -238,11 +182,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       214, | ||||
|       244, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -252,22 +192,14 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       214, | ||||
|       244, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       214, | ||||
|       244, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -275,11 +207,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       214, | ||||
|       244, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -288,11 +216,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       214, | ||||
|       244, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -302,11 +226,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       214, | ||||
|       244, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -316,11 +236,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       214, | ||||
|       244, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -330,11 +246,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       214, | ||||
|       244, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -344,11 +256,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       214, | ||||
|       244, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -358,11 +266,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       214, | ||||
|       244, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -372,11 +276,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       295, | ||||
|       325, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -388,22 +288,14 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       295, | ||||
|       325, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       295, | ||||
|       325, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -416,22 +308,14 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       295, | ||||
|       325, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       331, | ||||
|       349, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -448,11 +332,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       355, | ||||
|       374, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -469,11 +349,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       380, | ||||
|       436, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -490,11 +366,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       442, | ||||
|       449, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -502,11 +374,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       463, | ||||
|       493, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -518,11 +386,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       463, | ||||
|       493, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -532,22 +396,14 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       463, | ||||
|       493, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       463, | ||||
|       493, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -555,11 +411,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       463, | ||||
|       493, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -568,11 +420,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       463, | ||||
|       493, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -582,11 +430,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       463, | ||||
|       493, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -596,11 +440,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       463, | ||||
|       493, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -610,11 +450,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       463, | ||||
|       493, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -624,11 +460,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       463, | ||||
|       493, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -638,11 +470,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       463, | ||||
|       493, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -652,11 +480,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       544, | ||||
|       571, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -668,22 +492,14 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       544, | ||||
|       571, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       544, | ||||
|       571, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -696,22 +512,14 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       544, | ||||
|       571, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       577, | ||||
|       611, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -728,11 +536,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       617, | ||||
|       636, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -749,11 +553,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       642, | ||||
|       698, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -770,11 +570,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       704, | ||||
|       711, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -782,11 +578,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       725, | ||||
|       755, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -798,11 +590,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       725, | ||||
|       755, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -812,22 +600,14 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       725, | ||||
|       755, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       725, | ||||
|       755, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -835,11 +615,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       725, | ||||
|       755, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -848,11 +624,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       725, | ||||
|       755, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -862,11 +634,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       725, | ||||
|       755, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -876,11 +644,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       725, | ||||
|       755, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -890,11 +654,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       725, | ||||
|       755, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -904,11 +664,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       725, | ||||
|       755, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -918,11 +674,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       725, | ||||
|       755, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -932,11 +684,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       806, | ||||
|       833, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -948,22 +696,14 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       806, | ||||
|       833, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       806, | ||||
|       833, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -976,22 +716,14 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       806, | ||||
|       833, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       839, | ||||
|       859, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -1008,11 +740,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       865, | ||||
|       886, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -1029,11 +757,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       892, | ||||
|       948, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -1050,11 +774,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       954, | ||||
|       961, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -1062,11 +782,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       975, | ||||
|       1005, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -1078,11 +794,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       975, | ||||
|       1005, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -1092,22 +804,14 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       975, | ||||
|       1005, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       975, | ||||
|       1005, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -1115,11 +819,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       975, | ||||
|       1005, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -1128,11 +828,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       975, | ||||
|       1005, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -1142,11 +838,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       975, | ||||
|       1005, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -1156,11 +848,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       975, | ||||
|       1005, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -1170,11 +858,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       975, | ||||
|       1005, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -1184,11 +868,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       975, | ||||
|       1005, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -1198,11 +878,7 @@ description: Artifact commands artifact_graph_sketch_on_face_etc.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       975, | ||||
|       1005, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -1,5 +1,5 @@ | ||||
| --- | ||||
| source: kcl/src/simulation_tests.rs | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
| --- | ||||
| [ | ||||
| @ -10,19 +10,11 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|           "type": "String", | ||||
|           "value": "XZ" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           26, | ||||
|           30, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       12, | ||||
|       31, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -42,19 +34,11 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           242, | ||||
|           243, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       214, | ||||
|       244, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -63,11 +47,7 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         222, | ||||
|         231, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -79,11 +59,7 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           271, | ||||
|           281, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       }, | ||||
|       "tag": { | ||||
|         "value": { | ||||
| @ -91,19 +67,11 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|           "value": "seg01", | ||||
|           "artifact_id": "[uuid]" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           283, | ||||
|           288, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       257, | ||||
|       289, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -123,19 +91,11 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           491, | ||||
|           492, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       463, | ||||
|       493, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -144,11 +104,7 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         471, | ||||
|         480, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -160,30 +116,18 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           520, | ||||
|           530, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       }, | ||||
|       "tag": { | ||||
|         "value": { | ||||
|           "type": "String", | ||||
|           "value": "END" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           532, | ||||
|           537, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       506, | ||||
|       538, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -203,19 +147,11 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           753, | ||||
|           754, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       725, | ||||
|       755, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -224,11 +160,7 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         733, | ||||
|         742, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -240,11 +172,7 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|             "artifactId": "[uuid]" | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           782, | ||||
|           792, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       }, | ||||
|       "tag": { | ||||
|         "value": { | ||||
| @ -252,19 +180,11 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|           "value": "seg02", | ||||
|           "artifact_id": "[uuid]" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           794, | ||||
|           799, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       768, | ||||
|       800, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -284,19 +204,11 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           1003, | ||||
|           1004, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       975, | ||||
|       1005, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -305,11 +217,7 @@ description: Operations executed artifact_graph_sketch_on_face_etc.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         983, | ||||
|         992, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
|  | ||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing artifact_graph_sketch_on_face_etc.kcl | ||||
| --- | ||||
| sketch001 = startSketchOn('XZ') | ||||
|   |> startProfileAt([0, 0], %) | ||||
|   |> line(end = [4, 8]) | ||||
|   |> line(end = [5, -8], tag = $seg01) | ||||
|   |> line(endAbsolute = [profileStartX(%), profileStartY(%)]) | ||||
|   |> close() | ||||
| extrude001 = extrude(sketch001, length = 6) | ||||
| sketch002 = startSketchOn(extrude001, seg01) | ||||
|   |> startProfileAt([-0.5, 0.5], %) | ||||
|   |> line(end = [2, 5]) | ||||
|   |> line(end = [2, -5]) | ||||
|   |> line(endAbsolute = [profileStartX(%), profileStartY(%)]) | ||||
|   |> close() | ||||
| extrude002 = extrude(sketch002, length = 5) | ||||
| sketch003 = startSketchOn(extrude002, 'END') | ||||
|   |> startProfileAt([1, 1.5], %) | ||||
|   |> line(end = [0.5, 2], tag = $seg02) | ||||
|   |> line(end = [1, -2]) | ||||
|   |> line(endAbsolute = [profileStartX(%), profileStartY(%)]) | ||||
|   |> close() | ||||
| extrude003 = extrude(sketch003, length = 4) | ||||
| sketch004 = startSketchOn(extrude003, seg02) | ||||
|   |> startProfileAt([-3, 14], %) | ||||
|   |> line(end = [0.5, 1]) | ||||
|   |> line(end = [0.5, -2]) | ||||
|   |> line(endAbsolute = [profileStartX(%), profileStartY(%)]) | ||||
|   |> close() | ||||
| extrude004 = extrude(sketch004, length = 3) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       33, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "in" | ||||
| @ -67,11 +47,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       33, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "in" | ||||
| @ -79,11 +55,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       48, | ||||
|       67, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -108,11 +80,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       77, | ||||
|       114, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -128,22 +96,14 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       77, | ||||
|       114, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       77, | ||||
|       114, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -156,22 +116,14 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       77, | ||||
|       114, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       120, | ||||
|       137, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -188,11 +140,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       143, | ||||
|       161, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -209,11 +157,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       167, | ||||
|       185, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -230,11 +174,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       191, | ||||
|       247, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -251,11 +191,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       253, | ||||
|       260, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -263,11 +199,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -283,11 +215,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -297,22 +225,14 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -320,11 +240,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -333,11 +249,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -347,11 +259,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -361,11 +269,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -375,11 +279,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -389,11 +289,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -403,11 +299,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -417,11 +309,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -431,11 +319,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -445,11 +329,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       33, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -457,11 +337,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       48, | ||||
|       67, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -486,11 +362,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       77, | ||||
|       112, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -506,22 +378,14 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       77, | ||||
|       112, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       77, | ||||
|       112, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -534,22 +398,14 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       77, | ||||
|       112, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       118, | ||||
|       135, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -566,11 +422,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       141, | ||||
|       159, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -587,11 +439,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       165, | ||||
|       183, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -608,11 +456,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       189, | ||||
|       245, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -629,11 +473,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       251, | ||||
|       258, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -641,11 +481,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -661,11 +497,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -675,22 +507,14 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -698,11 +522,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -711,11 +531,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -725,11 +541,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -739,11 +551,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -753,11 +561,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -767,11 +571,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -781,11 +581,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -795,11 +591,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -809,11 +601,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -823,11 +611,7 @@ description: Artifact commands assembly_mixed_units_cubes.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "in" | ||||
|  | ||||
| @ -6,7 +6,7 @@ description: Result of parsing assembly_mixed_units_cubes.kcl | ||||
|   "Ok": { | ||||
|     "body": [ | ||||
|       { | ||||
|         "end": 70, | ||||
|         "end": 0, | ||||
|         "path": { | ||||
|           "type": "Kcl", | ||||
|           "filename": "cube-inches.kcl" | ||||
| @ -14,18 +14,18 @@ description: Result of parsing assembly_mixed_units_cubes.kcl | ||||
|         "selector": { | ||||
|           "type": "None", | ||||
|           "alias": { | ||||
|             "end": 70, | ||||
|             "end": 0, | ||||
|             "name": "cubeIn", | ||||
|             "start": 64, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           } | ||||
|         }, | ||||
|         "start": 36, | ||||
|         "start": 0, | ||||
|         "type": "ImportStatement", | ||||
|         "type": "ImportStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 101, | ||||
|         "end": 0, | ||||
|         "path": { | ||||
|           "type": "Kcl", | ||||
|           "filename": "cube-mm.kcl" | ||||
| @ -33,68 +33,68 @@ description: Result of parsing assembly_mixed_units_cubes.kcl | ||||
|         "selector": { | ||||
|           "type": "None", | ||||
|           "alias": { | ||||
|             "end": 101, | ||||
|             "end": 0, | ||||
|             "name": "cubeMm", | ||||
|             "start": 95, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           } | ||||
|         }, | ||||
|         "start": 71, | ||||
|         "start": 0, | ||||
|         "type": "ImportStatement", | ||||
|         "type": "ImportStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 109, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "end": 109, | ||||
|           "end": 0, | ||||
|           "name": "cubeIn", | ||||
|           "start": 103, | ||||
|           "start": 0, | ||||
|           "type": "Identifier", | ||||
|           "type": "Identifier" | ||||
|         }, | ||||
|         "start": 103, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 116, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "end": 116, | ||||
|           "end": 0, | ||||
|           "name": "cubeMm", | ||||
|           "start": 110, | ||||
|           "start": 0, | ||||
|           "type": "Identifier", | ||||
|           "type": "Identifier" | ||||
|         }, | ||||
|         "start": 110, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       } | ||||
|     ], | ||||
|     "end": 117, | ||||
|     "end": 0, | ||||
|     "innerAttrs": [ | ||||
|       { | ||||
|         "end": 33, | ||||
|         "end": 0, | ||||
|         "name": { | ||||
|           "end": 9, | ||||
|           "end": 0, | ||||
|           "name": "settings", | ||||
|           "start": 1, | ||||
|           "start": 0, | ||||
|           "type": "Identifier" | ||||
|         }, | ||||
|         "properties": [ | ||||
|           { | ||||
|             "end": 32, | ||||
|             "end": 0, | ||||
|             "key": { | ||||
|               "end": 27, | ||||
|               "end": 0, | ||||
|               "name": "defaultLengthUnit", | ||||
|               "start": 10, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "start": 10, | ||||
|             "start": 0, | ||||
|             "type": "ObjectProperty", | ||||
|             "value": { | ||||
|               "end": 32, | ||||
|               "end": 0, | ||||
|               "name": "in", | ||||
|               "start": 30, | ||||
|               "start": 0, | ||||
|               "type": "Identifier", | ||||
|               "type": "Identifier" | ||||
|             } | ||||
| @ -108,8 +108,8 @@ description: Result of parsing assembly_mixed_units_cubes.kcl | ||||
|       "nonCodeNodes": { | ||||
|         "1": [ | ||||
|           { | ||||
|             "end": 103, | ||||
|             "start": 101, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "newLine" | ||||
| @ -119,8 +119,8 @@ description: Result of parsing assembly_mixed_units_cubes.kcl | ||||
|       }, | ||||
|       "startNodes": [ | ||||
|         { | ||||
|           "end": 36, | ||||
|           "start": 33, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "NonCodeNode", | ||||
|           "value": { | ||||
|             "type": "newLine" | ||||
|  | ||||
| @ -10,19 +10,11 @@ description: Operations executed assembly_mixed_units_cubes.kcl | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           62, | ||||
|           66, | ||||
|           3 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       48, | ||||
|       67, | ||||
|       3 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -42,19 +34,11 @@ description: Operations executed assembly_mixed_units_cubes.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           286, | ||||
|           287, | ||||
|           3 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       266, | ||||
|       288, | ||||
|       3 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -63,11 +47,7 @@ description: Operations executed assembly_mixed_units_cubes.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         274, | ||||
|         275, | ||||
|         3 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -77,19 +57,11 @@ description: Operations executed assembly_mixed_units_cubes.kcl | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           62, | ||||
|           66, | ||||
|           4 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       48, | ||||
|       67, | ||||
|       4 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -109,19 +81,11 @@ description: Operations executed assembly_mixed_units_cubes.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           284, | ||||
|           285, | ||||
|           4 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       264, | ||||
|       286, | ||||
|       4 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -130,11 +94,7 @@ description: Operations executed assembly_mixed_units_cubes.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         272, | ||||
|         273, | ||||
|         4 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
|  | ||||
							
								
								
									
										12
									
								
								rust/kcl-lib/tests/assembly_mixed_units_cubes/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								rust/kcl-lib/tests/assembly_mixed_units_cubes/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing assembly_mixed_units_cubes.kcl | ||||
| --- | ||||
| @settings(defaultLengthUnit = in) | ||||
|  | ||||
|  | ||||
| import "cube-inches.kcl" as cubeIn | ||||
| import "cube-mm.kcl" as cubeMm | ||||
|  | ||||
| cubeIn | ||||
| cubeMm | ||||
| @ -0,0 +1,15 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing tests/assembly_mixed_units_cubes/cube-inches.kcl | ||||
| --- | ||||
| @settings(defaultLengthUnit = in) | ||||
|  | ||||
|  | ||||
| sketch001 = startSketchOn('XY') | ||||
| cubeIn = startProfileAt([-10, -10], sketch001) | ||||
|   |> xLine(length = 5) | ||||
|   |> yLine(length = -5) | ||||
|   |> xLine(length = -5) | ||||
|   |> line(endAbsolute = [profileStartX(%), profileStartY(%)]) | ||||
|   |> close() | ||||
|   |> extrude(%, length = 5) | ||||
| @ -0,0 +1,15 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing tests/assembly_mixed_units_cubes/cube-mm.kcl | ||||
| --- | ||||
| @settings(defaultLengthUnit = mm) | ||||
|  | ||||
|  | ||||
| sketch001 = startSketchOn('XY') | ||||
| cubeMm = startProfileAt([10, 10], sketch001) | ||||
|   |> xLine(length = 5) | ||||
|   |> yLine(length = -5) | ||||
|   |> xLine(length = -5) | ||||
|   |> line(endAbsolute = [profileStartX(%), profileStartY(%)]) | ||||
|   |> close() | ||||
|   |> extrude(%, length = 5) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       33, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "in" | ||||
| @ -67,11 +47,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       33, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "in" | ||||
| @ -79,11 +55,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       173, | ||||
|       192, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -108,11 +80,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       198, | ||||
|       233, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -128,22 +96,14 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       198, | ||||
|       233, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       198, | ||||
|       233, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -156,22 +116,14 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       198, | ||||
|       233, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       198, | ||||
|       233, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -196,11 +148,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       198, | ||||
|       233, | ||||
|       3 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -208,11 +156,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       33, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "in" | ||||
| @ -220,11 +164,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       89, | ||||
|       108, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -249,11 +189,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       114, | ||||
|       149, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -269,22 +205,14 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       114, | ||||
|       149, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       114, | ||||
|       149, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -297,22 +225,14 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       114, | ||||
|       149, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       114, | ||||
|       149, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -337,11 +257,7 @@ description: Artifact commands assembly_non_default_units.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       114, | ||||
|       149, | ||||
|       4 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
|  | ||||
| @ -6,7 +6,7 @@ description: Result of parsing assembly_non_default_units.kcl | ||||
|   "Ok": { | ||||
|     "body": [ | ||||
|       { | ||||
|         "end": 172, | ||||
|         "end": 0, | ||||
|         "path": { | ||||
|           "type": "Kcl", | ||||
|           "filename": "other1.kcl" | ||||
| @ -15,12 +15,12 @@ description: Result of parsing assembly_non_default_units.kcl | ||||
|           "type": "None", | ||||
|           "alias": null | ||||
|         }, | ||||
|         "start": 153, | ||||
|         "start": 0, | ||||
|         "type": "ImportStatement", | ||||
|         "type": "ImportStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 192, | ||||
|         "end": 0, | ||||
|         "path": { | ||||
|           "type": "Kcl", | ||||
|           "filename": "other2.kcl" | ||||
| @ -29,62 +29,62 @@ description: Result of parsing assembly_non_default_units.kcl | ||||
|           "type": "None", | ||||
|           "alias": null | ||||
|         }, | ||||
|         "start": 173, | ||||
|         "start": 0, | ||||
|         "type": "ImportStatement", | ||||
|         "type": "ImportStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 200, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "end": 200, | ||||
|           "end": 0, | ||||
|           "name": "other1", | ||||
|           "start": 194, | ||||
|           "start": 0, | ||||
|           "type": "Identifier", | ||||
|           "type": "Identifier" | ||||
|         }, | ||||
|         "start": 194, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       }, | ||||
|       { | ||||
|         "end": 207, | ||||
|         "end": 0, | ||||
|         "expression": { | ||||
|           "end": 207, | ||||
|           "end": 0, | ||||
|           "name": "other2", | ||||
|           "start": 201, | ||||
|           "start": 0, | ||||
|           "type": "Identifier", | ||||
|           "type": "Identifier" | ||||
|         }, | ||||
|         "start": 201, | ||||
|         "start": 0, | ||||
|         "type": "ExpressionStatement", | ||||
|         "type": "ExpressionStatement" | ||||
|       } | ||||
|     ], | ||||
|     "end": 208, | ||||
|     "end": 0, | ||||
|     "innerAttrs": [ | ||||
|       { | ||||
|         "end": 33, | ||||
|         "end": 0, | ||||
|         "name": { | ||||
|           "end": 9, | ||||
|           "end": 0, | ||||
|           "name": "settings", | ||||
|           "start": 1, | ||||
|           "start": 0, | ||||
|           "type": "Identifier" | ||||
|         }, | ||||
|         "properties": [ | ||||
|           { | ||||
|             "end": 32, | ||||
|             "end": 0, | ||||
|             "key": { | ||||
|               "end": 27, | ||||
|               "end": 0, | ||||
|               "name": "defaultLengthUnit", | ||||
|               "start": 10, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "start": 10, | ||||
|             "start": 0, | ||||
|             "type": "ObjectProperty", | ||||
|             "value": { | ||||
|               "end": 32, | ||||
|               "end": 0, | ||||
|               "name": "in", | ||||
|               "start": 30, | ||||
|               "start": 0, | ||||
|               "type": "Identifier", | ||||
|               "type": "Identifier" | ||||
|             } | ||||
| @ -98,8 +98,8 @@ description: Result of parsing assembly_non_default_units.kcl | ||||
|       "nonCodeNodes": { | ||||
|         "1": [ | ||||
|           { | ||||
|             "end": 194, | ||||
|             "start": 192, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "newLine" | ||||
| @ -109,16 +109,16 @@ description: Result of parsing assembly_non_default_units.kcl | ||||
|       }, | ||||
|       "startNodes": [ | ||||
|         { | ||||
|           "end": 36, | ||||
|           "start": 33, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "NonCodeNode", | ||||
|           "value": { | ||||
|             "type": "newLine" | ||||
|           } | ||||
|         }, | ||||
|         { | ||||
|           "end": 87, | ||||
|           "start": 36, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "NonCodeNode", | ||||
|           "value": { | ||||
|             "type": "blockComment", | ||||
| @ -127,8 +127,8 @@ description: Result of parsing assembly_non_default_units.kcl | ||||
|           } | ||||
|         }, | ||||
|         { | ||||
|           "end": 152, | ||||
|           "start": 88, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "NonCodeNode", | ||||
|           "value": { | ||||
|             "type": "blockComment", | ||||
|  | ||||
| @ -10,19 +10,11 @@ description: Operations executed assembly_non_default_units.kcl | ||||
|           "type": "String", | ||||
|           "value": "XZ" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           187, | ||||
|           191, | ||||
|           3 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       173, | ||||
|       192, | ||||
|       3 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -33,19 +25,11 @@ description: Operations executed assembly_non_default_units.kcl | ||||
|           "type": "String", | ||||
|           "value": "XZ" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           103, | ||||
|           107, | ||||
|           4 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       89, | ||||
|       108, | ||||
|       4 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   } | ||||
|  | ||||
							
								
								
									
										14
									
								
								rust/kcl-lib/tests/assembly_non_default_units/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								rust/kcl-lib/tests/assembly_non_default_units/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,14 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing assembly_non_default_units.kcl | ||||
| --- | ||||
| @settings(defaultLengthUnit = in) | ||||
|  | ||||
|  | ||||
| // Use a default unit that isn't the default of mm. | ||||
| // This should look like two circles barely touching each other. | ||||
| import "other1.kcl" | ||||
| import "other2.kcl" | ||||
|  | ||||
| other1 | ||||
| other2 | ||||
| @ -0,0 +1,8 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing tests/assembly_non_default_units/globals.kcl | ||||
| --- | ||||
| @settings(defaultLengthUnit = in) | ||||
|  | ||||
|  | ||||
| export radius = 1 | ||||
| @ -0,0 +1,13 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing tests/assembly_non_default_units/other1.kcl | ||||
| --- | ||||
| @settings(defaultLengthUnit = in) | ||||
|  | ||||
|  | ||||
| // This is not used, but it triggers the problem. | ||||
| import radius from "globals.kcl" | ||||
|  | ||||
| // Use the same units as in the main importing file. | ||||
| startSketchOn('XZ') | ||||
|   |> circle(center = [0, 0], radius = 1) | ||||
| @ -0,0 +1,10 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing tests/assembly_non_default_units/other2.kcl | ||||
| --- | ||||
| @settings(defaultLengthUnit = in) | ||||
|  | ||||
|  | ||||
| // Use the same units as in the main importing file. | ||||
| startSketchOn('XZ') | ||||
|   |> circle(center = [0, 2], radius = 1) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands bad_units_in_annotation.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands bad_units_in_annotation.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands bad_units_in_annotation.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands bad_units_in_annotation.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -7,17 +7,17 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 143, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 135, | ||||
|             "end": 0, | ||||
|             "name": "oxygenRadius", | ||||
|             "start": 123, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "end": 143, | ||||
|             "end": 0, | ||||
|             "raw": "0.066", | ||||
|             "start": 138, | ||||
|             "start": 0, | ||||
|             "type": "Literal", | ||||
|             "type": "Literal", | ||||
|             "value": { | ||||
| @ -25,28 +25,28 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|               "suffix": "None" | ||||
|             } | ||||
|           }, | ||||
|           "start": 123, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 143, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 123, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 206, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 198, | ||||
|             "end": 0, | ||||
|             "name": "hydrogenRadius", | ||||
|             "start": 184, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "end": 206, | ||||
|             "end": 0, | ||||
|             "raw": "0.053", | ||||
|             "start": 201, | ||||
|             "start": 0, | ||||
|             "type": "Literal", | ||||
|             "type": "Literal", | ||||
|             "value": { | ||||
| @ -54,28 +54,28 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|               "suffix": "None" | ||||
|             } | ||||
|           }, | ||||
|           "start": 184, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 206, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 184, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 278, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 270, | ||||
|             "end": 0, | ||||
|             "name": "oxygenHydrogenDistance", | ||||
|             "start": 248, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "end": 278, | ||||
|             "end": 0, | ||||
|             "raw": "0.096", | ||||
|             "start": 273, | ||||
|             "start": 0, | ||||
|             "type": "Literal", | ||||
|             "type": "Literal", | ||||
|             "value": { | ||||
| @ -83,28 +83,28 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|               "suffix": "None" | ||||
|             } | ||||
|           }, | ||||
|           "start": 248, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 278, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 248, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 354, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 346, | ||||
|             "end": 0, | ||||
|             "name": "bondAngle", | ||||
|             "start": 337, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "end": 354, | ||||
|             "end": 0, | ||||
|             "raw": "104.5", | ||||
|             "start": 349, | ||||
|             "start": 0, | ||||
|             "type": "Literal", | ||||
|             "type": "Literal", | ||||
|             "value": { | ||||
| @ -112,22 +112,22 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|               "suffix": "None" | ||||
|             } | ||||
|           }, | ||||
|           "start": 337, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 354, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 337, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 580, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 447, | ||||
|             "end": 0, | ||||
|             "name": "createAtom", | ||||
|             "start": 437, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
| @ -139,22 +139,22 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|                       { | ||||
|                         "arguments": [ | ||||
|                           { | ||||
|                             "end": 493, | ||||
|                             "end": 0, | ||||
|                             "raw": "'XY'", | ||||
|                             "start": 489, | ||||
|                             "start": 0, | ||||
|                             "type": "Literal", | ||||
|                             "type": "Literal", | ||||
|                             "value": "XY" | ||||
|                           } | ||||
|                         ], | ||||
|                         "callee": { | ||||
|                           "end": 488, | ||||
|                           "end": 0, | ||||
|                           "name": "startSketchOn", | ||||
|                           "start": 475, | ||||
|                           "start": 0, | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         "end": 494, | ||||
|                         "start": 475, | ||||
|                         "end": 0, | ||||
|                         "start": 0, | ||||
|                         "type": "CallExpression", | ||||
|                         "type": "CallExpression" | ||||
|                       }, | ||||
| @ -163,15 +163,15 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|                           { | ||||
|                             "type": "LabeledArg", | ||||
|                             "label": { | ||||
|                               "end": 515, | ||||
|                               "end": 0, | ||||
|                               "name": "center", | ||||
|                               "start": 509, | ||||
|                               "start": 0, | ||||
|                               "type": "Identifier" | ||||
|                             }, | ||||
|                             "arg": { | ||||
|                               "end": 524, | ||||
|                               "end": 0, | ||||
|                               "name": "center", | ||||
|                               "start": 518, | ||||
|                               "start": 0, | ||||
|                               "type": "Identifier", | ||||
|                               "type": "Identifier" | ||||
|                             } | ||||
| @ -179,28 +179,28 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|                           { | ||||
|                             "type": "LabeledArg", | ||||
|                             "label": { | ||||
|                               "end": 532, | ||||
|                               "end": 0, | ||||
|                               "name": "radius", | ||||
|                               "start": 526, | ||||
|                               "start": 0, | ||||
|                               "type": "Identifier" | ||||
|                             }, | ||||
|                             "arg": { | ||||
|                               "end": 541, | ||||
|                               "end": 0, | ||||
|                               "name": "radius", | ||||
|                               "start": 535, | ||||
|                               "start": 0, | ||||
|                               "type": "Identifier", | ||||
|                               "type": "Identifier" | ||||
|                             } | ||||
|                           } | ||||
|                         ], | ||||
|                         "callee": { | ||||
|                           "end": 508, | ||||
|                           "end": 0, | ||||
|                           "name": "circle", | ||||
|                           "start": 502, | ||||
|                           "start": 0, | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         "end": 542, | ||||
|                         "start": 502, | ||||
|                         "end": 0, | ||||
|                         "start": 0, | ||||
|                         "type": "CallExpressionKw", | ||||
|                         "type": "CallExpressionKw", | ||||
|                         "unlabeled": null | ||||
| @ -210,25 +210,25 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|                           { | ||||
|                             "type": "LabeledArg", | ||||
|                             "label": { | ||||
|                               "end": 564, | ||||
|                               "end": 0, | ||||
|                               "name": "length", | ||||
|                               "start": 558, | ||||
|                               "start": 0, | ||||
|                               "type": "Identifier" | ||||
|                             }, | ||||
|                             "arg": { | ||||
|                               "end": 577, | ||||
|                               "end": 0, | ||||
|                               "left": { | ||||
|                                 "end": 573, | ||||
|                                 "end": 0, | ||||
|                                 "name": "radius", | ||||
|                                 "start": 567, | ||||
|                                 "start": 0, | ||||
|                                 "type": "Identifier", | ||||
|                                 "type": "Identifier" | ||||
|                               }, | ||||
|                               "operator": "*", | ||||
|                               "right": { | ||||
|                                 "end": 577, | ||||
|                                 "end": 0, | ||||
|                                 "raw": "2", | ||||
|                                 "start": 576, | ||||
|                                 "start": 0, | ||||
|                                 "type": "Literal", | ||||
|                                 "type": "Literal", | ||||
|                                 "value": { | ||||
| @ -236,80 +236,80 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|                                   "suffix": "None" | ||||
|                                 } | ||||
|                               }, | ||||
|                               "start": 567, | ||||
|                               "start": 0, | ||||
|                               "type": "BinaryExpression", | ||||
|                               "type": "BinaryExpression" | ||||
|                             } | ||||
|                           } | ||||
|                         ], | ||||
|                         "callee": { | ||||
|                           "end": 557, | ||||
|                           "end": 0, | ||||
|                           "name": "extrude", | ||||
|                           "start": 550, | ||||
|                           "start": 0, | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         "end": 578, | ||||
|                         "start": 550, | ||||
|                         "end": 0, | ||||
|                         "start": 0, | ||||
|                         "type": "CallExpressionKw", | ||||
|                         "type": "CallExpressionKw", | ||||
|                         "unlabeled": null | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 578, | ||||
|                     "start": 475, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeExpression", | ||||
|                     "type": "PipeExpression" | ||||
|                   }, | ||||
|                   "end": 578, | ||||
|                   "start": 468, | ||||
|                   "end": 0, | ||||
|                   "start": 0, | ||||
|                   "type": "ReturnStatement", | ||||
|                   "type": "ReturnStatement" | ||||
|                 } | ||||
|               ], | ||||
|               "end": 580, | ||||
|               "start": 464 | ||||
|               "end": 0, | ||||
|               "start": 0 | ||||
|             }, | ||||
|             "end": 580, | ||||
|             "end": 0, | ||||
|             "params": [ | ||||
|               { | ||||
|                 "type": "Parameter", | ||||
|                 "identifier": { | ||||
|                   "end": 454, | ||||
|                   "end": 0, | ||||
|                   "name": "center", | ||||
|                   "start": 448, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 } | ||||
|               }, | ||||
|               { | ||||
|                 "type": "Parameter", | ||||
|                 "identifier": { | ||||
|                   "end": 462, | ||||
|                   "end": 0, | ||||
|                   "name": "radius", | ||||
|                   "start": 456, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 } | ||||
|               } | ||||
|             ], | ||||
|             "start": 447, | ||||
|             "start": 0, | ||||
|             "type": "FunctionExpression", | ||||
|             "type": "FunctionExpression" | ||||
|           }, | ||||
|           "start": 437, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 580, | ||||
|         "end": 0, | ||||
|         "kind": "fn", | ||||
|         "start": 434, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 667, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 632, | ||||
|             "end": 0, | ||||
|             "name": "oxygenAtom", | ||||
|             "start": 622, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
| @ -317,9 +317,9 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|               { | ||||
|                 "elements": [ | ||||
|                   { | ||||
|                     "end": 648, | ||||
|                     "end": 0, | ||||
|                     "raw": "0", | ||||
|                     "start": 647, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": { | ||||
| @ -328,9 +328,9 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|                     } | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 651, | ||||
|                     "end": 0, | ||||
|                     "raw": "0", | ||||
|                     "start": 650, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": { | ||||
| @ -339,54 +339,54 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "end": 652, | ||||
|                 "start": 646, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "ArrayExpression", | ||||
|                 "type": "ArrayExpression" | ||||
|               }, | ||||
|               { | ||||
|                 "end": 666, | ||||
|                 "end": 0, | ||||
|                 "name": "oxygenRadius", | ||||
|                 "start": 654, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 645, | ||||
|               "end": 0, | ||||
|               "name": "createAtom", | ||||
|               "start": 635, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 667, | ||||
|             "start": 635, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpression", | ||||
|             "type": "CallExpression" | ||||
|           }, | ||||
|           "start": 622, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 667, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 622, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 790, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 733, | ||||
|             "end": 0, | ||||
|             "name": "hydrogenOffsetX", | ||||
|             "start": 718, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "end": 790, | ||||
|             "end": 0, | ||||
|             "left": { | ||||
|               "end": 758, | ||||
|               "end": 0, | ||||
|               "name": "oxygenHydrogenDistance", | ||||
|               "start": 736, | ||||
|               "start": 0, | ||||
|               "type": "Identifier", | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
| @ -396,19 +396,19 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|                 { | ||||
|                   "arguments": [ | ||||
|                     { | ||||
|                       "end": 788, | ||||
|                       "end": 0, | ||||
|                       "left": { | ||||
|                         "end": 784, | ||||
|                         "end": 0, | ||||
|                         "name": "bondAngle", | ||||
|                         "start": 775, | ||||
|                         "start": 0, | ||||
|                         "type": "Identifier", | ||||
|                         "type": "Identifier" | ||||
|                       }, | ||||
|                       "operator": "/", | ||||
|                       "right": { | ||||
|                         "end": 788, | ||||
|                         "end": 0, | ||||
|                         "raw": "2", | ||||
|                         "start": 787, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -416,62 +416,62 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|                           "suffix": "None" | ||||
|                         } | ||||
|                       }, | ||||
|                       "start": 775, | ||||
|                       "start": 0, | ||||
|                       "type": "BinaryExpression", | ||||
|                       "type": "BinaryExpression" | ||||
|                     } | ||||
|                   ], | ||||
|                   "callee": { | ||||
|                     "end": 774, | ||||
|                     "end": 0, | ||||
|                     "name": "toRadians", | ||||
|                     "start": 765, | ||||
|                     "start": 0, | ||||
|                     "type": "Identifier" | ||||
|                   }, | ||||
|                   "end": 789, | ||||
|                   "start": 765, | ||||
|                   "end": 0, | ||||
|                   "start": 0, | ||||
|                   "type": "CallExpression", | ||||
|                   "type": "CallExpression" | ||||
|                 } | ||||
|               ], | ||||
|               "callee": { | ||||
|                 "end": 764, | ||||
|                 "end": 0, | ||||
|                 "name": "cos", | ||||
|                 "start": 761, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "end": 790, | ||||
|               "start": 761, | ||||
|               "end": 0, | ||||
|               "start": 0, | ||||
|               "type": "CallExpression", | ||||
|               "type": "CallExpression" | ||||
|             }, | ||||
|             "start": 736, | ||||
|             "start": 0, | ||||
|             "type": "BinaryExpression", | ||||
|             "type": "BinaryExpression" | ||||
|           }, | ||||
|           "start": 718, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 790, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 718, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 863, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 806, | ||||
|             "end": 0, | ||||
|             "name": "hydrogenOffsetY", | ||||
|             "start": 791, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
|             "end": 863, | ||||
|             "end": 0, | ||||
|             "left": { | ||||
|               "end": 831, | ||||
|               "end": 0, | ||||
|               "name": "oxygenHydrogenDistance", | ||||
|               "start": 809, | ||||
|               "start": 0, | ||||
|               "type": "Identifier", | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
| @ -481,19 +481,19 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|                 { | ||||
|                   "arguments": [ | ||||
|                     { | ||||
|                       "end": 861, | ||||
|                       "end": 0, | ||||
|                       "left": { | ||||
|                         "end": 857, | ||||
|                         "end": 0, | ||||
|                         "name": "bondAngle", | ||||
|                         "start": 848, | ||||
|                         "start": 0, | ||||
|                         "type": "Identifier", | ||||
|                         "type": "Identifier" | ||||
|                       }, | ||||
|                       "operator": "/", | ||||
|                       "right": { | ||||
|                         "end": 861, | ||||
|                         "end": 0, | ||||
|                         "raw": "2", | ||||
|                         "start": 860, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -501,54 +501,54 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|                           "suffix": "None" | ||||
|                         } | ||||
|                       }, | ||||
|                       "start": 848, | ||||
|                       "start": 0, | ||||
|                       "type": "BinaryExpression", | ||||
|                       "type": "BinaryExpression" | ||||
|                     } | ||||
|                   ], | ||||
|                   "callee": { | ||||
|                     "end": 847, | ||||
|                     "end": 0, | ||||
|                     "name": "toRadians", | ||||
|                     "start": 838, | ||||
|                     "start": 0, | ||||
|                     "type": "Identifier" | ||||
|                   }, | ||||
|                   "end": 862, | ||||
|                   "start": 838, | ||||
|                   "end": 0, | ||||
|                   "start": 0, | ||||
|                   "type": "CallExpression", | ||||
|                   "type": "CallExpression" | ||||
|                 } | ||||
|               ], | ||||
|               "callee": { | ||||
|                 "end": 837, | ||||
|                 "end": 0, | ||||
|                 "name": "sin", | ||||
|                 "start": 834, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier" | ||||
|               }, | ||||
|               "end": 863, | ||||
|               "start": 834, | ||||
|               "end": 0, | ||||
|               "start": 0, | ||||
|               "type": "CallExpression", | ||||
|               "type": "CallExpression" | ||||
|             }, | ||||
|             "start": 809, | ||||
|             "start": 0, | ||||
|             "type": "BinaryExpression", | ||||
|             "type": "BinaryExpression" | ||||
|           }, | ||||
|           "start": 791, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 863, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 791, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 972, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 907, | ||||
|             "end": 0, | ||||
|             "name": "hydrogenAtom1", | ||||
|             "start": 894, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
| @ -556,60 +556,60 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|               { | ||||
|                 "elements": [ | ||||
|                   { | ||||
|                     "end": 937, | ||||
|                     "end": 0, | ||||
|                     "name": "hydrogenOffsetX", | ||||
|                     "start": 922, | ||||
|                     "start": 0, | ||||
|                     "type": "Identifier", | ||||
|                     "type": "Identifier" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 954, | ||||
|                     "end": 0, | ||||
|                     "name": "hydrogenOffsetY", | ||||
|                     "start": 939, | ||||
|                     "start": 0, | ||||
|                     "type": "Identifier", | ||||
|                     "type": "Identifier" | ||||
|                   } | ||||
|                 ], | ||||
|                 "end": 955, | ||||
|                 "start": 921, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "ArrayExpression", | ||||
|                 "type": "ArrayExpression" | ||||
|               }, | ||||
|               { | ||||
|                 "end": 971, | ||||
|                 "end": 0, | ||||
|                 "name": "hydrogenRadius", | ||||
|                 "start": 957, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 920, | ||||
|               "end": 0, | ||||
|               "name": "createAtom", | ||||
|               "start": 910, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 972, | ||||
|             "start": 910, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpression", | ||||
|             "type": "CallExpression" | ||||
|           }, | ||||
|           "start": 894, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 972, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 894, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       }, | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 1052, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 986, | ||||
|             "end": 0, | ||||
|             "name": "hydrogenAtom2", | ||||
|             "start": 973, | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
|           }, | ||||
|           "init": { | ||||
| @ -618,85 +618,85 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|                 "elements": [ | ||||
|                   { | ||||
|                     "argument": { | ||||
|                       "end": 1017, | ||||
|                       "end": 0, | ||||
|                       "name": "hydrogenOffsetX", | ||||
|                       "start": 1002, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier", | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "end": 1017, | ||||
|                     "end": 0, | ||||
|                     "operator": "-", | ||||
|                     "start": 1001, | ||||
|                     "start": 0, | ||||
|                     "type": "UnaryExpression", | ||||
|                     "type": "UnaryExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 1034, | ||||
|                     "end": 0, | ||||
|                     "name": "hydrogenOffsetY", | ||||
|                     "start": 1019, | ||||
|                     "start": 0, | ||||
|                     "type": "Identifier", | ||||
|                     "type": "Identifier" | ||||
|                   } | ||||
|                 ], | ||||
|                 "end": 1035, | ||||
|                 "start": 1000, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "ArrayExpression", | ||||
|                 "type": "ArrayExpression" | ||||
|               }, | ||||
|               { | ||||
|                 "end": 1051, | ||||
|                 "end": 0, | ||||
|                 "name": "hydrogenRadius", | ||||
|                 "start": 1037, | ||||
|                 "start": 0, | ||||
|                 "type": "Identifier", | ||||
|                 "type": "Identifier" | ||||
|               } | ||||
|             ], | ||||
|             "callee": { | ||||
|               "end": 999, | ||||
|               "end": 0, | ||||
|               "name": "createAtom", | ||||
|               "start": 989, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "end": 1052, | ||||
|             "start": 989, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "CallExpression", | ||||
|             "type": "CallExpression" | ||||
|           }, | ||||
|           "start": 973, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 1052, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 973, | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 1053, | ||||
|     "end": 0, | ||||
|     "innerAttrs": [ | ||||
|       { | ||||
|         "end": 33, | ||||
|         "end": 0, | ||||
|         "name": { | ||||
|           "end": 9, | ||||
|           "end": 0, | ||||
|           "name": "settings", | ||||
|           "start": 1, | ||||
|           "start": 0, | ||||
|           "type": "Identifier" | ||||
|         }, | ||||
|         "properties": [ | ||||
|           { | ||||
|             "end": 32, | ||||
|             "end": 0, | ||||
|             "key": { | ||||
|               "end": 27, | ||||
|               "end": 0, | ||||
|               "name": "defaultLengthUnit", | ||||
|               "start": 10, | ||||
|               "start": 0, | ||||
|               "type": "Identifier" | ||||
|             }, | ||||
|             "start": 10, | ||||
|             "start": 0, | ||||
|             "type": "ObjectProperty", | ||||
|             "value": { | ||||
|               "end": 32, | ||||
|               "end": 0, | ||||
|               "name": "nm", | ||||
|               "start": 30, | ||||
|               "start": 0, | ||||
|               "type": "Identifier", | ||||
|               "type": "Identifier" | ||||
|             } | ||||
| @ -710,8 +710,8 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|       "nonCodeNodes": { | ||||
|         "0": [ | ||||
|           { | ||||
|             "end": 183, | ||||
|             "start": 143, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "inlineComment", | ||||
| @ -722,8 +722,8 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|         ], | ||||
|         "1": [ | ||||
|           { | ||||
|             "end": 247, | ||||
|             "start": 206, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "inlineComment", | ||||
| @ -734,8 +734,8 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|         ], | ||||
|         "2": [ | ||||
|           { | ||||
|             "end": 336, | ||||
|             "start": 278, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "inlineComment", | ||||
| @ -746,8 +746,8 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|         ], | ||||
|         "3": [ | ||||
|           { | ||||
|             "end": 379, | ||||
|             "start": 354, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "inlineComment", | ||||
| @ -756,16 +756,16 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|             } | ||||
|           }, | ||||
|           { | ||||
|             "end": 382, | ||||
|             "start": 379, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "newLine" | ||||
|             } | ||||
|           }, | ||||
|           { | ||||
|             "end": 433, | ||||
|             "start": 382, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "blockComment", | ||||
| @ -776,8 +776,8 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|         ], | ||||
|         "4": [ | ||||
|           { | ||||
|             "end": 621, | ||||
|             "start": 580, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "newLineBlockComment", | ||||
| @ -788,8 +788,8 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|         ], | ||||
|         "5": [ | ||||
|           { | ||||
|             "end": 717, | ||||
|             "start": 667, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "newLineBlockComment", | ||||
| @ -800,8 +800,8 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|         ], | ||||
|         "7": [ | ||||
|           { | ||||
|             "end": 893, | ||||
|             "start": 863, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "NonCodeNode", | ||||
|             "value": { | ||||
|               "type": "newLineBlockComment", | ||||
| @ -813,8 +813,8 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|       }, | ||||
|       "startNodes": [ | ||||
|         { | ||||
|           "end": 84, | ||||
|           "start": 34, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "NonCodeNode", | ||||
|           "value": { | ||||
|             "type": "blockComment", | ||||
| @ -823,16 +823,16 @@ description: Result of parsing bad_units_in_annotation.kcl | ||||
|           } | ||||
|         }, | ||||
|         { | ||||
|           "end": 87, | ||||
|           "start": 84, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "NonCodeNode", | ||||
|           "value": { | ||||
|             "type": "newLine" | ||||
|           } | ||||
|         }, | ||||
|         { | ||||
|           "end": 122, | ||||
|           "start": 87, | ||||
|           "end": 0, | ||||
|           "start": 0, | ||||
|           "type": "NonCodeNode", | ||||
|           "value": { | ||||
|             "type": "blockComment", | ||||
|  | ||||
							
								
								
									
										32
									
								
								rust/kcl-lib/tests/bad_units_in_annotation/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								rust/kcl-lib/tests/bad_units_in_annotation/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,32 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing bad_units_in_annotation.kcl | ||||
| --- | ||||
| @settings(defaultLengthUnit = nm) | ||||
| // Generated by Text-to-CAD: draw a water molecule | ||||
|  | ||||
|  | ||||
| // Constants for the water molecule | ||||
| oxygenRadius = 0.066 // Approximate radius of an oxygen atom | ||||
| hydrogenRadius = 0.053 // Approximate radius of a hydrogen atom | ||||
| oxygenHydrogenDistance = 0.096 // Approximate distance between oxygen and hydrogen atoms | ||||
| bondAngle = 104.5 // Bond angle in degrees | ||||
|  | ||||
|  | ||||
| // Function to create a sphere representing an atom | ||||
| fn createAtom(center, radius) { | ||||
|   return startSketchOn('XY') | ||||
|     |> circle(center = center, radius = radius) | ||||
|     |> extrude(length = radius * 2) | ||||
| } | ||||
|  | ||||
| // Create the oxygen atom at the origin | ||||
| oxygenAtom = createAtom([0, 0], oxygenRadius) | ||||
|  | ||||
| // Calculate the positions of the hydrogen atoms | ||||
| hydrogenOffsetX = oxygenHydrogenDistance * cos(toRadians(bondAngle / 2)) | ||||
| hydrogenOffsetY = oxygenHydrogenDistance * sin(toRadians(bondAngle / 2)) | ||||
|  | ||||
| // Create the hydrogen atoms | ||||
| hydrogenAtom1 = createAtom([hydrogenOffsetX, hydrogenOffsetY], hydrogenRadius) | ||||
| hydrogenAtom2 = createAtom([-hydrogenOffsetX, hydrogenOffsetY], hydrogenRadius) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -84,11 +64,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -104,22 +80,14 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -132,22 +100,14 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       66, | ||||
|       99, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -164,11 +124,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       105, | ||||
|       124, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -185,11 +141,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       130, | ||||
|       165, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -206,11 +158,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       171, | ||||
|       191, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -218,11 +166,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -238,11 +182,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -252,22 +192,14 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -275,11 +207,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -288,11 +216,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -302,11 +226,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -316,11 +236,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -330,11 +246,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -344,11 +256,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -358,11 +266,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -372,11 +276,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -386,11 +286,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -400,11 +296,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       258, | ||||
|       281, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -414,11 +306,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       223, | ||||
|       283, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_fillet_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -430,11 +318,7 @@ description: Artifact commands basic_fillet_cube_close_opposite.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       223, | ||||
|       283, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_fillet_edge", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -7,9 +7,9 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 283, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 7, | ||||
|             "end": 0, | ||||
|             "name": "part001", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -19,22 +19,22 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 28, | ||||
|                     "end": 0, | ||||
|                     "raw": "'XY'", | ||||
|                     "start": 24, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": "XY" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 23, | ||||
|                   "end": 0, | ||||
|                   "name": "startSketchOn", | ||||
|                   "start": 10, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 29, | ||||
|                 "start": 10, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -43,9 +43,9 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 52, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 51, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -54,9 +54,9 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 55, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 54, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -65,26 +65,26 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 56, | ||||
|                     "start": 50, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 59, | ||||
|                     "start": 58, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 49, | ||||
|                   "end": 0, | ||||
|                   "name": "startProfileAt", | ||||
|                   "start": 35, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 60, | ||||
|                 "start": 35, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -93,17 +93,17 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 74, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 71, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 79, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 78, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -112,9 +112,9 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 83, | ||||
|                           "end": 0, | ||||
|                           "raw": "10", | ||||
|                           "start": 81, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -123,8 +123,8 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 84, | ||||
|                       "start": 77, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -132,14 +132,14 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 89, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 86, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 98, | ||||
|                       "start": 92, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing" | ||||
| @ -147,13 +147,13 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 70, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 66, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 99, | ||||
|                 "start": 66, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -163,17 +163,17 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 113, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 110, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 119, | ||||
|                           "end": 0, | ||||
|                           "raw": "10", | ||||
|                           "start": 117, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -182,9 +182,9 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 122, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 121, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -193,21 +193,21 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 123, | ||||
|                       "start": 116, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 109, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 105, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 124, | ||||
|                 "start": 105, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -217,17 +217,17 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 138, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 135, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 143, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 142, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -237,9 +237,9 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                         }, | ||||
|                         { | ||||
|                           "argument": { | ||||
|                             "end": 148, | ||||
|                             "end": 0, | ||||
|                             "raw": "10", | ||||
|                             "start": 146, | ||||
|                             "start": 0, | ||||
|                             "type": "Literal", | ||||
|                             "type": "Literal", | ||||
|                             "value": { | ||||
| @ -247,15 +247,15 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                               "suffix": "None" | ||||
|                             } | ||||
|                           }, | ||||
|                           "end": 148, | ||||
|                           "end": 0, | ||||
|                           "operator": "-", | ||||
|                           "start": 145, | ||||
|                           "start": 0, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 149, | ||||
|                       "start": 141, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -263,14 +263,14 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 154, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 151, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 164, | ||||
|                       "start": 157, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing2" | ||||
| @ -278,13 +278,13 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 134, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 130, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 165, | ||||
|                 "start": 130, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -294,14 +294,14 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 180, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 177, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 190, | ||||
|                       "start": 183, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing3" | ||||
| @ -309,13 +309,13 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 176, | ||||
|                   "end": 0, | ||||
|                   "name": "close", | ||||
|                   "start": 171, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 191, | ||||
|                 "start": 171, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -325,15 +325,15 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 211, | ||||
|                       "end": 0, | ||||
|                       "name": "length", | ||||
|                       "start": 205, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 216, | ||||
|                       "end": 0, | ||||
|                       "raw": "10", | ||||
|                       "start": 214, | ||||
|                       "start": 0, | ||||
|                       "type": "Literal", | ||||
|                       "type": "Literal", | ||||
|                       "value": { | ||||
| @ -344,13 +344,13 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 204, | ||||
|                   "end": 0, | ||||
|                   "name": "extrude", | ||||
|                   "start": 197, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 217, | ||||
|                 "start": 197, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -360,15 +360,15 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 236, | ||||
|                       "end": 0, | ||||
|                       "name": "radius", | ||||
|                       "start": 230, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 240, | ||||
|                       "end": 0, | ||||
|                       "raw": "2", | ||||
|                       "start": 239, | ||||
|                       "start": 0, | ||||
|                       "type": "Literal", | ||||
|                       "type": "Literal", | ||||
|                       "value": { | ||||
| @ -380,78 +380,78 @@ description: Result of parsing basic_fillet_cube_close_opposite.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 246, | ||||
|                       "end": 0, | ||||
|                       "name": "tags", | ||||
|                       "start": 242, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 256, | ||||
|                           "end": 0, | ||||
|                           "name": "thing3", | ||||
|                           "start": 250, | ||||
|                           "start": 0, | ||||
|                           "type": "Identifier", | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         { | ||||
|                           "arguments": [ | ||||
|                             { | ||||
|                               "end": 280, | ||||
|                               "end": 0, | ||||
|                               "name": "thing3", | ||||
|                               "start": 274, | ||||
|                               "start": 0, | ||||
|                               "type": "Identifier", | ||||
|                               "type": "Identifier" | ||||
|                             } | ||||
|                           ], | ||||
|                           "callee": { | ||||
|                             "end": 273, | ||||
|                             "end": 0, | ||||
|                             "name": "getOppositeEdge", | ||||
|                             "start": 258, | ||||
|                             "start": 0, | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "end": 281, | ||||
|                           "start": 258, | ||||
|                           "end": 0, | ||||
|                           "start": 0, | ||||
|                           "type": "CallExpression", | ||||
|                           "type": "CallExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 282, | ||||
|                       "start": 249, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 229, | ||||
|                   "end": 0, | ||||
|                   "name": "fillet", | ||||
|                   "start": 223, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 283, | ||||
|                 "start": 223, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
|               } | ||||
|             ], | ||||
|             "end": 283, | ||||
|             "start": 10, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "PipeExpression", | ||||
|             "type": "PipeExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 283, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 284, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -10,19 +10,11 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           24, | ||||
|           28, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -42,19 +34,11 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           214, | ||||
|           216, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       197, | ||||
|       217, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -63,11 +47,7 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         197, | ||||
|         217, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -86,11 +66,7 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           239, | ||||
|           240, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       }, | ||||
|       "tags": { | ||||
|         "value": { | ||||
| @ -107,19 +83,11 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           249, | ||||
|           282, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "fillet", | ||||
|     "sourceRange": [ | ||||
|       223, | ||||
|       283, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -128,11 +96,7 @@ description: Operations executed basic_fillet_cube_close_opposite.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         223, | ||||
|         283, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
|  | ||||
| @ -13,11 +13,7 @@ description: Variables in memory after executing basic_fillet_cube_close_opposit | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             66, | ||||
|             99, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 98, | ||||
|             "start": 92, | ||||
| @ -29,22 +25,14 @@ description: Variables in memory after executing basic_fillet_cube_close_opposit | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             105, | ||||
|             124, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             130, | ||||
|             165, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 164, | ||||
|             "start": 157, | ||||
| @ -56,11 +44,7 @@ description: Variables in memory after executing basic_fillet_cube_close_opposit | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             171, | ||||
|             191, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 190, | ||||
|             "start": 183, | ||||
| @ -77,11 +61,7 @@ description: Variables in memory after executing basic_fillet_cube_close_opposit | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 66, | ||||
|                 99, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               0.0, | ||||
| @ -105,11 +85,7 @@ description: Variables in memory after executing basic_fillet_cube_close_opposit | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 105, | ||||
|                 124, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               0.0, | ||||
| @ -128,11 +104,7 @@ description: Variables in memory after executing basic_fillet_cube_close_opposit | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 130, | ||||
|                 165, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               10.0, | ||||
| @ -156,11 +128,7 @@ description: Variables in memory after executing basic_fillet_cube_close_opposit | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 171, | ||||
|                 191, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               10.0, | ||||
| @ -226,11 +194,7 @@ description: Variables in memory after executing basic_fillet_cube_close_opposit | ||||
|           "tag": null, | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               35, | ||||
|               60, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           } | ||||
|         }, | ||||
|         "tags": { | ||||
|  | ||||
| @ -0,0 +1,12 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing basic_fillet_cube_close_opposite.kcl | ||||
| --- | ||||
| part001 = startSketchOn('XY') | ||||
|   |> startProfileAt([0, 0], %) | ||||
|   |> line(end = [0, 10], tag = $thing) | ||||
|   |> line(end = [10, 0]) | ||||
|   |> line(end = [0, -10], tag = $thing2) | ||||
|   |> close(tag = $thing3) | ||||
|   |> extrude(length = 10) | ||||
|   |> fillet(radius = 2, tags = [thing3, getOppositeEdge(thing3)]) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -84,11 +64,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -104,22 +80,14 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -132,22 +100,14 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       66, | ||||
|       99, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -164,11 +124,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       105, | ||||
|       124, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -185,11 +141,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       130, | ||||
|       165, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -206,11 +158,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       171, | ||||
|       179, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -218,11 +166,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -238,11 +182,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -252,22 +192,14 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -275,11 +207,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -288,11 +216,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -302,11 +226,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -316,11 +236,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -330,11 +246,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -344,11 +256,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -358,11 +266,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -372,11 +276,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -386,11 +286,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -400,11 +296,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       245, | ||||
|       267, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -414,11 +306,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       211, | ||||
|       269, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_fillet_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -430,11 +318,7 @@ description: Artifact commands basic_fillet_cube_end.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       211, | ||||
|       269, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_fillet_edge", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -7,9 +7,9 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 269, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 7, | ||||
|             "end": 0, | ||||
|             "name": "part001", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -19,22 +19,22 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 28, | ||||
|                     "end": 0, | ||||
|                     "raw": "'XY'", | ||||
|                     "start": 24, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": "XY" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 23, | ||||
|                   "end": 0, | ||||
|                   "name": "startSketchOn", | ||||
|                   "start": 10, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 29, | ||||
|                 "start": 10, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -43,9 +43,9 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 52, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 51, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -54,9 +54,9 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 55, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 54, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -65,26 +65,26 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 56, | ||||
|                     "start": 50, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 59, | ||||
|                     "start": 58, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 49, | ||||
|                   "end": 0, | ||||
|                   "name": "startProfileAt", | ||||
|                   "start": 35, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 60, | ||||
|                 "start": 35, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -93,17 +93,17 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 74, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 71, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 79, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 78, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -112,9 +112,9 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 83, | ||||
|                           "end": 0, | ||||
|                           "raw": "10", | ||||
|                           "start": 81, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -123,8 +123,8 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 84, | ||||
|                       "start": 77, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -132,14 +132,14 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 89, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 86, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 98, | ||||
|                       "start": 92, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing" | ||||
| @ -147,13 +147,13 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 70, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 66, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 99, | ||||
|                 "start": 66, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -163,17 +163,17 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 113, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 110, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 119, | ||||
|                           "end": 0, | ||||
|                           "raw": "10", | ||||
|                           "start": 117, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -182,9 +182,9 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 122, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 121, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -193,21 +193,21 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 123, | ||||
|                       "start": 116, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 109, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 105, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 124, | ||||
|                 "start": 105, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -217,17 +217,17 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 138, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 135, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 143, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 142, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -237,9 +237,9 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                         }, | ||||
|                         { | ||||
|                           "argument": { | ||||
|                             "end": 148, | ||||
|                             "end": 0, | ||||
|                             "raw": "10", | ||||
|                             "start": 146, | ||||
|                             "start": 0, | ||||
|                             "type": "Literal", | ||||
|                             "type": "Literal", | ||||
|                             "value": { | ||||
| @ -247,15 +247,15 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                               "suffix": "None" | ||||
|                             } | ||||
|                           }, | ||||
|                           "end": 148, | ||||
|                           "end": 0, | ||||
|                           "operator": "-", | ||||
|                           "start": 145, | ||||
|                           "start": 0, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 149, | ||||
|                       "start": 141, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -263,14 +263,14 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 154, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 151, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 164, | ||||
|                       "start": 157, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing2" | ||||
| @ -278,13 +278,13 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 134, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 130, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 165, | ||||
|                 "start": 130, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -292,20 +292,20 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 178, | ||||
|                     "start": 177, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 176, | ||||
|                   "end": 0, | ||||
|                   "name": "close", | ||||
|                   "start": 171, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 179, | ||||
|                 "start": 171, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -314,15 +314,15 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 199, | ||||
|                       "end": 0, | ||||
|                       "name": "length", | ||||
|                       "start": 193, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 204, | ||||
|                       "end": 0, | ||||
|                       "raw": "10", | ||||
|                       "start": 202, | ||||
|                       "start": 0, | ||||
|                       "type": "Literal", | ||||
|                       "type": "Literal", | ||||
|                       "value": { | ||||
| @ -333,13 +333,13 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 192, | ||||
|                   "end": 0, | ||||
|                   "name": "extrude", | ||||
|                   "start": 185, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 205, | ||||
|                 "start": 185, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -349,15 +349,15 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 224, | ||||
|                       "end": 0, | ||||
|                       "name": "radius", | ||||
|                       "start": 218, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 228, | ||||
|                       "end": 0, | ||||
|                       "raw": "2", | ||||
|                       "start": 227, | ||||
|                       "start": 0, | ||||
|                       "type": "Literal", | ||||
|                       "type": "Literal", | ||||
|                       "value": { | ||||
| @ -369,78 +369,78 @@ description: Result of parsing basic_fillet_cube_end.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 234, | ||||
|                       "end": 0, | ||||
|                       "name": "tags", | ||||
|                       "start": 230, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 243, | ||||
|                           "end": 0, | ||||
|                           "name": "thing", | ||||
|                           "start": 238, | ||||
|                           "start": 0, | ||||
|                           "type": "Identifier", | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         { | ||||
|                           "arguments": [ | ||||
|                             { | ||||
|                               "end": 266, | ||||
|                               "end": 0, | ||||
|                               "name": "thing", | ||||
|                               "start": 261, | ||||
|                               "start": 0, | ||||
|                               "type": "Identifier", | ||||
|                               "type": "Identifier" | ||||
|                             } | ||||
|                           ], | ||||
|                           "callee": { | ||||
|                             "end": 260, | ||||
|                             "end": 0, | ||||
|                             "name": "getOppositeEdge", | ||||
|                             "start": 245, | ||||
|                             "start": 0, | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "end": 267, | ||||
|                           "start": 245, | ||||
|                           "end": 0, | ||||
|                           "start": 0, | ||||
|                           "type": "CallExpression", | ||||
|                           "type": "CallExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 268, | ||||
|                       "start": 237, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 217, | ||||
|                   "end": 0, | ||||
|                   "name": "fillet", | ||||
|                   "start": 211, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 269, | ||||
|                 "start": 211, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
|               } | ||||
|             ], | ||||
|             "end": 269, | ||||
|             "start": 10, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "PipeExpression", | ||||
|             "type": "PipeExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 269, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 270, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -10,19 +10,11 @@ description: Operations executed basic_fillet_cube_end.kcl | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           24, | ||||
|           28, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -42,19 +34,11 @@ description: Operations executed basic_fillet_cube_end.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           202, | ||||
|           204, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -63,11 +47,7 @@ description: Operations executed basic_fillet_cube_end.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         185, | ||||
|         205, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -86,11 +66,7 @@ description: Operations executed basic_fillet_cube_end.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           227, | ||||
|           228, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       }, | ||||
|       "tags": { | ||||
|         "value": { | ||||
| @ -107,19 +83,11 @@ description: Operations executed basic_fillet_cube_end.kcl | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           237, | ||||
|           268, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "fillet", | ||||
|     "sourceRange": [ | ||||
|       211, | ||||
|       269, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -128,11 +96,7 @@ description: Operations executed basic_fillet_cube_end.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         211, | ||||
|         269, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
|  | ||||
| @ -13,11 +13,7 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             66, | ||||
|             99, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 98, | ||||
|             "start": 92, | ||||
| @ -29,22 +25,14 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             105, | ||||
|             124, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             130, | ||||
|             165, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 164, | ||||
|             "start": 157, | ||||
| @ -56,11 +44,7 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             171, | ||||
|             179, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         } | ||||
| @ -72,11 +56,7 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 66, | ||||
|                 99, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               0.0, | ||||
| @ -100,11 +80,7 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 105, | ||||
|                 124, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               0.0, | ||||
| @ -123,11 +99,7 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 130, | ||||
|                 165, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               10.0, | ||||
| @ -151,11 +123,7 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 171, | ||||
|                 179, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               10.0, | ||||
| @ -216,11 +184,7 @@ description: Variables in memory after executing basic_fillet_cube_end.kcl | ||||
|           "tag": null, | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               35, | ||||
|               60, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           } | ||||
|         }, | ||||
|         "tags": { | ||||
|  | ||||
							
								
								
									
										12
									
								
								rust/kcl-lib/tests/basic_fillet_cube_end/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								rust/kcl-lib/tests/basic_fillet_cube_end/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing basic_fillet_cube_end.kcl | ||||
| --- | ||||
| part001 = startSketchOn('XY') | ||||
|   |> startProfileAt([0, 0], %) | ||||
|   |> line(end = [0, 10], tag = $thing) | ||||
|   |> line(end = [10, 0]) | ||||
|   |> line(end = [0, -10], tag = $thing2) | ||||
|   |> close(%) | ||||
|   |> extrude(length = 10) | ||||
|   |> fillet(radius = 2, tags = [thing, getOppositeEdge(thing)]) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -84,11 +64,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -104,22 +80,14 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -132,22 +100,14 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       66, | ||||
|       99, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -164,11 +124,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       105, | ||||
|       139, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -185,11 +141,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       145, | ||||
|       180, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -206,11 +158,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       186, | ||||
|       206, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -218,11 +166,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -238,11 +182,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -252,22 +192,14 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -275,11 +207,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -288,11 +216,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -302,11 +226,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -316,11 +236,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -330,11 +246,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -344,11 +256,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -358,11 +266,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -372,11 +276,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -386,11 +286,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -400,11 +296,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       265, | ||||
|       292, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -414,11 +306,7 @@ description: Artifact commands basic_fillet_cube_next_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       238, | ||||
|       294, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_fillet_edge", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -7,9 +7,9 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 294, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 7, | ||||
|             "end": 0, | ||||
|             "name": "part001", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -19,22 +19,22 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 28, | ||||
|                     "end": 0, | ||||
|                     "raw": "'XY'", | ||||
|                     "start": 24, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": "XY" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 23, | ||||
|                   "end": 0, | ||||
|                   "name": "startSketchOn", | ||||
|                   "start": 10, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 29, | ||||
|                 "start": 10, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -43,9 +43,9 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 52, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 51, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -54,9 +54,9 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 55, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 54, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -65,26 +65,26 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 56, | ||||
|                     "start": 50, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 59, | ||||
|                     "start": 58, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 49, | ||||
|                   "end": 0, | ||||
|                   "name": "startProfileAt", | ||||
|                   "start": 35, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 60, | ||||
|                 "start": 35, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -93,17 +93,17 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 74, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 71, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 79, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 78, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -112,9 +112,9 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 83, | ||||
|                           "end": 0, | ||||
|                           "raw": "10", | ||||
|                           "start": 81, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -123,8 +123,8 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 84, | ||||
|                       "start": 77, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -132,14 +132,14 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 89, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 86, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 98, | ||||
|                       "start": 92, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing" | ||||
| @ -147,13 +147,13 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 70, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 66, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 99, | ||||
|                 "start": 66, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -163,17 +163,17 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 113, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 110, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 119, | ||||
|                           "end": 0, | ||||
|                           "raw": "10", | ||||
|                           "start": 117, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -182,9 +182,9 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 122, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 121, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -193,8 +193,8 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 123, | ||||
|                       "start": 116, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -202,14 +202,14 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 128, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 125, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 138, | ||||
|                       "start": 131, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing1" | ||||
| @ -217,13 +217,13 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 109, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 105, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 139, | ||||
|                 "start": 105, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -233,17 +233,17 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 153, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 150, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 158, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 157, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -253,9 +253,9 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                         }, | ||||
|                         { | ||||
|                           "argument": { | ||||
|                             "end": 163, | ||||
|                             "end": 0, | ||||
|                             "raw": "10", | ||||
|                             "start": 161, | ||||
|                             "start": 0, | ||||
|                             "type": "Literal", | ||||
|                             "type": "Literal", | ||||
|                             "value": { | ||||
| @ -263,15 +263,15 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                               "suffix": "None" | ||||
|                             } | ||||
|                           }, | ||||
|                           "end": 163, | ||||
|                           "end": 0, | ||||
|                           "operator": "-", | ||||
|                           "start": 160, | ||||
|                           "start": 0, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 164, | ||||
|                       "start": 156, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -279,14 +279,14 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 169, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 166, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 179, | ||||
|                       "start": 172, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing2" | ||||
| @ -294,13 +294,13 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 149, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 145, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 180, | ||||
|                 "start": 145, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -310,14 +310,14 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 195, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 192, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 205, | ||||
|                       "start": 198, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing3" | ||||
| @ -325,13 +325,13 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 191, | ||||
|                   "end": 0, | ||||
|                   "name": "close", | ||||
|                   "start": 186, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 206, | ||||
|                 "start": 186, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -341,15 +341,15 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 226, | ||||
|                       "end": 0, | ||||
|                       "name": "length", | ||||
|                       "start": 220, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 231, | ||||
|                       "end": 0, | ||||
|                       "raw": "10", | ||||
|                       "start": 229, | ||||
|                       "start": 0, | ||||
|                       "type": "Literal", | ||||
|                       "type": "Literal", | ||||
|                       "value": { | ||||
| @ -360,13 +360,13 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 219, | ||||
|                   "end": 0, | ||||
|                   "name": "extrude", | ||||
|                   "start": 212, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 232, | ||||
|                 "start": 212, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -376,15 +376,15 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 251, | ||||
|                       "end": 0, | ||||
|                       "name": "radius", | ||||
|                       "start": 245, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 255, | ||||
|                       "end": 0, | ||||
|                       "raw": "2", | ||||
|                       "start": 254, | ||||
|                       "start": 0, | ||||
|                       "type": "Literal", | ||||
|                       "type": "Literal", | ||||
|                       "value": { | ||||
| @ -396,9 +396,9 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 261, | ||||
|                       "end": 0, | ||||
|                       "name": "tags", | ||||
|                       "start": 257, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
| @ -406,61 +406,61 @@ description: Result of parsing basic_fillet_cube_next_adjacent.kcl | ||||
|                         { | ||||
|                           "arguments": [ | ||||
|                             { | ||||
|                               "end": 291, | ||||
|                               "end": 0, | ||||
|                               "name": "thing3", | ||||
|                               "start": 285, | ||||
|                               "start": 0, | ||||
|                               "type": "Identifier", | ||||
|                               "type": "Identifier" | ||||
|                             } | ||||
|                           ], | ||||
|                           "callee": { | ||||
|                             "end": 284, | ||||
|                             "end": 0, | ||||
|                             "name": "getNextAdjacentEdge", | ||||
|                             "start": 265, | ||||
|                             "start": 0, | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "end": 292, | ||||
|                           "start": 265, | ||||
|                           "end": 0, | ||||
|                           "start": 0, | ||||
|                           "type": "CallExpression", | ||||
|                           "type": "CallExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 293, | ||||
|                       "start": 264, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 244, | ||||
|                   "end": 0, | ||||
|                   "name": "fillet", | ||||
|                   "start": 238, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 294, | ||||
|                 "start": 238, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
|               } | ||||
|             ], | ||||
|             "end": 294, | ||||
|             "start": 10, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "PipeExpression", | ||||
|             "type": "PipeExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 294, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 295, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -10,19 +10,11 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           24, | ||||
|           28, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -42,19 +34,11 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           229, | ||||
|           231, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -63,11 +47,7 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         212, | ||||
|         232, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -86,11 +66,7 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           254, | ||||
|           255, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       }, | ||||
|       "tags": { | ||||
|         "value": { | ||||
| @ -102,19 +78,11 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           264, | ||||
|           293, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "fillet", | ||||
|     "sourceRange": [ | ||||
|       238, | ||||
|       294, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -123,11 +91,7 @@ description: Operations executed basic_fillet_cube_next_adjacent.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         238, | ||||
|         294, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
|  | ||||
| @ -13,11 +13,7 @@ description: Variables in memory after executing basic_fillet_cube_next_adjacent | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             66, | ||||
|             99, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 98, | ||||
|             "start": 92, | ||||
| @ -29,11 +25,7 @@ description: Variables in memory after executing basic_fillet_cube_next_adjacent | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             105, | ||||
|             139, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 138, | ||||
|             "start": 131, | ||||
| @ -45,11 +37,7 @@ description: Variables in memory after executing basic_fillet_cube_next_adjacent | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             145, | ||||
|             180, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 179, | ||||
|             "start": 172, | ||||
| @ -61,11 +49,7 @@ description: Variables in memory after executing basic_fillet_cube_next_adjacent | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             186, | ||||
|             206, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 205, | ||||
|             "start": 198, | ||||
| @ -82,11 +66,7 @@ description: Variables in memory after executing basic_fillet_cube_next_adjacent | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 66, | ||||
|                 99, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               0.0, | ||||
| @ -110,11 +90,7 @@ description: Variables in memory after executing basic_fillet_cube_next_adjacent | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 105, | ||||
|                 139, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               0.0, | ||||
| @ -138,11 +114,7 @@ description: Variables in memory after executing basic_fillet_cube_next_adjacent | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 145, | ||||
|                 180, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               10.0, | ||||
| @ -166,11 +138,7 @@ description: Variables in memory after executing basic_fillet_cube_next_adjacent | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 186, | ||||
|                 206, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               10.0, | ||||
| @ -236,11 +204,7 @@ description: Variables in memory after executing basic_fillet_cube_next_adjacent | ||||
|           "tag": null, | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               35, | ||||
|               60, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           } | ||||
|         }, | ||||
|         "tags": { | ||||
|  | ||||
| @ -0,0 +1,12 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing basic_fillet_cube_next_adjacent.kcl | ||||
| --- | ||||
| part001 = startSketchOn('XY') | ||||
|   |> startProfileAt([0, 0], %) | ||||
|   |> line(end = [0, 10], tag = $thing) | ||||
|   |> line(end = [10, 0], tag = $thing1) | ||||
|   |> line(end = [0, -10], tag = $thing2) | ||||
|   |> close(tag = $thing3) | ||||
|   |> extrude(length = 10) | ||||
|   |> fillet(radius = 2, tags = [getNextAdjacentEdge(thing3)]) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -84,11 +64,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -104,22 +80,14 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -132,22 +100,14 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       66, | ||||
|       99, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -164,11 +124,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       105, | ||||
|       139, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -185,11 +141,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       145, | ||||
|       180, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -206,11 +158,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       186, | ||||
|       206, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -218,11 +166,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -238,11 +182,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -252,22 +192,14 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -275,11 +207,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -288,11 +216,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -302,11 +226,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -316,11 +236,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -330,11 +246,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -344,11 +256,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -358,11 +266,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -372,11 +276,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -386,11 +286,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -400,11 +296,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       265, | ||||
|       296, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_prev_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -414,11 +306,7 @@ description: Artifact commands basic_fillet_cube_previous_adjacent.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       238, | ||||
|       298, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_fillet_edge", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -7,9 +7,9 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 298, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 7, | ||||
|             "end": 0, | ||||
|             "name": "part001", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -19,22 +19,22 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 28, | ||||
|                     "end": 0, | ||||
|                     "raw": "'XY'", | ||||
|                     "start": 24, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": "XY" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 23, | ||||
|                   "end": 0, | ||||
|                   "name": "startSketchOn", | ||||
|                   "start": 10, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 29, | ||||
|                 "start": 10, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -43,9 +43,9 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 52, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 51, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -54,9 +54,9 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 55, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 54, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -65,26 +65,26 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 56, | ||||
|                     "start": 50, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 59, | ||||
|                     "start": 58, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 49, | ||||
|                   "end": 0, | ||||
|                   "name": "startProfileAt", | ||||
|                   "start": 35, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 60, | ||||
|                 "start": 35, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -93,17 +93,17 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 74, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 71, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 79, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 78, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -112,9 +112,9 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 83, | ||||
|                           "end": 0, | ||||
|                           "raw": "10", | ||||
|                           "start": 81, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -123,8 +123,8 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 84, | ||||
|                       "start": 77, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -132,14 +132,14 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 89, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 86, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 98, | ||||
|                       "start": 92, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing" | ||||
| @ -147,13 +147,13 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 70, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 66, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 99, | ||||
|                 "start": 66, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -163,17 +163,17 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 113, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 110, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 119, | ||||
|                           "end": 0, | ||||
|                           "raw": "10", | ||||
|                           "start": 117, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -182,9 +182,9 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 122, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 121, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -193,8 +193,8 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 123, | ||||
|                       "start": 116, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -202,14 +202,14 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 128, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 125, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 138, | ||||
|                       "start": 131, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing1" | ||||
| @ -217,13 +217,13 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 109, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 105, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 139, | ||||
|                 "start": 105, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -233,17 +233,17 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 153, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 150, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 158, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 157, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -253,9 +253,9 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                         }, | ||||
|                         { | ||||
|                           "argument": { | ||||
|                             "end": 163, | ||||
|                             "end": 0, | ||||
|                             "raw": "10", | ||||
|                             "start": 161, | ||||
|                             "start": 0, | ||||
|                             "type": "Literal", | ||||
|                             "type": "Literal", | ||||
|                             "value": { | ||||
| @ -263,15 +263,15 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                               "suffix": "None" | ||||
|                             } | ||||
|                           }, | ||||
|                           "end": 163, | ||||
|                           "end": 0, | ||||
|                           "operator": "-", | ||||
|                           "start": 160, | ||||
|                           "start": 0, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 164, | ||||
|                       "start": 156, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -279,14 +279,14 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 169, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 166, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 179, | ||||
|                       "start": 172, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing2" | ||||
| @ -294,13 +294,13 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 149, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 145, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 180, | ||||
|                 "start": 145, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -310,14 +310,14 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 195, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 192, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 205, | ||||
|                       "start": 198, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing3" | ||||
| @ -325,13 +325,13 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 191, | ||||
|                   "end": 0, | ||||
|                   "name": "close", | ||||
|                   "start": 186, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 206, | ||||
|                 "start": 186, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -341,15 +341,15 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 226, | ||||
|                       "end": 0, | ||||
|                       "name": "length", | ||||
|                       "start": 220, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 231, | ||||
|                       "end": 0, | ||||
|                       "raw": "10", | ||||
|                       "start": 229, | ||||
|                       "start": 0, | ||||
|                       "type": "Literal", | ||||
|                       "type": "Literal", | ||||
|                       "value": { | ||||
| @ -360,13 +360,13 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 219, | ||||
|                   "end": 0, | ||||
|                   "name": "extrude", | ||||
|                   "start": 212, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 232, | ||||
|                 "start": 212, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -376,15 +376,15 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 251, | ||||
|                       "end": 0, | ||||
|                       "name": "radius", | ||||
|                       "start": 245, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 255, | ||||
|                       "end": 0, | ||||
|                       "raw": "2", | ||||
|                       "start": 254, | ||||
|                       "start": 0, | ||||
|                       "type": "Literal", | ||||
|                       "type": "Literal", | ||||
|                       "value": { | ||||
| @ -396,9 +396,9 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 261, | ||||
|                       "end": 0, | ||||
|                       "name": "tags", | ||||
|                       "start": 257, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
| @ -406,61 +406,61 @@ description: Result of parsing basic_fillet_cube_previous_adjacent.kcl | ||||
|                         { | ||||
|                           "arguments": [ | ||||
|                             { | ||||
|                               "end": 295, | ||||
|                               "end": 0, | ||||
|                               "name": "thing3", | ||||
|                               "start": 289, | ||||
|                               "start": 0, | ||||
|                               "type": "Identifier", | ||||
|                               "type": "Identifier" | ||||
|                             } | ||||
|                           ], | ||||
|                           "callee": { | ||||
|                             "end": 288, | ||||
|                             "end": 0, | ||||
|                             "name": "getPreviousAdjacentEdge", | ||||
|                             "start": 265, | ||||
|                             "start": 0, | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "end": 296, | ||||
|                           "start": 265, | ||||
|                           "end": 0, | ||||
|                           "start": 0, | ||||
|                           "type": "CallExpression", | ||||
|                           "type": "CallExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 297, | ||||
|                       "start": 264, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 244, | ||||
|                   "end": 0, | ||||
|                   "name": "fillet", | ||||
|                   "start": 238, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 298, | ||||
|                 "start": 238, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
|               } | ||||
|             ], | ||||
|             "end": 298, | ||||
|             "start": 10, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "PipeExpression", | ||||
|             "type": "PipeExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 298, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 299, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -10,19 +10,11 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           24, | ||||
|           28, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -42,19 +34,11 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           229, | ||||
|           231, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       212, | ||||
|       232, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -63,11 +47,7 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         212, | ||||
|         232, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -86,11 +66,7 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           254, | ||||
|           255, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       }, | ||||
|       "tags": { | ||||
|         "value": { | ||||
| @ -102,19 +78,11 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           264, | ||||
|           297, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "fillet", | ||||
|     "sourceRange": [ | ||||
|       238, | ||||
|       298, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -123,11 +91,7 @@ description: Operations executed basic_fillet_cube_previous_adjacent.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         238, | ||||
|         298, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
|  | ||||
| @ -13,11 +13,7 @@ description: Variables in memory after executing basic_fillet_cube_previous_adja | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             66, | ||||
|             99, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 98, | ||||
|             "start": 92, | ||||
| @ -29,11 +25,7 @@ description: Variables in memory after executing basic_fillet_cube_previous_adja | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             105, | ||||
|             139, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 138, | ||||
|             "start": 131, | ||||
| @ -45,11 +37,7 @@ description: Variables in memory after executing basic_fillet_cube_previous_adja | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             145, | ||||
|             180, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 179, | ||||
|             "start": 172, | ||||
| @ -61,11 +49,7 @@ description: Variables in memory after executing basic_fillet_cube_previous_adja | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             186, | ||||
|             206, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 205, | ||||
|             "start": 198, | ||||
| @ -82,11 +66,7 @@ description: Variables in memory after executing basic_fillet_cube_previous_adja | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 66, | ||||
|                 99, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               0.0, | ||||
| @ -110,11 +90,7 @@ description: Variables in memory after executing basic_fillet_cube_previous_adja | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 105, | ||||
|                 139, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               0.0, | ||||
| @ -138,11 +114,7 @@ description: Variables in memory after executing basic_fillet_cube_previous_adja | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 145, | ||||
|                 180, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               10.0, | ||||
| @ -166,11 +138,7 @@ description: Variables in memory after executing basic_fillet_cube_previous_adja | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 186, | ||||
|                 206, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               10.0, | ||||
| @ -236,11 +204,7 @@ description: Variables in memory after executing basic_fillet_cube_previous_adja | ||||
|           "tag": null, | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               35, | ||||
|               60, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           } | ||||
|         }, | ||||
|         "tags": { | ||||
|  | ||||
| @ -0,0 +1,12 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing basic_fillet_cube_previous_adjacent.kcl | ||||
| --- | ||||
| part001 = startSketchOn('XY') | ||||
|   |> startProfileAt([0, 0], %) | ||||
|   |> line(end = [0, 10], tag = $thing) | ||||
|   |> line(end = [10, 0], tag = $thing1) | ||||
|   |> line(end = [0, -10], tag = $thing2) | ||||
|   |> close(tag = $thing3) | ||||
|   |> extrude(length = 10) | ||||
|   |> fillet(radius = 2, tags = [getPreviousAdjacentEdge(thing3)]) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -84,11 +64,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -104,22 +80,14 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -132,22 +100,14 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       66, | ||||
|       99, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -164,11 +124,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       105, | ||||
|       124, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -185,11 +141,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       130, | ||||
|       165, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -206,11 +158,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       171, | ||||
|       179, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -218,11 +166,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -238,11 +182,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -252,22 +192,14 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -275,11 +207,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -288,11 +216,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -302,11 +226,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -316,11 +236,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -330,11 +246,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -344,11 +256,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -358,11 +266,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -372,11 +276,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -386,11 +286,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -400,11 +296,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       211, | ||||
|       253, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_fillet_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -416,11 +308,7 @@ description: Artifact commands basic_fillet_cube_start.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       211, | ||||
|       253, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_fillet_edge", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -7,9 +7,9 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 253, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 7, | ||||
|             "end": 0, | ||||
|             "name": "part001", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -19,22 +19,22 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 28, | ||||
|                     "end": 0, | ||||
|                     "raw": "'XY'", | ||||
|                     "start": 24, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": "XY" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 23, | ||||
|                   "end": 0, | ||||
|                   "name": "startSketchOn", | ||||
|                   "start": 10, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 29, | ||||
|                 "start": 10, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -43,9 +43,9 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 52, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 51, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -54,9 +54,9 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 55, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 54, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -65,26 +65,26 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 56, | ||||
|                     "start": 50, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 59, | ||||
|                     "start": 58, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 49, | ||||
|                   "end": 0, | ||||
|                   "name": "startProfileAt", | ||||
|                   "start": 35, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 60, | ||||
|                 "start": 35, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -93,17 +93,17 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 74, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 71, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 79, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 78, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -112,9 +112,9 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 83, | ||||
|                           "end": 0, | ||||
|                           "raw": "10", | ||||
|                           "start": 81, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -123,8 +123,8 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 84, | ||||
|                       "start": 77, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -132,14 +132,14 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 89, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 86, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 98, | ||||
|                       "start": 92, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing" | ||||
| @ -147,13 +147,13 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 70, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 66, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 99, | ||||
|                 "start": 66, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -163,17 +163,17 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 113, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 110, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 119, | ||||
|                           "end": 0, | ||||
|                           "raw": "10", | ||||
|                           "start": 117, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -182,9 +182,9 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 122, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 121, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -193,21 +193,21 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 123, | ||||
|                       "start": 116, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 109, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 105, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 124, | ||||
|                 "start": 105, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -217,17 +217,17 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 138, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 135, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 143, | ||||
|                           "end": 0, | ||||
|                           "raw": "0", | ||||
|                           "start": 142, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -237,9 +237,9 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                         }, | ||||
|                         { | ||||
|                           "argument": { | ||||
|                             "end": 148, | ||||
|                             "end": 0, | ||||
|                             "raw": "10", | ||||
|                             "start": 146, | ||||
|                             "start": 0, | ||||
|                             "type": "Literal", | ||||
|                             "type": "Literal", | ||||
|                             "value": { | ||||
| @ -247,15 +247,15 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                               "suffix": "None" | ||||
|                             } | ||||
|                           }, | ||||
|                           "end": 148, | ||||
|                           "end": 0, | ||||
|                           "operator": "-", | ||||
|                           "start": 145, | ||||
|                           "start": 0, | ||||
|                           "type": "UnaryExpression", | ||||
|                           "type": "UnaryExpression" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 149, | ||||
|                       "start": 141, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -263,14 +263,14 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 154, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 151, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 164, | ||||
|                       "start": 157, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "thing2" | ||||
| @ -278,13 +278,13 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 134, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 130, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 165, | ||||
|                 "start": 130, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -292,20 +292,20 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 178, | ||||
|                     "start": 177, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 176, | ||||
|                   "end": 0, | ||||
|                   "name": "close", | ||||
|                   "start": 171, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 179, | ||||
|                 "start": 171, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -314,15 +314,15 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 199, | ||||
|                       "end": 0, | ||||
|                       "name": "length", | ||||
|                       "start": 193, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 204, | ||||
|                       "end": 0, | ||||
|                       "raw": "10", | ||||
|                       "start": 202, | ||||
|                       "start": 0, | ||||
|                       "type": "Literal", | ||||
|                       "type": "Literal", | ||||
|                       "value": { | ||||
| @ -333,13 +333,13 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 192, | ||||
|                   "end": 0, | ||||
|                   "name": "extrude", | ||||
|                   "start": 185, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 205, | ||||
|                 "start": 185, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -349,15 +349,15 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 224, | ||||
|                       "end": 0, | ||||
|                       "name": "radius", | ||||
|                       "start": 218, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 228, | ||||
|                       "end": 0, | ||||
|                       "raw": "2", | ||||
|                       "start": 227, | ||||
|                       "start": 0, | ||||
|                       "type": "Literal", | ||||
|                       "type": "Literal", | ||||
|                       "value": { | ||||
| @ -369,64 +369,64 @@ description: Result of parsing basic_fillet_cube_start.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 234, | ||||
|                       "end": 0, | ||||
|                       "name": "tags", | ||||
|                       "start": 230, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 243, | ||||
|                           "end": 0, | ||||
|                           "name": "thing", | ||||
|                           "start": 238, | ||||
|                           "start": 0, | ||||
|                           "type": "Identifier", | ||||
|                           "type": "Identifier" | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 251, | ||||
|                           "end": 0, | ||||
|                           "name": "thing2", | ||||
|                           "start": 245, | ||||
|                           "start": 0, | ||||
|                           "type": "Identifier", | ||||
|                           "type": "Identifier" | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 252, | ||||
|                       "start": 237, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 217, | ||||
|                   "end": 0, | ||||
|                   "name": "fillet", | ||||
|                   "start": 211, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 253, | ||||
|                 "start": 211, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
|               } | ||||
|             ], | ||||
|             "end": 253, | ||||
|             "start": 10, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "PipeExpression", | ||||
|             "type": "PipeExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 253, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 254, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -10,19 +10,11 @@ description: Operations executed basic_fillet_cube_start.kcl | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           24, | ||||
|           28, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -42,19 +34,11 @@ description: Operations executed basic_fillet_cube_start.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           202, | ||||
|           204, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       185, | ||||
|       205, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -63,11 +47,7 @@ description: Operations executed basic_fillet_cube_start.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         185, | ||||
|         205, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
| @ -86,11 +66,7 @@ description: Operations executed basic_fillet_cube_start.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           227, | ||||
|           228, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       }, | ||||
|       "tags": { | ||||
|         "value": { | ||||
| @ -108,19 +84,11 @@ description: Operations executed basic_fillet_cube_start.kcl | ||||
|             } | ||||
|           ] | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           237, | ||||
|           252, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "fillet", | ||||
|     "sourceRange": [ | ||||
|       211, | ||||
|       253, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -129,11 +97,7 @@ description: Operations executed basic_fillet_cube_start.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         211, | ||||
|         253, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
|  | ||||
| @ -13,11 +13,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             66, | ||||
|             99, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 98, | ||||
|             "start": 92, | ||||
| @ -29,22 +25,14 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             105, | ||||
|             124, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         }, | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             130, | ||||
|             165, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": { | ||||
|             "end": 164, | ||||
|             "start": 157, | ||||
| @ -56,11 +44,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl | ||||
|         { | ||||
|           "faceId": "[uuid]", | ||||
|           "id": "[uuid]", | ||||
|           "sourceRange": [ | ||||
|             171, | ||||
|             179, | ||||
|             0 | ||||
|           ], | ||||
|           "sourceRange": [], | ||||
|           "tag": null, | ||||
|           "type": "extrudePlane" | ||||
|         } | ||||
| @ -72,11 +56,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 66, | ||||
|                 99, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               0.0, | ||||
| @ -100,11 +80,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 105, | ||||
|                 124, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               0.0, | ||||
| @ -123,11 +99,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 130, | ||||
|                 165, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               10.0, | ||||
| @ -151,11 +123,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl | ||||
|           { | ||||
|             "__geoMeta": { | ||||
|               "id": "[uuid]", | ||||
|               "sourceRange": [ | ||||
|                 171, | ||||
|                 179, | ||||
|                 0 | ||||
|               ] | ||||
|               "sourceRange": [] | ||||
|             }, | ||||
|             "from": [ | ||||
|               10.0, | ||||
| @ -216,11 +184,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl | ||||
|           "tag": null, | ||||
|           "__geoMeta": { | ||||
|             "id": "[uuid]", | ||||
|             "sourceRange": [ | ||||
|               35, | ||||
|               60, | ||||
|               0 | ||||
|             ] | ||||
|             "sourceRange": [] | ||||
|           } | ||||
|         }, | ||||
|         "tags": { | ||||
|  | ||||
							
								
								
									
										12
									
								
								rust/kcl-lib/tests/basic_fillet_cube_start/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								rust/kcl-lib/tests/basic_fillet_cube_start/unparsed.snap
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| --- | ||||
| source: kcl-lib/src/simulation_tests.rs | ||||
| description: Result of unparsing basic_fillet_cube_start.kcl | ||||
| --- | ||||
| part001 = startSketchOn('XY') | ||||
|   |> startProfileAt([0, 0], %) | ||||
|   |> line(end = [0, 10], tag = $thing) | ||||
|   |> line(end = [10, 0]) | ||||
|   |> line(end = [0, -10], tag = $thing2) | ||||
|   |> close(%) | ||||
|   |> extrude(length = 10) | ||||
|   |> fillet(radius = 2, tags = [thing, thing2]) | ||||
| @ -5,11 +5,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
| [ | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "edge_lines_visible", | ||||
|       "hidden": false | ||||
| @ -17,11 +13,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "set_scene_units", | ||||
|       "unit": "mm" | ||||
| @ -29,11 +21,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -42,11 +30,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       0, | ||||
|       0, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_visible", | ||||
|       "object_id": "[uuid]", | ||||
| @ -55,11 +39,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "make_plane", | ||||
|       "origin": { | ||||
| @ -84,11 +64,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -104,22 +80,14 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "start_path" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "move_path_pen", | ||||
|       "path": "[uuid]", | ||||
| @ -132,22 +100,14 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       35, | ||||
|       60, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       66, | ||||
|       101, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -164,11 +124,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       107, | ||||
|       163, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extend_path", | ||||
|       "path": "[uuid]", | ||||
| @ -185,11 +141,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       169, | ||||
|       177, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "close_path", | ||||
|       "path_id": "[uuid]" | ||||
| @ -197,11 +149,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       183, | ||||
|       203, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "enable_sketch_mode", | ||||
|       "entity_id": "[uuid]", | ||||
| @ -217,11 +165,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       183, | ||||
|       203, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "extrude", | ||||
|       "target": "[uuid]", | ||||
| @ -231,22 +175,14 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       183, | ||||
|       203, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "sketch_mode_disable" | ||||
|     } | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       183, | ||||
|       203, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "object_bring_to_front", | ||||
|       "object_id": "[uuid]" | ||||
| @ -254,11 +190,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       183, | ||||
|       203, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_extrusion_face_info", | ||||
|       "object_id": "[uuid]", | ||||
| @ -267,11 +199,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       183, | ||||
|       203, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -281,11 +209,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       183, | ||||
|       203, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -295,11 +219,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       183, | ||||
|       203, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -309,11 +229,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       183, | ||||
|       203, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -323,11 +239,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       183, | ||||
|       203, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_opposite_edge", | ||||
|       "object_id": "[uuid]", | ||||
| @ -337,11 +249,7 @@ description: Artifact commands big_number_angle_to_match_length_x.kcl | ||||
|   }, | ||||
|   { | ||||
|     "cmdId": "[uuid]", | ||||
|     "range": [ | ||||
|       183, | ||||
|       203, | ||||
|       0 | ||||
|     ], | ||||
|     "range": [], | ||||
|     "command": { | ||||
|       "type": "solid3d_get_next_adjacent_edge", | ||||
|       "object_id": "[uuid]", | ||||
|  | ||||
| @ -7,9 +7,9 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|     "body": [ | ||||
|       { | ||||
|         "declaration": { | ||||
|           "end": 203, | ||||
|           "end": 0, | ||||
|           "id": { | ||||
|             "end": 7, | ||||
|             "end": 0, | ||||
|             "name": "part001", | ||||
|             "start": 0, | ||||
|             "type": "Identifier" | ||||
| @ -19,22 +19,22 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 28, | ||||
|                     "end": 0, | ||||
|                     "raw": "'XY'", | ||||
|                     "start": 24, | ||||
|                     "start": 0, | ||||
|                     "type": "Literal", | ||||
|                     "type": "Literal", | ||||
|                     "value": "XY" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 23, | ||||
|                   "end": 0, | ||||
|                   "name": "startSketchOn", | ||||
|                   "start": 10, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 29, | ||||
|                 "start": 10, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -43,9 +43,9 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                   { | ||||
|                     "elements": [ | ||||
|                       { | ||||
|                         "end": 52, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 51, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -54,9 +54,9 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                         } | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 55, | ||||
|                         "end": 0, | ||||
|                         "raw": "0", | ||||
|                         "start": 54, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -65,26 +65,26 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 56, | ||||
|                     "start": 50, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 59, | ||||
|                     "start": 58, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 49, | ||||
|                   "end": 0, | ||||
|                   "name": "startProfileAt", | ||||
|                   "start": 35, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 60, | ||||
|                 "start": 35, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -93,17 +93,17 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 74, | ||||
|                       "end": 0, | ||||
|                       "name": "end", | ||||
|                       "start": 71, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "elements": [ | ||||
|                         { | ||||
|                           "end": 79, | ||||
|                           "end": 0, | ||||
|                           "raw": "1", | ||||
|                           "start": 78, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -112,9 +112,9 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                           } | ||||
|                         }, | ||||
|                         { | ||||
|                           "end": 85, | ||||
|                           "end": 0, | ||||
|                           "raw": "3.82", | ||||
|                           "start": 81, | ||||
|                           "start": 0, | ||||
|                           "type": "Literal", | ||||
|                           "type": "Literal", | ||||
|                           "value": { | ||||
| @ -123,8 +123,8 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                           } | ||||
|                         } | ||||
|                       ], | ||||
|                       "end": 86, | ||||
|                       "start": 77, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "ArrayExpression", | ||||
|                       "type": "ArrayExpression" | ||||
|                     } | ||||
| @ -132,14 +132,14 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 91, | ||||
|                       "end": 0, | ||||
|                       "name": "tag", | ||||
|                       "start": 88, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 100, | ||||
|                       "start": 94, | ||||
|                       "end": 0, | ||||
|                       "start": 0, | ||||
|                       "type": "TagDeclarator", | ||||
|                       "type": "TagDeclarator", | ||||
|                       "value": "seg01" | ||||
| @ -147,13 +147,13 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 70, | ||||
|                   "end": 0, | ||||
|                   "name": "line", | ||||
|                   "start": 66, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 101, | ||||
|                 "start": 66, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
| @ -166,16 +166,16 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                         "argument": { | ||||
|                           "arguments": [ | ||||
|                             { | ||||
|                               "end": 148, | ||||
|                               "end": 0, | ||||
|                               "name": "seg01", | ||||
|                               "start": 143, | ||||
|                               "start": 0, | ||||
|                               "type": "Identifier", | ||||
|                               "type": "Identifier" | ||||
|                             }, | ||||
|                             { | ||||
|                               "end": 151, | ||||
|                               "end": 0, | ||||
|                               "raw": "3", | ||||
|                               "start": 150, | ||||
|                               "start": 0, | ||||
|                               "type": "Literal", | ||||
|                               "type": "Literal", | ||||
|                               "value": { | ||||
| @ -184,33 +184,33 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                               } | ||||
|                             }, | ||||
|                             { | ||||
|                               "end": 154, | ||||
|                               "start": 153, | ||||
|                               "end": 0, | ||||
|                               "start": 0, | ||||
|                               "type": "PipeSubstitution", | ||||
|                               "type": "PipeSubstitution" | ||||
|                             } | ||||
|                           ], | ||||
|                           "callee": { | ||||
|                             "end": 142, | ||||
|                             "end": 0, | ||||
|                             "name": "angleToMatchLengthX", | ||||
|                             "start": 123, | ||||
|                             "start": 0, | ||||
|                             "type": "Identifier" | ||||
|                           }, | ||||
|                           "end": 155, | ||||
|                           "start": 123, | ||||
|                           "end": 0, | ||||
|                           "start": 0, | ||||
|                           "type": "CallExpression", | ||||
|                           "type": "CallExpression" | ||||
|                         }, | ||||
|                         "end": 155, | ||||
|                         "end": 0, | ||||
|                         "operator": "-", | ||||
|                         "start": 122, | ||||
|                         "start": 0, | ||||
|                         "type": "UnaryExpression", | ||||
|                         "type": "UnaryExpression" | ||||
|                       }, | ||||
|                       { | ||||
|                         "end": 158, | ||||
|                         "end": 0, | ||||
|                         "raw": "3", | ||||
|                         "start": 157, | ||||
|                         "start": 0, | ||||
|                         "type": "Literal", | ||||
|                         "type": "Literal", | ||||
|                         "value": { | ||||
| @ -219,46 +219,46 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                         } | ||||
|                       } | ||||
|                     ], | ||||
|                     "end": 159, | ||||
|                     "start": 121, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "ArrayExpression", | ||||
|                     "type": "ArrayExpression" | ||||
|                   }, | ||||
|                   { | ||||
|                     "end": 162, | ||||
|                     "start": 161, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 120, | ||||
|                   "end": 0, | ||||
|                   "name": "angledLineToX", | ||||
|                   "start": 107, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 163, | ||||
|                 "start": 107, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
|               { | ||||
|                 "arguments": [ | ||||
|                   { | ||||
|                     "end": 176, | ||||
|                     "start": 175, | ||||
|                     "end": 0, | ||||
|                     "start": 0, | ||||
|                     "type": "PipeSubstitution", | ||||
|                     "type": "PipeSubstitution" | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 174, | ||||
|                   "end": 0, | ||||
|                   "name": "close", | ||||
|                   "start": 169, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 177, | ||||
|                 "start": 169, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpression", | ||||
|                 "type": "CallExpression" | ||||
|               }, | ||||
| @ -267,15 +267,15 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                   { | ||||
|                     "type": "LabeledArg", | ||||
|                     "label": { | ||||
|                       "end": 197, | ||||
|                       "end": 0, | ||||
|                       "name": "length", | ||||
|                       "start": 191, | ||||
|                       "start": 0, | ||||
|                       "type": "Identifier" | ||||
|                     }, | ||||
|                     "arg": { | ||||
|                       "end": 202, | ||||
|                       "end": 0, | ||||
|                       "raw": "10", | ||||
|                       "start": 200, | ||||
|                       "start": 0, | ||||
|                       "type": "Literal", | ||||
|                       "type": "Literal", | ||||
|                       "value": { | ||||
| @ -286,34 +286,34 @@ description: Result of parsing big_number_angle_to_match_length_x.kcl | ||||
|                   } | ||||
|                 ], | ||||
|                 "callee": { | ||||
|                   "end": 190, | ||||
|                   "end": 0, | ||||
|                   "name": "extrude", | ||||
|                   "start": 183, | ||||
|                   "start": 0, | ||||
|                   "type": "Identifier" | ||||
|                 }, | ||||
|                 "end": 203, | ||||
|                 "start": 183, | ||||
|                 "end": 0, | ||||
|                 "start": 0, | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "type": "CallExpressionKw", | ||||
|                 "unlabeled": null | ||||
|               } | ||||
|             ], | ||||
|             "end": 203, | ||||
|             "start": 10, | ||||
|             "end": 0, | ||||
|             "start": 0, | ||||
|             "type": "PipeExpression", | ||||
|             "type": "PipeExpression" | ||||
|           }, | ||||
|           "start": 0, | ||||
|           "type": "VariableDeclarator" | ||||
|         }, | ||||
|         "end": 203, | ||||
|         "end": 0, | ||||
|         "kind": "const", | ||||
|         "start": 0, | ||||
|         "type": "VariableDeclaration", | ||||
|         "type": "VariableDeclaration" | ||||
|       } | ||||
|     ], | ||||
|     "end": 204, | ||||
|     "end": 0, | ||||
|     "start": 0 | ||||
|   } | ||||
| } | ||||
|  | ||||
| @ -10,19 +10,11 @@ description: Operations executed big_number_angle_to_match_length_x.kcl | ||||
|           "type": "String", | ||||
|           "value": "XY" | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           24, | ||||
|           28, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "startSketchOn", | ||||
|     "sourceRange": [ | ||||
|       10, | ||||
|       29, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": null | ||||
|   }, | ||||
| @ -42,19 +34,11 @@ description: Operations executed big_number_angle_to_match_length_x.kcl | ||||
|             } | ||||
|           } | ||||
|         }, | ||||
|         "sourceRange": [ | ||||
|           200, | ||||
|           202, | ||||
|           0 | ||||
|         ] | ||||
|         "sourceRange": [] | ||||
|       } | ||||
|     }, | ||||
|     "name": "extrude", | ||||
|     "sourceRange": [ | ||||
|       183, | ||||
|       203, | ||||
|       0 | ||||
|     ], | ||||
|     "sourceRange": [], | ||||
|     "type": "StdLibCall", | ||||
|     "unlabeledArg": { | ||||
|       "value": { | ||||
| @ -63,11 +47,7 @@ description: Operations executed big_number_angle_to_match_length_x.kcl | ||||
|           "artifactId": "[uuid]" | ||||
|         } | ||||
|       }, | ||||
|       "sourceRange": [ | ||||
|         183, | ||||
|         203, | ||||
|         0 | ||||
|       ] | ||||
|       "sourceRange": [] | ||||
|     } | ||||
|   } | ||||
| ] | ||||
|  | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user