Files
modeling-app/rust/kcl-lib/tests/array_elem_pop_empty_fail/ast.snap
Jess Frazelle df6b4f4c37 Move consts to dir in docs (#5753)
* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add consts to dir

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add consts to dir

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
2025-03-11 18:44:27 +00:00

77 lines
1.7 KiB
Plaintext

---
source: kcl-lib/src/simulation_tests.rs
description: Result of parsing array_elem_pop_empty_fail.kcl
---
{
"Ok": {
"body": [
{
"declaration": {
"end": 8,
"id": {
"end": 3,
"name": "arr",
"start": 0,
"type": "Identifier"
},
"init": {
"elements": [],
"end": 8,
"start": 6,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
"start": 0,
"type": "VariableDeclarator"
},
"end": 8,
"kind": "const",
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 24,
"id": {
"end": 13,
"name": "fail",
"start": 9,
"type": "Identifier"
},
"init": {
"arguments": [
{
"end": 23,
"name": "arr",
"start": 20,
"type": "Identifier",
"type": "Identifier"
}
],
"callee": {
"end": 19,
"name": "pop",
"start": 16,
"type": "Identifier"
},
"end": 24,
"start": 16,
"type": "CallExpression",
"type": "CallExpression"
},
"start": 9,
"type": "VariableDeclarator"
},
"end": 24,
"kind": "const",
"start": 9,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"end": 25,
"start": 0
}
}