| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  | --- | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  | source: kcl-lib/src/simulation_tests.rs | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  | description: Result of parsing if_else.kcl | 
					
						
							|  |  |  | --- | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   "Ok": { | 
					
						
							|  |  |  |     "body": [ | 
					
						
							|  |  |  |       { | 
					
						
							| 
									
										
										
										
											2025-03-20 16:23:20 +13: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": "a", | 
					
						
							| 
									
										
										
										
											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
										 |  |  |             "cond": { | 
					
						
							| 
									
										
										
										
											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": "true", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |               "type": "Literal", | 
					
						
							|  |  |  |               "type": "Literal", | 
					
						
							|  |  |  |               "value": true | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             }, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "digest": null, | 
					
						
							|  |  |  |             "else_ifs": [ | 
					
						
							|  |  |  |               { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |                 "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 "cond": { | 
					
						
							| 
									
										
										
										
											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": "true", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                   "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                   "type": "Literal", | 
					
						
							|  |  |  |                   "type": "Literal", | 
					
						
							|  |  |  |                   "value": true | 
					
						
							|  |  |  |                 }, | 
					
						
							|  |  |  |                 "digest": null, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                 "end": 0, | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 "then_val": { | 
					
						
							|  |  |  |                   "body": [ | 
					
						
							|  |  |  |                     { | 
					
						
							| 
									
										
										
										
											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
										 |  |  |                       "expression": { | 
					
						
							| 
									
										
										
										
											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": "4", | 
					
						
							| 
									
										
										
										
											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": 4.0, | 
					
						
							|  |  |  |                           "suffix": "None" | 
					
						
							|  |  |  |                         } | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                       }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                       "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                       "type": "ExpressionStatement", | 
					
						
							|  |  |  |                       "type": "ExpressionStatement" | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                   ], | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |                   "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                   "end": 0, | 
					
						
							|  |  |  |                   "start": 0 | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 }, | 
					
						
							|  |  |  |                 "type": "ElseIf" | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             ], | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "final_else": { | 
					
						
							|  |  |  |               "body": [ | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06: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
										 |  |  |                   "expression": { | 
					
						
							| 
									
										
										
										
											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": "5", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                     "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |                     "type": "Literal", | 
					
						
							|  |  |  |                     "type": "Literal", | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |                     "value": { | 
					
						
							|  |  |  |                       "value": 5.0, | 
					
						
							|  |  |  |                       "suffix": "None" | 
					
						
							|  |  |  |                     } | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |                   }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                   "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                   "type": "ExpressionStatement", | 
					
						
							|  |  |  |                   "type": "ExpressionStatement" | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |                 } | 
					
						
							|  |  |  |               ], | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |               "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "end": 0, | 
					
						
							|  |  |  |               "start": 0 | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "then_val": { | 
					
						
							|  |  |  |               "body": [ | 
					
						
							|  |  |  |                 { | 
					
						
							| 
									
										
										
										
											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
										 |  |  |                   "expression": { | 
					
						
							| 
									
										
										
										
											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
										 |  |  |                   "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                   "type": "ExpressionStatement", | 
					
						
							|  |  |  |                   "type": "ExpressionStatement" | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |               ], | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |               "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "end": 0, | 
					
						
							|  |  |  |               "start": 0 | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             }, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "type": "IfExpression", | 
					
						
							|  |  |  |             "type": "IfExpression" | 
					
						
							|  |  |  |           }, | 
					
						
							| 
									
										
										
										
											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-04 20:34:22 -06:00
										 |  |  |         "kind": "const", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |         "type": "VariableDeclaration", | 
					
						
							|  |  |  |         "type": "VariableDeclaration" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |         "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "end": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |         "expression": { | 
					
						
							|  |  |  |           "arguments": [ | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |               "type": "LabeledArg", | 
					
						
							|  |  |  |               "label": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |                 "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |                 "end": 0, | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |                 "name": "isEqualTo", | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Identifier" | 
					
						
							|  |  |  |               }, | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |               "arg": { | 
					
						
							|  |  |  |                 "commentStart": 0, | 
					
						
							|  |  |  |                 "end": 0, | 
					
						
							|  |  |  |                 "raw": "3", | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "value": { | 
					
						
							|  |  |  |                   "value": 3.0, | 
					
						
							|  |  |  |                   "suffix": "None" | 
					
						
							|  |  |  |                 } | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |               } | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |               "type": "LabeledArg", | 
					
						
							|  |  |  |               "label": { | 
					
						
							|  |  |  |                 "commentStart": 0, | 
					
						
							|  |  |  |                 "end": 0, | 
					
						
							|  |  |  |                 "name": "error", | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Identifier" | 
					
						
							|  |  |  |               }, | 
					
						
							|  |  |  |               "arg": { | 
					
						
							|  |  |  |                 "commentStart": 0, | 
					
						
							|  |  |  |                 "end": 0, | 
					
						
							|  |  |  |                 "raw": "\"the 'if' branch gets returned\"", | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "value": "the 'if' branch gets returned" | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |               } | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             } | 
					
						
							|  |  |  |           ], | 
					
						
							|  |  |  |           "callee": { | 
					
						
							| 
									
										
										
										
											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, | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |               "name": "assert", | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |               "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" | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |           }, | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |           "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |           "end": 0, | 
					
						
							|  |  |  |           "start": 0, | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |           "type": "CallExpressionKw", | 
					
						
							|  |  |  |           "type": "CallExpressionKw", | 
					
						
							|  |  |  |           "unlabeled": { | 
					
						
							|  |  |  |             "abs_path": false, | 
					
						
							|  |  |  |             "commentStart": 0, | 
					
						
							|  |  |  |             "end": 0, | 
					
						
							|  |  |  |             "name": { | 
					
						
							|  |  |  |               "commentStart": 0, | 
					
						
							|  |  |  |               "end": 0, | 
					
						
							|  |  |  |               "name": "a", | 
					
						
							|  |  |  |               "start": 0, | 
					
						
							|  |  |  |               "type": "Identifier" | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             "path": [], | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							|  |  |  |             "type": "Name", | 
					
						
							|  |  |  |             "type": "Name" | 
					
						
							|  |  |  |           } | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |         "type": "ExpressionStatement", | 
					
						
							|  |  |  |         "type": "ExpressionStatement" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							| 
									
										
										
										
											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": "b", | 
					
						
							| 
									
										
										
										
											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
										 |  |  |             "cond": { | 
					
						
							| 
									
										
										
										
											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": "false", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |               "type": "Literal", | 
					
						
							|  |  |  |               "type": "Literal", | 
					
						
							|  |  |  |               "value": false | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             }, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "digest": null, | 
					
						
							|  |  |  |             "else_ifs": [ | 
					
						
							|  |  |  |               { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |                 "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 "cond": { | 
					
						
							| 
									
										
										
										
											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": "true", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                   "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                   "type": "Literal", | 
					
						
							|  |  |  |                   "type": "Literal", | 
					
						
							|  |  |  |                   "value": true | 
					
						
							|  |  |  |                 }, | 
					
						
							|  |  |  |                 "digest": null, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                 "end": 0, | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 "then_val": { | 
					
						
							|  |  |  |                   "body": [ | 
					
						
							|  |  |  |                     { | 
					
						
							| 
									
										
										
										
											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
										 |  |  |                       "expression": { | 
					
						
							| 
									
										
										
										
											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": "4", | 
					
						
							| 
									
										
										
										
											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": 4.0, | 
					
						
							|  |  |  |                           "suffix": "None" | 
					
						
							|  |  |  |                         } | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                       }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                       "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                       "type": "ExpressionStatement", | 
					
						
							|  |  |  |                       "type": "ExpressionStatement" | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                   ], | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |                   "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                   "end": 0, | 
					
						
							|  |  |  |                   "start": 0 | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 }, | 
					
						
							|  |  |  |                 "type": "ElseIf" | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             ], | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "final_else": { | 
					
						
							|  |  |  |               "body": [ | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06: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
										 |  |  |                   "expression": { | 
					
						
							| 
									
										
										
										
											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": "5", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                     "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |                     "type": "Literal", | 
					
						
							|  |  |  |                     "type": "Literal", | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |                     "value": { | 
					
						
							|  |  |  |                       "value": 5.0, | 
					
						
							|  |  |  |                       "suffix": "None" | 
					
						
							|  |  |  |                     } | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |                   }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                   "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                   "type": "ExpressionStatement", | 
					
						
							|  |  |  |                   "type": "ExpressionStatement" | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |                 } | 
					
						
							|  |  |  |               ], | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |               "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "end": 0, | 
					
						
							|  |  |  |               "start": 0 | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "then_val": { | 
					
						
							|  |  |  |               "body": [ | 
					
						
							|  |  |  |                 { | 
					
						
							| 
									
										
										
										
											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
										 |  |  |                   "expression": { | 
					
						
							| 
									
										
										
										
											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
										 |  |  |                   "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                   "type": "ExpressionStatement", | 
					
						
							|  |  |  |                   "type": "ExpressionStatement" | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |               ], | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |               "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "end": 0, | 
					
						
							|  |  |  |               "start": 0 | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             }, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "type": "IfExpression", | 
					
						
							|  |  |  |             "type": "IfExpression" | 
					
						
							|  |  |  |           }, | 
					
						
							| 
									
										
										
										
											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-04 20:34:22 -06:00
										 |  |  |         "kind": "const", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |         "type": "VariableDeclaration", | 
					
						
							|  |  |  |         "type": "VariableDeclaration" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |         "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "end": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |         "expression": { | 
					
						
							|  |  |  |           "arguments": [ | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |               "type": "LabeledArg", | 
					
						
							|  |  |  |               "label": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |                 "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |                 "end": 0, | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |                 "name": "isEqualTo", | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Identifier" | 
					
						
							|  |  |  |               }, | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |               "arg": { | 
					
						
							|  |  |  |                 "commentStart": 0, | 
					
						
							|  |  |  |                 "end": 0, | 
					
						
							|  |  |  |                 "raw": "4", | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "value": { | 
					
						
							|  |  |  |                   "value": 4.0, | 
					
						
							|  |  |  |                   "suffix": "None" | 
					
						
							|  |  |  |                 } | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |               } | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |               "type": "LabeledArg", | 
					
						
							|  |  |  |               "label": { | 
					
						
							|  |  |  |                 "commentStart": 0, | 
					
						
							|  |  |  |                 "end": 0, | 
					
						
							|  |  |  |                 "name": "error", | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Identifier" | 
					
						
							|  |  |  |               }, | 
					
						
							|  |  |  |               "arg": { | 
					
						
							|  |  |  |                 "commentStart": 0, | 
					
						
							|  |  |  |                 "end": 0, | 
					
						
							|  |  |  |                 "raw": "\"the 'else if' branch gets returned\"", | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "value": "the 'else if' branch gets returned" | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |               } | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             } | 
					
						
							|  |  |  |           ], | 
					
						
							|  |  |  |           "callee": { | 
					
						
							| 
									
										
										
										
											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, | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |               "name": "assert", | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |               "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" | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |           }, | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |           "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |           "end": 0, | 
					
						
							|  |  |  |           "start": 0, | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |           "type": "CallExpressionKw", | 
					
						
							|  |  |  |           "type": "CallExpressionKw", | 
					
						
							|  |  |  |           "unlabeled": { | 
					
						
							|  |  |  |             "abs_path": false, | 
					
						
							|  |  |  |             "commentStart": 0, | 
					
						
							|  |  |  |             "end": 0, | 
					
						
							|  |  |  |             "name": { | 
					
						
							|  |  |  |               "commentStart": 0, | 
					
						
							|  |  |  |               "end": 0, | 
					
						
							|  |  |  |               "name": "b", | 
					
						
							|  |  |  |               "start": 0, | 
					
						
							|  |  |  |               "type": "Identifier" | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             "path": [], | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							|  |  |  |             "type": "Name", | 
					
						
							|  |  |  |             "type": "Name" | 
					
						
							|  |  |  |           } | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |         "type": "ExpressionStatement", | 
					
						
							|  |  |  |         "type": "ExpressionStatement" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							| 
									
										
										
										
											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": "c", | 
					
						
							| 
									
										
										
										
											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
										 |  |  |             "cond": { | 
					
						
							| 
									
										
										
										
											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": "false", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |               "type": "Literal", | 
					
						
							|  |  |  |               "type": "Literal", | 
					
						
							|  |  |  |               "value": false | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             }, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "digest": null, | 
					
						
							|  |  |  |             "else_ifs": [ | 
					
						
							|  |  |  |               { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |                 "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 "cond": { | 
					
						
							| 
									
										
										
										
											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": "false", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                   "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                   "type": "Literal", | 
					
						
							|  |  |  |                   "type": "Literal", | 
					
						
							|  |  |  |                   "value": false | 
					
						
							|  |  |  |                 }, | 
					
						
							|  |  |  |                 "digest": null, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                 "end": 0, | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 "then_val": { | 
					
						
							|  |  |  |                   "body": [ | 
					
						
							|  |  |  |                     { | 
					
						
							| 
									
										
										
										
											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
										 |  |  |                       "expression": { | 
					
						
							| 
									
										
										
										
											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": "4", | 
					
						
							| 
									
										
										
										
											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": 4.0, | 
					
						
							|  |  |  |                           "suffix": "None" | 
					
						
							|  |  |  |                         } | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                       }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                       "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                       "type": "ExpressionStatement", | 
					
						
							|  |  |  |                       "type": "ExpressionStatement" | 
					
						
							|  |  |  |                     } | 
					
						
							|  |  |  |                   ], | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |                   "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                   "end": 0, | 
					
						
							|  |  |  |                   "start": 0 | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                 }, | 
					
						
							|  |  |  |                 "type": "ElseIf" | 
					
						
							|  |  |  |               } | 
					
						
							|  |  |  |             ], | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "final_else": { | 
					
						
							|  |  |  |               "body": [ | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06: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
										 |  |  |                   "expression": { | 
					
						
							| 
									
										
										
										
											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": "5", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                     "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |                     "type": "Literal", | 
					
						
							|  |  |  |                     "type": "Literal", | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |                     "value": { | 
					
						
							|  |  |  |                       "value": 5.0, | 
					
						
							|  |  |  |                       "suffix": "None" | 
					
						
							|  |  |  |                     } | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |                   }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |                   "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                   "type": "ExpressionStatement", | 
					
						
							|  |  |  |                   "type": "ExpressionStatement" | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |                 } | 
					
						
							|  |  |  |               ], | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |               "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "end": 0, | 
					
						
							|  |  |  |               "start": 0 | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "then_val": { | 
					
						
							|  |  |  |               "body": [ | 
					
						
							|  |  |  |                 { | 
					
						
							| 
									
										
										
										
											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
										 |  |  |                   "expression": { | 
					
						
							| 
									
										
										
										
											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
										 |  |  |                   "start": 0, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |                   "type": "ExpressionStatement", | 
					
						
							|  |  |  |                   "type": "ExpressionStatement" | 
					
						
							|  |  |  |                 } | 
					
						
							|  |  |  |               ], | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |               "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |               "end": 0, | 
					
						
							|  |  |  |               "start": 0 | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             }, | 
					
						
							| 
									
										
										
										
											2024-12-07 07:16:04 +13:00
										 |  |  |             "type": "IfExpression", | 
					
						
							|  |  |  |             "type": "IfExpression" | 
					
						
							|  |  |  |           }, | 
					
						
							| 
									
										
										
										
											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-04 20:34:22 -06:00
										 |  |  |         "kind": "const", | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |         "type": "VariableDeclaration", | 
					
						
							|  |  |  |         "type": "VariableDeclaration" | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |         "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "end": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |         "expression": { | 
					
						
							|  |  |  |           "arguments": [ | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |               "type": "LabeledArg", | 
					
						
							|  |  |  |               "label": { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |                 "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |                 "end": 0, | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |                 "name": "isEqualTo", | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Identifier" | 
					
						
							|  |  |  |               }, | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |               "arg": { | 
					
						
							|  |  |  |                 "commentStart": 0, | 
					
						
							|  |  |  |                 "end": 0, | 
					
						
							|  |  |  |                 "raw": "5", | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "value": { | 
					
						
							|  |  |  |                   "value": 5.0, | 
					
						
							|  |  |  |                   "suffix": "None" | 
					
						
							|  |  |  |                 } | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |               } | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             }, | 
					
						
							|  |  |  |             { | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |               "type": "LabeledArg", | 
					
						
							|  |  |  |               "label": { | 
					
						
							|  |  |  |                 "commentStart": 0, | 
					
						
							|  |  |  |                 "end": 0, | 
					
						
							|  |  |  |                 "name": "error", | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Identifier" | 
					
						
							|  |  |  |               }, | 
					
						
							|  |  |  |               "arg": { | 
					
						
							|  |  |  |                 "commentStart": 0, | 
					
						
							|  |  |  |                 "end": 0, | 
					
						
							|  |  |  |                 "raw": "\"the 'else' branch gets returned\"", | 
					
						
							|  |  |  |                 "start": 0, | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "type": "Literal", | 
					
						
							|  |  |  |                 "value": "the 'else' branch gets returned" | 
					
						
							| 
									
										
										
										
											2025-01-22 08:29:30 +13:00
										 |  |  |               } | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             } | 
					
						
							|  |  |  |           ], | 
					
						
							|  |  |  |           "callee": { | 
					
						
							| 
									
										
										
										
											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, | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |               "name": "assert", | 
					
						
							| 
									
										
										
										
											2025-03-24 20:58:55 +13:00
										 |  |  |               "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" | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |           }, | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |           "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |           "end": 0, | 
					
						
							|  |  |  |           "start": 0, | 
					
						
							| 
									
										
										
										
											2025-04-22 12:44:52 -05:00
										 |  |  |           "type": "CallExpressionKw", | 
					
						
							|  |  |  |           "type": "CallExpressionKw", | 
					
						
							|  |  |  |           "unlabeled": { | 
					
						
							|  |  |  |             "abs_path": false, | 
					
						
							|  |  |  |             "commentStart": 0, | 
					
						
							|  |  |  |             "end": 0, | 
					
						
							|  |  |  |             "name": { | 
					
						
							|  |  |  |               "commentStart": 0, | 
					
						
							|  |  |  |               "end": 0, | 
					
						
							|  |  |  |               "name": "c", | 
					
						
							|  |  |  |               "start": 0, | 
					
						
							|  |  |  |               "type": "Identifier" | 
					
						
							|  |  |  |             }, | 
					
						
							|  |  |  |             "path": [], | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							|  |  |  |             "type": "Name", | 
					
						
							|  |  |  |             "type": "Name" | 
					
						
							|  |  |  |           } | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |         }, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |         "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |         "type": "ExpressionStatement", | 
					
						
							|  |  |  |         "type": "ExpressionStatement" | 
					
						
							|  |  |  |       } | 
					
						
							|  |  |  |     ], | 
					
						
							| 
									
										
										
										
											2025-03-20 16:23:20 +13:00
										 |  |  |     "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |     "end": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |     "nonCodeMeta": { | 
					
						
							|  |  |  |       "nonCodeNodes": { | 
					
						
							|  |  |  |         "1": [ | 
					
						
							|  |  |  |           { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |             "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             "type": "NonCodeNode", | 
					
						
							|  |  |  |             "value": { | 
					
						
							|  |  |  |               "type": "newLine" | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         ], | 
					
						
							|  |  |  |         "3": [ | 
					
						
							|  |  |  |           { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |             "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |             "end": 0, | 
					
						
							|  |  |  |             "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |             "type": "NonCodeNode", | 
					
						
							|  |  |  |             "value": { | 
					
						
							|  |  |  |               "type": "newLine" | 
					
						
							|  |  |  |             } | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         ] | 
					
						
							|  |  |  |       }, | 
					
						
							|  |  |  |       "startNodes": [ | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-03-20 16:23:20 +13:00
										 |  |  |           "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |           "end": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |           "start": 0, | 
					
						
							|  |  |  |           "type": "NonCodeNode", | 
					
						
							|  |  |  |           "value": { | 
					
						
							|  |  |  |             "type": "blockComment", | 
					
						
							|  |  |  |             "value": "This tests evaluating if-else expressions.", | 
					
						
							|  |  |  |             "style": "line" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         }, | 
					
						
							|  |  |  |         { | 
					
						
							| 
									
										
										
										
											2025-04-07 17:42:15 +12:00
										 |  |  |           "commentStart": 0, | 
					
						
							| 
									
										
										
										
											2025-03-20 11:06:27 +13:00
										 |  |  |           "end": 0, | 
					
						
							|  |  |  |           "start": 0, | 
					
						
							| 
									
										
										
										
											2024-11-04 20:34:22 -06:00
										 |  |  |           "type": "NonCodeNode", | 
					
						
							|  |  |  |           "value": { | 
					
						
							|  |  |  |             "type": "newLine" | 
					
						
							|  |  |  |           } | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |       ] | 
					
						
							|  |  |  |     }, | 
					
						
							|  |  |  |     "start": 0 | 
					
						
							|  |  |  |   } | 
					
						
							|  |  |  | } |