Files
modeling-app/rust/kcl-lib/tests/array_elem_pop_empty_fail/ast.snap
Nick Cameron 461a2c3ab2 Support comments on attributes (#5850)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2025-03-20 16:23:20 +13:00

88 lines
2.0 KiB
Plaintext

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