2024-11-18 16:20:32 -06:00
|
|
|
---
|
2025-03-18 20:34:44 -07:00
|
|
|
source: kcl-lib/src/simulation_tests.rs
|
2024-11-18 16:20:32 -06:00
|
|
|
description: Result of parsing array_index_oob.kcl
|
|
|
|
---
|
|
|
|
{
|
|
|
|
"Ok": {
|
|
|
|
"body": [
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 0,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 0,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"name": "arr",
|
2024-11-18 16:20:32 -06:00
|
|
|
"start": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 6,
|
2024-12-07 07:16:04 +13:00
|
|
|
"elements": [],
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
|
|
|
"start": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "ArrayExpression",
|
|
|
|
"type": "ArrayExpression"
|
|
|
|
},
|
|
|
|
"start": 0,
|
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2024-11-18 16:20:32 -06:00
|
|
|
"kind": "const",
|
|
|
|
"start": 0,
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
},
|
|
|
|
{
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 9,
|
2024-12-07 07:16:04 +13:00
|
|
|
"declaration": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 9,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"id": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 9,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"name": "x",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
|
|
|
"init": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 13,
|
2024-12-07 07:16:04 +13:00
|
|
|
"computed": false,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"object": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 13,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"name": "arr",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "Identifier",
|
2024-11-18 16:20:32 -06:00
|
|
|
"type": "Identifier"
|
|
|
|
},
|
2024-12-07 07:16:04 +13:00
|
|
|
"property": {
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 17,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"raw": "0",
|
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": 0.0,
|
|
|
|
"suffix": "None"
|
|
|
|
}
|
2024-11-18 16:20:32 -06:00
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "MemberExpression",
|
|
|
|
"type": "MemberExpression"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2024-12-07 07:16:04 +13:00
|
|
|
"type": "VariableDeclarator"
|
|
|
|
},
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2024-11-18 16:20:32 -06:00
|
|
|
"kind": "const",
|
2025-03-20 11:06:27 +13:00
|
|
|
"start": 0,
|
2024-11-18 16:20:32 -06:00
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"type": "VariableDeclaration"
|
|
|
|
}
|
|
|
|
],
|
2025-03-20 16:23:20 +13:00
|
|
|
"commentStart": 0,
|
2025-03-20 11:06:27 +13:00
|
|
|
"end": 0,
|
2024-11-18 16:20:32 -06:00
|
|
|
"start": 0
|
|
|
|
}
|
|
|
|
}
|