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

266 lines
8.1 KiB
Plaintext
Raw Normal View History

---
source: kcl/src/simulation_tests.rs
description: Result of parsing tangential_arc.kcl
---
{
"Ok": {
"body": [
{
"declaration": {
"end": 149,
"id": {
"end": 9,
"name": "boxSketch",
"start": 0,
"type": "Identifier"
},
"init": {
"body": [
{
"arguments": [
{
"elements": [
{
"end": 28,
"raw": "0",
"start": 27,
"type": "Literal",
"type": "Literal",
"value": 0.0
},
{
"end": 31,
"raw": "0",
"start": 30,
"type": "Literal",
"type": "Literal",
"value": 0.0
}
],
"end": 32,
"start": 26,
"type": "ArrayExpression",
"type": "ArrayExpression"
}
],
"callee": {
"end": 25,
"name": "startSketchAt",
"start": 12,
"type": "Identifier"
},
"end": 33,
"start": 12,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 46,
"raw": "0",
"start": 45,
"type": "Literal",
"type": "Literal",
"value": 0.0
},
{
"end": 50,
"raw": "10",
"start": 48,
"type": "Literal",
"type": "Literal",
"value": 10.0
}
],
"end": 51,
"start": 44,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 54,
"start": 53,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 43,
"name": "line",
"start": 39,
"type": "Identifier"
},
"end": 55,
"start": 39,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 102,
"properties": [
{
"end": 87,
"key": {
"end": 83,
"name": "radius",
"start": 77,
"type": "Identifier"
},
"start": 77,
"type": "ObjectProperty",
"value": {
"end": 87,
"raw": "5",
"start": 86,
"type": "Literal",
"type": "Literal",
"value": 5.0
}
},
{
"end": 100,
"key": {
"end": 95,
"name": "offset",
"start": 89,
"type": "Identifier"
},
"start": 89,
"type": "ObjectProperty",
"value": {
"end": 100,
"raw": "90",
"start": 98,
"type": "Literal",
"type": "Literal",
"value": 90.0
}
}
],
"start": 75,
"type": "ObjectExpression",
"type": "ObjectExpression"
},
{
"end": 105,
"start": 104,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 74,
"name": "tangentialArc",
"start": 61,
"type": "Identifier"
},
"end": 106,
"start": 61,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"elements": [
{
"end": 119,
"raw": "5",
"start": 118,
"type": "Literal",
"type": "Literal",
"value": 5.0
},
{
"argument": {
"end": 124,
"raw": "15",
"start": 122,
"type": "Literal",
"type": "Literal",
"value": 15.0
},
"end": 124,
"operator": "-",
"start": 121,
"type": "UnaryExpression",
"type": "UnaryExpression"
}
],
"end": 125,
"start": 117,
"type": "ArrayExpression",
"type": "ArrayExpression"
},
{
"end": 128,
"start": 127,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 116,
"name": "line",
"start": 112,
"type": "Identifier"
},
"end": 129,
"start": 112,
"type": "CallExpression",
"type": "CallExpression"
},
{
"arguments": [
{
"end": 145,
"raw": "10",
"start": 143,
"type": "Literal",
"type": "Literal",
"value": 10.0
},
{
"end": 148,
"start": 147,
"type": "PipeSubstitution",
"type": "PipeSubstitution"
}
],
"callee": {
"end": 142,
"name": "extrude",
"start": 135,
"type": "Identifier"
},
"end": 149,
"start": 135,
"type": "CallExpression",
"type": "CallExpression"
}
],
"end": 149,
"start": 12,
"type": "PipeExpression",
"type": "PipeExpression"
},
"start": 0,
"type": "VariableDeclarator"
},
"end": 149,
"kind": "const",
"start": 0,
"type": "VariableDeclaration",
"type": "VariableDeclaration"
}
],
"end": 150,
"start": 0
}
}