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

79 lines
1.8 KiB
Plaintext
Raw Normal View History

---
source: kcl/src/simulation_tests.rs
description: Result of parsing invalid_member_object_prop.kcl
---
{
"Ok": {
"body": [
{
"declaration": {
"end": 8,
"id": {
"end": 1,
"name": "b",
"start": 0,
"type": "Identifier"
},
"init": {
"end": 8,
"raw": "true",
"start": 4,
"type": "Literal",
"type": "Literal",
"value": true
},
"start": 0,
"type": "VariableDeclarator"
},
"end": 8,
"kind": "const",
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
},
{
"declaration": {
"end": 26,
"id": {
"end": 10,
"name": "x",
"start": 9,
"type": "Identifier"
},
"init": {
"computed": false,
"end": 26,
"object": {
"end": 14,
"name": "b",
"start": 13,
"type": "Identifier",
"type": "Identifier"
},
"property": {
"end": 25,
"raw": "\"property\"",
"start": 15,
"type": "Literal",
"type": "Literal",
"value": "property"
},
"start": 13,
"type": "MemberExpression",
"type": "MemberExpression"
},
"start": 9,
"type": "VariableDeclarator"
},
"end": 26,
"kind": "const",
"start": 9,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"end": 27,
"start": 0
}
}