2024-11-04 20:34:22 -06:00
|
|
|
---
|
|
|
|
source: kcl/src/simulation_tests.rs
|
|
|
|
description: Result of parsing property_of_object.kcl
|
|
|
|
---
|
|
|
|
{
|
|
|
|
"Ok": {
|
|
|
|
"body": [
|
|
|
|
{
|
2024-12-07 07:16:04 +13:00
|
|
|
"declaration": {
|
|
|
|
"end": 76,
|
|
|
|
"id": {
|
|
|
|
"end": 53,
|
|
|
|
"name": "obj",
|
|
|
|
"start": 50,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 76,
|
2024-12-07 07:16:04 +13:00
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"end": 65,
|
|
|
|
"key": {
|
|
|
|
"end": 61,
|
|
|
|
"name": "foo",
|
2024-11-04 20:34:22 -06:00
|
|
|
"start": 58,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier"
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
"start": 58,
|
|
|
|
"type": "ObjectProperty",
|
|
|
|
"value": {
|
|
|
|
"end": 65,
|
|
|
|
"raw": "1",
|
|
|
|
"start": 64,
|
|
|
|
"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
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"end": 74,
|
|
|
|
"key": {
|
|
|
|
"end": 70,
|
|
|
|
"name": "bar",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 67,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"start": 67,
|
|
|
|
"type": "ObjectProperty",
|
|
|
|
"value": {
|
|
|
|
"end": 74,
|
|
|
|
"raw": "0",
|
|
|
|
"start": 73,
|
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
2025-01-22 08:29:30 +13:00
|
|
|
"value": {
|
|
|
|
"value": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2024-11-04 20:34:22 -06:00
|
|
|
}
|
2024-12-07 07:16:04 +13:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"start": 56,
|
|
|
|
"type": "ObjectExpression",
|
|
|
|
"type": "ObjectExpression"
|
|
|
|
},
|
|
|
|
"start": 50,
|
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 76,
|
2024-11-04 20:34:22 -06:00
|
|
|
"kind": "const",
|
|
|
|
"start": 50,
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2024-12-07 07:16:04 +13:00
|
|
|
"declaration": {
|
|
|
|
"end": 134,
|
|
|
|
"id": {
|
|
|
|
"end": 121,
|
|
|
|
"name": "one_a",
|
|
|
|
"start": 116,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"computed": false,
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 134,
|
2024-12-07 07:16:04 +13:00
|
|
|
"object": {
|
|
|
|
"end": 127,
|
|
|
|
"name": "obj",
|
|
|
|
"start": 124,
|
|
|
|
"type": "Identifier",
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
"property": {
|
|
|
|
"end": 133,
|
|
|
|
"raw": "\"foo\"",
|
|
|
|
"start": 128,
|
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "foo"
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
"start": 124,
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"type": "MemberExpression"
|
|
|
|
},
|
|
|
|
"start": 116,
|
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 134,
|
2024-11-04 20:34:22 -06:00
|
|
|
"kind": "const",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 116,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 191,
|
2024-11-04 20:34:22 -06:00
|
|
|
"expression": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 160,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "one_a",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 155,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 163,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "1",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 162,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
2025-01-22 08:29:30 +13:00
|
|
|
"value": {
|
|
|
|
"value": 1.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 190,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "\"Literal property lookup\"",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 165,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "Literal property lookup"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 154,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "assertLessThanOrEq",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 136,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 191,
|
|
|
|
"start": 136,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 136,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"type": "ExpressionStatement"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 250,
|
2024-11-04 20:34:22 -06:00
|
|
|
"expression": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 219,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "one_a",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 214,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 222,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "1",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 221,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
2025-01-22 08:29:30 +13:00
|
|
|
"value": {
|
|
|
|
"value": 1.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 249,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "\"Literal property lookup\"",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 224,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "Literal property lookup"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 213,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "assertGreaterThanOrEq",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 192,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 250,
|
|
|
|
"start": 192,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 192,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"type": "ExpressionStatement"
|
|
|
|
},
|
|
|
|
{
|
2024-12-07 07:16:04 +13:00
|
|
|
"declaration": {
|
|
|
|
"end": 349,
|
|
|
|
"id": {
|
|
|
|
"end": 341,
|
|
|
|
"name": "p",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 340,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"end": 349,
|
|
|
|
"raw": "\"foo\"",
|
|
|
|
"start": 344,
|
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "foo"
|
|
|
|
},
|
|
|
|
"start": 340,
|
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 349,
|
2024-11-04 20:34:22 -06:00
|
|
|
"kind": "const",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 340,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2024-12-07 07:16:04 +13:00
|
|
|
"declaration": {
|
|
|
|
"end": 364,
|
|
|
|
"id": {
|
|
|
|
"end": 355,
|
|
|
|
"name": "one_b",
|
|
|
|
"start": 350,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"computed": true,
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 364,
|
2024-12-07 07:16:04 +13:00
|
|
|
"object": {
|
|
|
|
"end": 361,
|
|
|
|
"name": "obj",
|
|
|
|
"start": 358,
|
|
|
|
"type": "Identifier",
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
"property": {
|
|
|
|
"end": 363,
|
|
|
|
"name": "p",
|
|
|
|
"start": 362,
|
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
"start": 358,
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"type": "MemberExpression"
|
|
|
|
},
|
|
|
|
"start": 350,
|
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 364,
|
2024-11-04 20:34:22 -06:00
|
|
|
"kind": "const",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 350,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 422,
|
2024-11-04 20:34:22 -06:00
|
|
|
"expression": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 390,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "one_b",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 385,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 393,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "1",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 392,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
2025-01-22 08:29:30 +13:00
|
|
|
"value": {
|
|
|
|
"value": 1.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 421,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "\"Computed property lookup\"",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 395,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "Computed property lookup"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 384,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "assertLessThanOrEq",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 366,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 422,
|
|
|
|
"start": 366,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 366,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"type": "ExpressionStatement"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 482,
|
2024-11-04 20:34:22 -06:00
|
|
|
"expression": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 450,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "one_b",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 445,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 453,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "1",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 452,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
2025-01-22 08:29:30 +13:00
|
|
|
"value": {
|
|
|
|
"value": 1.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 481,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "\"Computed property lookup\"",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 455,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "Computed property lookup"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 444,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "assertGreaterThanOrEq",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 423,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 482,
|
|
|
|
"start": 423,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 423,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"type": "ExpressionStatement"
|
|
|
|
},
|
|
|
|
{
|
2024-12-07 07:16:04 +13:00
|
|
|
"declaration": {
|
|
|
|
"end": 546,
|
|
|
|
"id": {
|
|
|
|
"end": 528,
|
|
|
|
"name": "obj2",
|
|
|
|
"start": 524,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 546,
|
2024-12-07 07:16:04 +13:00
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"end": 544,
|
|
|
|
"key": {
|
|
|
|
"end": 538,
|
|
|
|
"name": "inner",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 533,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"start": 533,
|
|
|
|
"type": "ObjectProperty",
|
|
|
|
"value": {
|
|
|
|
"end": 544,
|
|
|
|
"name": "obj",
|
|
|
|
"start": 541,
|
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
2024-11-04 20:34:22 -06:00
|
|
|
}
|
2024-12-07 07:16:04 +13:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"start": 531,
|
|
|
|
"type": "ObjectExpression",
|
|
|
|
"type": "ObjectExpression"
|
|
|
|
},
|
|
|
|
"start": 524,
|
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 546,
|
2024-11-04 20:34:22 -06:00
|
|
|
"kind": "const",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 524,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2024-12-07 07:16:04 +13:00
|
|
|
"declaration": {
|
|
|
|
"end": 573,
|
|
|
|
"id": {
|
|
|
|
"end": 553,
|
|
|
|
"name": "one_c",
|
|
|
|
"start": 548,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"computed": false,
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 573,
|
2024-12-07 07:16:04 +13:00
|
|
|
"object": {
|
2024-11-04 20:34:22 -06:00
|
|
|
"computed": false,
|
2024-12-07 07:16:04 +13:00
|
|
|
"end": 566,
|
2024-11-04 20:34:22 -06:00
|
|
|
"object": {
|
2024-12-07 07:16:04 +13:00
|
|
|
"end": 560,
|
|
|
|
"name": "obj2",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 556,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
|
|
|
"property": {
|
2024-12-07 07:16:04 +13:00
|
|
|
"end": 566,
|
|
|
|
"name": "inner",
|
|
|
|
"start": 561,
|
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 556,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "MemberExpression",
|
|
|
|
"type": "MemberExpression"
|
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
"property": {
|
|
|
|
"end": 572,
|
|
|
|
"raw": "\"foo\"",
|
|
|
|
"start": 567,
|
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "foo"
|
|
|
|
},
|
|
|
|
"start": 556,
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"type": "MemberExpression"
|
|
|
|
},
|
|
|
|
"start": 548,
|
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 573,
|
2024-11-04 20:34:22 -06:00
|
|
|
"kind": "const",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 548,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 630,
|
2024-11-04 20:34:22 -06:00
|
|
|
"expression": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 599,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "one_c",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 594,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 602,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "1",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 601,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
2025-01-22 08:29:30 +13:00
|
|
|
"value": {
|
|
|
|
"value": 1.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 629,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "\"Literal property lookup\"",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 604,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "Literal property lookup"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 593,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "assertLessThanOrEq",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 575,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 630,
|
|
|
|
"start": 575,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 575,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"type": "ExpressionStatement"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 689,
|
2024-11-04 20:34:22 -06:00
|
|
|
"expression": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 658,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "one_c",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 653,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 661,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "1",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 660,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
2025-01-22 08:29:30 +13:00
|
|
|
"value": {
|
|
|
|
"value": 1.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 688,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "\"Literal property lookup\"",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 663,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "Literal property lookup"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 652,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "assertGreaterThanOrEq",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 631,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 689,
|
|
|
|
"start": 631,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 631,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"type": "ExpressionStatement"
|
|
|
|
},
|
|
|
|
{
|
2024-12-07 07:16:04 +13:00
|
|
|
"declaration": {
|
|
|
|
"end": 773,
|
|
|
|
"id": {
|
|
|
|
"end": 757,
|
|
|
|
"name": "one_d",
|
|
|
|
"start": 752,
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"computed": true,
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 773,
|
2024-12-07 07:16:04 +13:00
|
|
|
"object": {
|
|
|
|
"computed": false,
|
|
|
|
"end": 770,
|
2024-11-04 20:34:22 -06:00
|
|
|
"object": {
|
2024-12-07 07:16:04 +13:00
|
|
|
"end": 764,
|
|
|
|
"name": "obj2",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 760,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
|
|
|
"property": {
|
2024-12-07 07:16:04 +13:00
|
|
|
"end": 770,
|
|
|
|
"name": "inner",
|
|
|
|
"start": 765,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 760,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "MemberExpression",
|
|
|
|
"type": "MemberExpression"
|
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
"property": {
|
|
|
|
"end": 772,
|
|
|
|
"name": "p",
|
|
|
|
"start": 771,
|
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"start": 760,
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"type": "MemberExpression"
|
|
|
|
},
|
|
|
|
"start": 752,
|
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 773,
|
2024-11-04 20:34:22 -06:00
|
|
|
"kind": "const",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 752,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 831,
|
2024-11-04 20:34:22 -06:00
|
|
|
"expression": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 799,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "one_d",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 794,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 802,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "1",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 801,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
2025-01-22 08:29:30 +13:00
|
|
|
"value": {
|
|
|
|
"value": 1.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 830,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "\"Computed property lookup\"",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 804,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "Computed property lookup"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 793,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "assertLessThanOrEq",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 775,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 831,
|
|
|
|
"start": 775,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 775,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"type": "ExpressionStatement"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 891,
|
2024-11-04 20:34:22 -06:00
|
|
|
"expression": {
|
|
|
|
"arguments": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 859,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "one_d",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 854,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier",
|
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 862,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "1",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 861,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
2025-01-22 08:29:30 +13:00
|
|
|
"value": {
|
|
|
|
"value": 1.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2024-11-04 20:34:22 -06:00
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 890,
|
2024-11-04 20:34:22 -06:00
|
|
|
"raw": "\"Computed property lookup\"",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 864,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Literal",
|
|
|
|
"type": "Literal",
|
|
|
|
"value": "Computed property lookup"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"callee": {
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 853,
|
2024-11-04 20:34:22 -06:00
|
|
|
"name": "assertGreaterThanOrEq",
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 832,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 891,
|
|
|
|
"start": 832,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "CallExpression",
|
|
|
|
"type": "CallExpression"
|
|
|
|
},
|
2024-11-25 09:21:55 +13:00
|
|
|
"start": 832,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"type": "ExpressionStatement"
|
|
|
|
}
|
|
|
|
],
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 892,
|
2024-11-04 20:34:22 -06:00
|
|
|
"nonCodeMeta": {
|
|
|
|
"nonCodeNodes": {
|
|
|
|
"0": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 113,
|
|
|
|
"start": 76,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLineBlockComment",
|
|
|
|
"value": "Test: the property is a literal.",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 116,
|
|
|
|
"start": 113,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"1": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 136,
|
|
|
|
"start": 134,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"3": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 288,
|
|
|
|
"start": 250,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLineBlockComment",
|
|
|
|
"value": "Test: the property is a variable,",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 337,
|
|
|
|
"start": 289,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "blockComment",
|
|
|
|
"value": "which must be evaluated before looking it up.",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 340,
|
|
|
|
"start": 337,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"5": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 366,
|
|
|
|
"start": 364,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"7": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 521,
|
|
|
|
"start": 482,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLineBlockComment",
|
|
|
|
"value": "Test: multiple literal properties.",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 524,
|
|
|
|
"start": 521,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"8": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 548,
|
|
|
|
"start": 546,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"9": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 575,
|
|
|
|
"start": 573,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"11": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 749,
|
|
|
|
"start": 689,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLineBlockComment",
|
|
|
|
"value": "Test: multiple properties, mix of literal and computed.",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 752,
|
|
|
|
"start": 749,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"12": [
|
|
|
|
{
|
2024-11-25 09:21:55 +13:00
|
|
|
"end": 775,
|
|
|
|
"start": 773,
|
2024-11-04 20:34:22 -06:00
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"startNodes": [
|
|
|
|
{
|
|
|
|
"end": 47,
|
|
|
|
"start": 0,
|
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "blockComment",
|
|
|
|
"value": "This tests evaluating properties of objects.",
|
|
|
|
"style": "line"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"end": 50,
|
|
|
|
"start": 47,
|
|
|
|
"type": "NonCodeNode",
|
|
|
|
"value": {
|
|
|
|
"type": "newLine"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"start": 0
|
|
|
|
}
|
|
|
|
}
|