118 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			118 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| ---
 | |
| source: kcl-lib/src/simulation_tests.rs
 | |
| description: Result of parsing non_string_key_of_object.kcl
 | |
| ---
 | |
| {
 | |
|   "Ok": {
 | |
|     "body": [
 | |
|       {
 | |
|         "commentStart": 0,
 | |
|         "declaration": {
 | |
|           "commentStart": 0,
 | |
|           "end": 0,
 | |
|           "id": {
 | |
|             "commentStart": 0,
 | |
|             "end": 0,
 | |
|             "name": "obj",
 | |
|             "start": 0,
 | |
|             "type": "Identifier"
 | |
|           },
 | |
|           "init": {
 | |
|             "commentStart": 6,
 | |
|             "end": 0,
 | |
|             "properties": [
 | |
|               {
 | |
|                 "commentStart": 8,
 | |
|                 "end": 0,
 | |
|                 "key": {
 | |
|                   "commentStart": 8,
 | |
|                   "end": 0,
 | |
|                   "name": "key",
 | |
|                   "start": 0,
 | |
|                   "type": "Identifier"
 | |
|                 },
 | |
|                 "start": 0,
 | |
|                 "type": "ObjectProperty",
 | |
|                 "value": {
 | |
|                   "commentStart": 14,
 | |
|                   "end": 0,
 | |
|                   "raw": "123",
 | |
|                   "start": 0,
 | |
|                   "type": "Literal",
 | |
|                   "type": "Literal",
 | |
|                   "value": {
 | |
|                     "value": 123.0,
 | |
|                     "suffix": "None"
 | |
|                   }
 | |
|                 }
 | |
|               }
 | |
|             ],
 | |
|             "start": 0,
 | |
|             "type": "ObjectExpression",
 | |
|             "type": "ObjectExpression"
 | |
|           },
 | |
|           "start": 0,
 | |
|           "type": "VariableDeclarator"
 | |
|         },
 | |
|         "end": 0,
 | |
|         "kind": "const",
 | |
|         "start": 0,
 | |
|         "type": "VariableDeclaration",
 | |
|         "type": "VariableDeclaration"
 | |
|       },
 | |
|       {
 | |
|         "commentStart": 20,
 | |
|         "declaration": {
 | |
|           "commentStart": 20,
 | |
|           "end": 0,
 | |
|           "id": {
 | |
|             "commentStart": 20,
 | |
|             "end": 0,
 | |
|             "name": "num",
 | |
|             "start": 0,
 | |
|             "type": "Identifier"
 | |
|           },
 | |
|           "init": {
 | |
|             "commentStart": 26,
 | |
|             "computed": false,
 | |
|             "end": 0,
 | |
|             "object": {
 | |
|               "commentStart": 26,
 | |
|               "end": 0,
 | |
|               "name": "obj",
 | |
|               "start": 0,
 | |
|               "type": "Identifier",
 | |
|               "type": "Identifier"
 | |
|             },
 | |
|             "property": {
 | |
|               "commentStart": 30,
 | |
|               "end": 0,
 | |
|               "raw": "3",
 | |
|               "start": 0,
 | |
|               "type": "Literal",
 | |
|               "type": "Literal",
 | |
|               "value": {
 | |
|                 "value": 3.0,
 | |
|                 "suffix": "None"
 | |
|               }
 | |
|             },
 | |
|             "start": 0,
 | |
|             "type": "MemberExpression",
 | |
|             "type": "MemberExpression"
 | |
|           },
 | |
|           "start": 0,
 | |
|           "type": "VariableDeclarator"
 | |
|         },
 | |
|         "end": 0,
 | |
|         "kind": "const",
 | |
|         "start": 0,
 | |
|         "type": "VariableDeclaration",
 | |
|         "type": "VariableDeclaration"
 | |
|       }
 | |
|     ],
 | |
|     "commentStart": 0,
 | |
|     "end": 0,
 | |
|     "start": 0
 | |
|   }
 | |
| }
 |