| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  | --- | 
					
						
							|  |  |  | source: kcl/src/simulation_tests.rs | 
					
						
							|  |  |  | description: Result of parsing non_string_key_of_object.kcl | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   "Ok": { | 
					
						
							|  |  |  |     "body": [ | 
					
						
							|  |  |  |       { | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |         "declaration": { | 
					
						
							|  |  |  |           "end": 19, | 
					
						
							|  |  |  |           "id": { | 
					
						
							|  |  |  |             "end": 3, | 
					
						
							|  |  |  |             "name": "obj", | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							|  |  |  |             "type": "Identifier" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "init": { | 
					
						
							| 
									
										
										
										
											2024-11-25 09:21:55 +13:00
										 |  |  |             "end": 19, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "properties": [ | 
					
						
							|  |  |  |               { | 
					
						
							|  |  |  |                 "end": 17, | 
					
						
							|  |  |  |                 "key": { | 
					
						
							|  |  |  |                   "end": 11, | 
					
						
							|  |  |  |                   "name": "key", | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |                   "start": 8, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                   "type": "Identifier" | 
					
						
							|  |  |  |                 }, | 
					
						
							|  |  |  |                 "start": 8, | 
					
						
							|  |  |  |                 "type": "ObjectProperty", | 
					
						
							|  |  |  |                 "value": { | 
					
						
							|  |  |  |                   "end": 17, | 
					
						
							|  |  |  |                   "raw": "123", | 
					
						
							|  |  |  |                   "start": 14, | 
					
						
							|  |  |  |                   "type": "Literal", | 
					
						
							|  |  |  |                   "type": "Literal", | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |                   "value": { | 
					
						
							|  |  |  |                     "value": 123.0, | 
					
						
							|  |  |  |                     "suffix": "None" | 
					
						
							|  |  |  |                   } | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |                 } | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |               } | 
					
						
							|  |  |  |             ], | 
					
						
							|  |  |  |             "start": 6, | 
					
						
							|  |  |  |             "type": "ObjectExpression", | 
					
						
							|  |  |  |             "type": "ObjectExpression" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "start": 0, | 
					
						
							|  |  |  |           "type": "VariableDeclarator" | 
					
						
							|  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2024-11-25 09:21:55 +13:00
										 |  |  |         "end": 19, | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |         "kind": "const", | 
					
						
							|  |  |  |         "start": 0, | 
					
						
							|  |  |  |         "type": "VariableDeclaration", | 
					
						
							|  |  |  |         "type": "VariableDeclaration" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |         "declaration": { | 
					
						
							|  |  |  |           "end": 32, | 
					
						
							|  |  |  |           "id": { | 
					
						
							|  |  |  |             "end": 23, | 
					
						
							|  |  |  |             "name": "num", | 
					
						
							|  |  |  |             "start": 20, | 
					
						
							|  |  |  |             "type": "Identifier" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "init": { | 
					
						
							|  |  |  |             "computed": false, | 
					
						
							| 
									
										
										
										
											2024-11-25 09:21:55 +13:00
										 |  |  |             "end": 32, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "object": { | 
					
						
							|  |  |  |               "end": 29, | 
					
						
							|  |  |  |               "name": "obj", | 
					
						
							|  |  |  |               "start": 26, | 
					
						
							|  |  |  |               "type": "Identifier", | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |               "type": "Identifier" | 
					
						
							|  |  |  |             }, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "property": { | 
					
						
							|  |  |  |               "end": 31, | 
					
						
							|  |  |  |               "raw": "3", | 
					
						
							|  |  |  |               "start": 30, | 
					
						
							|  |  |  |               "type": "Literal", | 
					
						
							|  |  |  |               "type": "Literal", | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |               "value": { | 
					
						
							|  |  |  |                 "value": 3.0, | 
					
						
							|  |  |  |                 "suffix": "None" | 
					
						
							|  |  |  |               } | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |             }, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "start": 26, | 
					
						
							|  |  |  |             "type": "MemberExpression", | 
					
						
							|  |  |  |             "type": "MemberExpression" | 
					
						
							|  |  |  |           }, | 
					
						
							|  |  |  |           "start": 20, | 
					
						
							|  |  |  |           "type": "VariableDeclarator" | 
					
						
							|  |  |  |         }, | 
					
						
							| 
									
										
										
										
											2024-11-25 09:21:55 +13:00
										 |  |  |         "end": 32, | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |         "kind": "const", | 
					
						
							| 
									
										
										
										
											2024-11-25 09:21:55 +13:00
										 |  |  |         "start": 20, | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |         "type": "VariableDeclaration", | 
					
						
							|  |  |  |         "type": "VariableDeclaration" | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2024-11-25 09:21:55 +13:00
										 |  |  |     "end": 33, | 
					
						
							| 
									
										
										
										
											2024-11-18 16:20:32 -06:00
										 |  |  |     "start": 0 | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |