Files
modeling-app/rust/kcl-lib/tests/object_prop_not_found/ast.snap

78 lines
1.7 KiB
Plaintext
Raw Normal View History

---
source: kcl/src/simulation_tests.rs
description: Result of parsing object_prop_not_found.kcl
---
{
"Ok": {
"body": [
{
"declaration": {
"end": 10,
"id": {
"end": 3,
"name": "obj",
"start": 0,
"type": "Identifier"
},
"init": {
"end": 10,
"properties": [],
"start": 6,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
"start": 0,
"type": "VariableDeclarator"
},
"end": 10,
"kind": "const",
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 25,
"id": {
"end": 12,
"name": "k",
"start": 11,
"type": "Identifier"
},
"init": {
"computed": false,
"end": 25,
"object": {
"end": 18,
"name": "obj",
"start": 15,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 24,
"raw": "\"age\"",
"start": 19,
"type": "Literal",
"type": "Literal",
"value": "age"
},
"start": 15,
"type": "MemberExpression",
"type": "MemberExpression"
},
"start": 11,
"type": "VariableDeclarator"
},
"end": 25,
"kind": "const",
"start": 11,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"end": 26,
"start": 0
}
}