Files
modeling-app/src/wasm-lib/kcl/tests/xz_plane/ast.snap

256 lines
7.5 KiB
Plaintext
Raw Normal View History

---
source: kcl/src/simulation_tests.rs
description: Result of parsing xz_plane.kcl
---
{
"Ok": {
"body": [
{
"declaration": {
"end": 149,
"id": {
"end": 7,
"name": "part001",
"start": 0,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"end": 28,
"raw": "'XZ'",
"start": 24,
"type": "Literal",
"type": "Literal",
"value": "XZ"
}
],
"callee": {
"end": 23,
"name": "startSketchOn",
"start": 10,
"type": "Identifier"
},
"end": 29,
"start": 10,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 52,
"raw": "0",
"start": 51,
"type": "Literal",
"type": "Literal",
"value": 0.0
},
{
"end": 55,
"raw": "0",
"start": 54,
"type": "Literal",
"type": "Literal",
"value": 0.0
}
],
"end": 56,
"start": 50,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 59,
"start": 58,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 49,
"name": "startProfileAt",
"start": 35,
"type": "Identifier"
},
"end": 60,
"start": 35,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 77,
"raw": "100",
"start": 74,
"type": "Literal",
"type": "Literal",
"value": 100.0
},
{
"end": 82,
"raw": "100",
"start": 79,
"type": "Literal",
"type": "Literal",
"value": 100.0
}
],
"end": 83,
"start": 73,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 86,
"start": 85,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 72,
"name": "lineTo",
"start": 66,
"type": "Identifier"
},
"end": 87,
"start": 66,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 104,
"raw": "100",
"start": 101,
"type": "Literal",
"type": "Literal",
"value": 100.0
},
{
"end": 107,
"raw": "0",
"start": 106,
"type": "Literal",
"type": "Literal",
"value": 0.0
}
],
"end": 108,
"start": 100,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 111,
"start": 110,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 99,
"name": "lineTo",
"start": 93,
"type": "Identifier"
},
"end": 112,
"start": 93,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 125,
"start": 124,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 123,
"name": "close",
"start": 118,
"type": "Identifier"
},
"end": 126,
"start": 118,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 145,
"left": {
"end": 141,
"raw": "5",
"start": 140,
"type": "Literal",
"type": "Literal",
"value": 5.0
},
"operator": "+",
"right": {
"end": 145,
"raw": "7",
"start": 144,
"type": "Literal",
"type": "Literal",
"value": 7.0
},
"start": 140,
"type": "BinaryExpression",
"type": "BinaryExpression"
},
{
"end": 148,
"start": 147,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 139,
"name": "extrude",
"start": 132,
"type": "Identifier"
},
"end": 149,
"start": 132,
"type": "CallExpression",
"type": "CallExpression"
}
],
"end": 149,
"start": 10,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 0,
"type": "VariableDeclarator"
},
"end": 149,
"kind": "const",
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"end": 150,
"start": 0
}
}