| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  | --- | 
					
						
							| 
									
										
										
										
											2025-03-18 16:36:48 -07:00
										 |  |  | source: kcl-lib/src/simulation_tests.rs | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  | description: Result of parsing invalid_index_str.kcl | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   "Ok": { | 
					
						
							|  |  |  |     "body": [ | 
					
						
							|  |  |  |       { | 
					
						
							| 
									
										
										
										
											2025-03-20 16:23:20 +13:00
										 |  |  |         "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |         "declaration": { | 
					
						
							| 
									
										
										
										
											2025-03-20 16:23:20 +13:00
										 |  |  |           "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |           "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |           "id": { | 
					
						
							| 
									
										
										
										
											2025-03-20 16:23:20 +13:00
										 |  |  |             "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "name": "arr", | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "type": "Identifier" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "init": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |             "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "elements": [ | 
					
						
							|  |  |  |               { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |                 "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                 "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 "raw": "1", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                 "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |                 "value": { | 
					
						
							|  |  |  |                   "value": 1.0, | 
					
						
							|  |  |  |                   "suffix": "None" | 
					
						
							|  |  |  |                 } | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |               }, | 
					
						
							|  |  |  |               { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |                 "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                 "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 "raw": "2", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                 "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |                 "value": { | 
					
						
							|  |  |  |                   "value": 2.0, | 
					
						
							|  |  |  |                   "suffix": "None" | 
					
						
							|  |  |  |                 } | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |               }, | 
					
						
							|  |  |  |               { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |                 "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                 "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 "raw": "3", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                 "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |                 "value": { | 
					
						
							|  |  |  |                   "value": 3.0, | 
					
						
							|  |  |  |                   "suffix": "None" | 
					
						
							|  |  |  |                 } | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |               } | 
					
						
							|  |  |  |             ], | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "type": "ArrayExpression", | 
					
						
							|  |  |  |             "type": "ArrayExpression" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "start": 0, | 
					
						
							|  |  |  |           "type": "VariableDeclarator" | 
					
						
							|  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "end": 0, | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |         "kind": "const", | 
					
						
							|  |  |  |         "start": 0, | 
					
						
							|  |  |  |         "type": "VariableDeclaration", | 
					
						
							|  |  |  |         "type": "VariableDeclaration" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |         "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |         "declaration": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |           "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |           "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |           "id": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |             "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "name": "x", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "type": "Identifier" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "init": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |             "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "computed": false, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "object": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |               "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |               "name": "arr", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |               "type": "Identifier", | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |               "type": "Identifier" | 
					
						
							|  |  |  |             }, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "property": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |               "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |               "raw": "\"s\"", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |               "type": "Literal", | 
					
						
							|  |  |  |               "type": "Literal", | 
					
						
							|  |  |  |               "value": "s" | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |             }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "type": "MemberExpression", | 
					
						
							|  |  |  |             "type": "MemberExpression" | 
					
						
							|  |  |  |           }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |           "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |           "type": "VariableDeclarator" | 
					
						
							|  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "end": 0, | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |         "kind": "const", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06: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, | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |     "start": 0 | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |