| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  | --- | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  | source: kcl-lib/src/simulation_tests.rs | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  | description: Result of parsing import_foreign.kcl | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   "Ok": { | 
					
						
							|  |  |  |     "body": [ | 
					
						
							|  |  |  |       { | 
					
						
							| 
									
										
										
										
											2025-03-20 16:23:20 +13:00
										 |  |  |         "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "end": 0, | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |         "path": { | 
					
						
							|  |  |  |           "type": "Foreign", | 
					
						
							|  |  |  |           "path": "../inputs/cube.gltf" | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "selector": { | 
					
						
							|  |  |  |           "type": "None", | 
					
						
							|  |  |  |           "alias": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |             "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |             "name": "cube", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |             "type": "Identifier" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         "start": 0, | 
					
						
							|  |  |  |         "type": "ImportStatement", | 
					
						
							|  |  |  |         "type": "ImportStatement" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |         "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |         "declaration": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |           "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |           "end": 0, | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |           "id": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |             "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |             "name": "model", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |             "type": "Identifier" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "init": { | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |             "abs_path": false, | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |             "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |             "name": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |               "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |               "end": 0, | 
					
						
							|  |  |  |               "name": "cube", | 
					
						
							|  |  |  |               "start": 0, | 
					
						
							|  |  |  |               "type": "Identifier" | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             "path": [], | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |             "type": "Name", | 
					
						
							|  |  |  |             "type": "Name" | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |           }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |           "start": 0, | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |           "type": "VariableDeclarator" | 
					
						
							|  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "end": 0, | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |         "kind": "const", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "start": 0, | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |         "type": "VariableDeclaration", | 
					
						
							|  |  |  |         "type": "VariableDeclaration" | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2025-03-20 16:23:20 +13:00
										 |  |  |     "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |     "end": 0, | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |     "nonCodeMeta": { | 
					
						
							|  |  |  |       "nonCodeNodes": { | 
					
						
							|  |  |  |         "0": [ | 
					
						
							|  |  |  |           { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |             "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2025-01-29 08:28:32 +13:00
										 |  |  |             "type": "NonCodeNode", | 
					
						
							|  |  |  |             "value": { | 
					
						
							|  |  |  |               "type": "newLine" | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         ] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "startNodes": [] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "start": 0 | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |