* Show more info on hover for variables Signed-off-by: Nick Cameron <nrc@ncameron.org> * Move hover impls to lsp module Signed-off-by: Nick Cameron <nrc@ncameron.org> * Make hover work on names inside calls, fix doc line breaking, trim docs in tool tips Signed-off-by: Nick Cameron <nrc@ncameron.org> * Test the new hovers; fix signature syntax Signed-off-by: Nick Cameron <nrc@ncameron.org> * Hover tips for kwargs Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
2138 lines
69 KiB
Plaintext
2138 lines
69 KiB
Plaintext
---
|
|
source: kcl-lib/src/simulation_tests.rs
|
|
description: Result of parsing poop_chute.kcl
|
|
---
|
|
{
|
|
"Ok": {
|
|
"body": [
|
|
{
|
|
"declaration": {
|
|
"end": 22,
|
|
"id": {
|
|
"end": 14,
|
|
"name": "wall_thickness",
|
|
"start": 0,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 22,
|
|
"raw": "0.125",
|
|
"start": 17,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.125,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 0,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 22,
|
|
"kind": "const",
|
|
"start": 0,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 43,
|
|
"id": {
|
|
"end": 39,
|
|
"name": "back_walls_width",
|
|
"start": 23,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 43,
|
|
"raw": "2",
|
|
"start": 42,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 23,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 43,
|
|
"kind": "const",
|
|
"start": 23,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 67,
|
|
"id": {
|
|
"end": 61,
|
|
"name": "front_walls_width",
|
|
"start": 44,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 67,
|
|
"raw": "2.5",
|
|
"start": 64,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.5,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 44,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 67,
|
|
"kind": "const",
|
|
"start": 44,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 80,
|
|
"id": {
|
|
"end": 74,
|
|
"name": "height",
|
|
"start": 68,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 80,
|
|
"raw": "5.5",
|
|
"start": 77,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 5.5,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 68,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 80,
|
|
"kind": "const",
|
|
"start": 68,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 101,
|
|
"id": {
|
|
"end": 93,
|
|
"name": "filletRadius",
|
|
"start": 81,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 101,
|
|
"raw": "0.050",
|
|
"start": 96,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.05,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 81,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 101,
|
|
"kind": "const",
|
|
"start": 81,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 117,
|
|
"id": {
|
|
"end": 113,
|
|
"name": "back_length",
|
|
"start": 102,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 117,
|
|
"raw": "7",
|
|
"start": 116,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 7.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 102,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 117,
|
|
"kind": "const",
|
|
"start": 102,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 133,
|
|
"id": {
|
|
"end": 129,
|
|
"name": "exit_height",
|
|
"start": 118,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 133,
|
|
"raw": "1",
|
|
"start": 132,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 118,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 133,
|
|
"kind": "const",
|
|
"start": 118,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 150,
|
|
"id": {
|
|
"end": 146,
|
|
"name": "front_length",
|
|
"start": 134,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 150,
|
|
"raw": "6",
|
|
"start": 149,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 6.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 134,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 150,
|
|
"kind": "const",
|
|
"start": 134,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 159,
|
|
"id": {
|
|
"end": 153,
|
|
"name": "Fx",
|
|
"start": 151,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 159,
|
|
"raw": "0.5",
|
|
"start": 156,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.5,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 151,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 159,
|
|
"kind": "const",
|
|
"start": 151,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 168,
|
|
"id": {
|
|
"end": 162,
|
|
"name": "Fy",
|
|
"start": 160,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"end": 168,
|
|
"raw": "0.5",
|
|
"start": 165,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.5,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 160,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 168,
|
|
"kind": "const",
|
|
"start": 160,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 803,
|
|
"id": {
|
|
"end": 179,
|
|
"name": "sketch001",
|
|
"start": 170,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 201,
|
|
"raw": "'-YZ'",
|
|
"start": 196,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "-YZ"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 195,
|
|
"name": "startSketchOn",
|
|
"start": 182,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 202,
|
|
"start": 182,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 244,
|
|
"left": {
|
|
"end": 240,
|
|
"name": "back_walls_width",
|
|
"start": 224,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 244,
|
|
"raw": "2",
|
|
"start": 243,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 224,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 247,
|
|
"raw": "0",
|
|
"start": 246,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 248,
|
|
"start": 223,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 251,
|
|
"start": 250,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 222,
|
|
"name": "startProfileAt",
|
|
"start": 208,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 252,
|
|
"start": 208,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 282,
|
|
"left": {
|
|
"end": 278,
|
|
"name": "wall_thickness",
|
|
"start": 264,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 282,
|
|
"raw": "2",
|
|
"start": 281,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 264,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 285,
|
|
"start": 284,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 263,
|
|
"name": "xLine",
|
|
"start": 258,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 286,
|
|
"start": 258,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 343,
|
|
"properties": [
|
|
{
|
|
"end": 318,
|
|
"key": {
|
|
"end": 313,
|
|
"name": "angle",
|
|
"start": 308,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 308,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 318,
|
|
"raw": "45",
|
|
"start": 316,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 45.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 341,
|
|
"key": {
|
|
"end": 322,
|
|
"name": "to",
|
|
"start": 320,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 320,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 341,
|
|
"name": "back_walls_width",
|
|
"start": 325,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 306,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 346,
|
|
"start": 345,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
},
|
|
{
|
|
"end": 354,
|
|
"start": 348,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "seg01"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 305,
|
|
"name": "angledLineToX",
|
|
"start": 292,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 355,
|
|
"start": 292,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 375,
|
|
"name": "height",
|
|
"start": 369,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 378,
|
|
"start": 377,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 368,
|
|
"name": "yLineTo",
|
|
"start": 361,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 379,
|
|
"start": 361,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"argument": {
|
|
"end": 406,
|
|
"name": "wall_thickness",
|
|
"start": 392,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 406,
|
|
"operator": "-",
|
|
"start": 391,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
{
|
|
"end": 409,
|
|
"start": 408,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 390,
|
|
"name": "xLine",
|
|
"start": 385,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 410,
|
|
"start": 385,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 437,
|
|
"name": "seg01",
|
|
"start": 432,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 431,
|
|
"name": "segEndY",
|
|
"start": 424,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 438,
|
|
"start": 424,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"end": 441,
|
|
"start": 440,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 423,
|
|
"name": "yLineTo",
|
|
"start": 416,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 442,
|
|
"start": 416,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 543,
|
|
"properties": [
|
|
{
|
|
"end": 481,
|
|
"key": {
|
|
"end": 476,
|
|
"name": "angle",
|
|
"start": 471,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 471,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 481,
|
|
"raw": "45",
|
|
"start": 479,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 45.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 536,
|
|
"key": {
|
|
"end": 492,
|
|
"name": "to",
|
|
"start": 490,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 490,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 536,
|
|
"left": {
|
|
"end": 515,
|
|
"left": {
|
|
"end": 511,
|
|
"name": "back_walls_width",
|
|
"start": 495,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 515,
|
|
"raw": "2",
|
|
"start": 514,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 495,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 536,
|
|
"left": {
|
|
"end": 532,
|
|
"name": "wall_thickness",
|
|
"start": 518,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 536,
|
|
"raw": "2",
|
|
"start": 535,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 518,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 495,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 462,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 546,
|
|
"start": 545,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 461,
|
|
"name": "angledLineToX",
|
|
"start": 448,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 547,
|
|
"start": 448,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"argument": {
|
|
"end": 574,
|
|
"name": "wall_thickness",
|
|
"start": 560,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 574,
|
|
"operator": "-",
|
|
"start": 559,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
{
|
|
"end": 577,
|
|
"start": 576,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 558,
|
|
"name": "xLine",
|
|
"start": 553,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 578,
|
|
"start": 553,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 658,
|
|
"properties": [
|
|
{
|
|
"end": 623,
|
|
"key": {
|
|
"end": 612,
|
|
"name": "angle",
|
|
"start": 607,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 607,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 623,
|
|
"left": {
|
|
"end": 618,
|
|
"raw": "180",
|
|
"start": 615,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 180.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 623,
|
|
"raw": "45",
|
|
"start": 621,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 45.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 615,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 651,
|
|
"key": {
|
|
"end": 634,
|
|
"name": "to",
|
|
"start": 632,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 632,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 651,
|
|
"name": "wall_thickness",
|
|
"start": 637,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 598,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 661,
|
|
"start": 660,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 597,
|
|
"name": "angledLineToX",
|
|
"start": 584,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 662,
|
|
"start": 584,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 682,
|
|
"name": "height",
|
|
"start": 676,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 685,
|
|
"start": 684,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 675,
|
|
"name": "yLineTo",
|
|
"start": 668,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 686,
|
|
"start": 668,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 701,
|
|
"raw": "0",
|
|
"start": 700,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 704,
|
|
"start": 703,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 699,
|
|
"name": "xLineTo",
|
|
"start": 692,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 705,
|
|
"start": 692,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 732,
|
|
"name": "seg01",
|
|
"start": 727,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 726,
|
|
"name": "segEndY",
|
|
"start": 719,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 733,
|
|
"start": 719,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"end": 736,
|
|
"start": 735,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 718,
|
|
"name": "yLineTo",
|
|
"start": 711,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 737,
|
|
"start": 711,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 785,
|
|
"properties": [
|
|
{
|
|
"end": 775,
|
|
"key": {
|
|
"end": 764,
|
|
"name": "angle",
|
|
"start": 759,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 759,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 775,
|
|
"left": {
|
|
"end": 770,
|
|
"raw": "180",
|
|
"start": 767,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 180.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 775,
|
|
"raw": "45",
|
|
"start": 773,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 45.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 767,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 783,
|
|
"key": {
|
|
"end": 779,
|
|
"name": "to",
|
|
"start": 777,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 777,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 783,
|
|
"raw": "0",
|
|
"start": 782,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 757,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 788,
|
|
"start": 787,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 756,
|
|
"name": "angledLineToY",
|
|
"start": 743,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 789,
|
|
"start": 743,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 802,
|
|
"start": 801,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 800,
|
|
"name": "close",
|
|
"start": 795,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 803,
|
|
"start": 795,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
}
|
|
],
|
|
"end": 803,
|
|
"start": 182,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 170,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 803,
|
|
"kind": "const",
|
|
"start": 170,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 952,
|
|
"id": {
|
|
"end": 811,
|
|
"name": "part001",
|
|
"start": 804,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"arguments": [
|
|
{
|
|
"end": 940,
|
|
"properties": [
|
|
{
|
|
"end": 836,
|
|
"key": {
|
|
"end": 831,
|
|
"name": "angle",
|
|
"start": 826,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 826,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 836,
|
|
"raw": "90",
|
|
"start": 834,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 90.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 938,
|
|
"key": {
|
|
"end": 844,
|
|
"name": "axis",
|
|
"start": 840,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 840,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 938,
|
|
"properties": [
|
|
{
|
|
"end": 934,
|
|
"key": {
|
|
"end": 859,
|
|
"name": "custom",
|
|
"start": 853,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 853,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 934,
|
|
"properties": [
|
|
{
|
|
"end": 887,
|
|
"key": {
|
|
"end": 874,
|
|
"name": "axis",
|
|
"start": 870,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 870,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"elements": [
|
|
{
|
|
"end": 881,
|
|
"raw": "1.0",
|
|
"start": 878,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 1.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 886,
|
|
"raw": "0.0",
|
|
"start": 883,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 887,
|
|
"start": 877,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 928,
|
|
"key": {
|
|
"end": 901,
|
|
"name": "origin",
|
|
"start": 895,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 895,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"elements": [
|
|
{
|
|
"end": 908,
|
|
"raw": "0.0",
|
|
"start": 905,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 927,
|
|
"left": {
|
|
"end": 916,
|
|
"name": "height",
|
|
"start": 910,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 927,
|
|
"raw": ".0000001",
|
|
"start": 919,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0000001,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 910,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
],
|
|
"end": 928,
|
|
"start": 904,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 862,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 847,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 822,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 951,
|
|
"name": "sketch001",
|
|
"start": 942,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 821,
|
|
"name": "revolve",
|
|
"start": 814,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 952,
|
|
"start": 814,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
"start": 804,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 952,
|
|
"kind": "const",
|
|
"start": 804,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
},
|
|
{
|
|
"declaration": {
|
|
"end": 1631,
|
|
"id": {
|
|
"end": 963,
|
|
"name": "sketch002",
|
|
"start": 954,
|
|
"type": "Identifier"
|
|
},
|
|
"init": {
|
|
"body": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 985,
|
|
"raw": "'-YZ'",
|
|
"start": 980,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": "-YZ"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 979,
|
|
"name": "startSketchOn",
|
|
"start": 966,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 986,
|
|
"start": 966,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"elements": [
|
|
{
|
|
"end": 1028,
|
|
"left": {
|
|
"end": 1024,
|
|
"name": "back_walls_width",
|
|
"start": 1008,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1028,
|
|
"raw": "2",
|
|
"start": 1027,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1008,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 1031,
|
|
"raw": "0",
|
|
"start": 1030,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
],
|
|
"end": 1032,
|
|
"start": 1007,
|
|
"type": "ArrayExpression",
|
|
"type": "ArrayExpression"
|
|
},
|
|
{
|
|
"end": 1035,
|
|
"start": 1034,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1006,
|
|
"name": "startProfileAt",
|
|
"start": 992,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1036,
|
|
"start": 992,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1066,
|
|
"left": {
|
|
"end": 1062,
|
|
"name": "wall_thickness",
|
|
"start": 1048,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1066,
|
|
"raw": "2",
|
|
"start": 1065,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1048,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
{
|
|
"end": 1069,
|
|
"start": 1068,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1047,
|
|
"name": "xLine",
|
|
"start": 1042,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1070,
|
|
"start": 1042,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1127,
|
|
"properties": [
|
|
{
|
|
"end": 1102,
|
|
"key": {
|
|
"end": 1097,
|
|
"name": "angle",
|
|
"start": 1092,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1092,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1102,
|
|
"raw": "45",
|
|
"start": 1100,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 45.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 1125,
|
|
"key": {
|
|
"end": 1106,
|
|
"name": "to",
|
|
"start": 1104,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1104,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1125,
|
|
"name": "back_walls_width",
|
|
"start": 1109,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 1090,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 1130,
|
|
"start": 1129,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
},
|
|
{
|
|
"end": 1138,
|
|
"start": 1132,
|
|
"type": "TagDeclarator",
|
|
"type": "TagDeclarator",
|
|
"value": "seg02"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1089,
|
|
"name": "angledLineToX",
|
|
"start": 1076,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1139,
|
|
"start": 1076,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1159,
|
|
"name": "height",
|
|
"start": 1153,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 1162,
|
|
"start": 1161,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1152,
|
|
"name": "yLineTo",
|
|
"start": 1145,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1163,
|
|
"start": 1145,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"argument": {
|
|
"end": 1190,
|
|
"name": "wall_thickness",
|
|
"start": 1176,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1190,
|
|
"operator": "-",
|
|
"start": 1175,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
{
|
|
"end": 1193,
|
|
"start": 1192,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1174,
|
|
"name": "xLine",
|
|
"start": 1169,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1194,
|
|
"start": 1169,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1221,
|
|
"name": "seg01",
|
|
"start": 1216,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1215,
|
|
"name": "segEndY",
|
|
"start": 1208,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1222,
|
|
"start": 1208,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"end": 1225,
|
|
"start": 1224,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1207,
|
|
"name": "yLineTo",
|
|
"start": 1200,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1226,
|
|
"start": 1200,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1327,
|
|
"properties": [
|
|
{
|
|
"end": 1265,
|
|
"key": {
|
|
"end": 1260,
|
|
"name": "angle",
|
|
"start": 1255,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1255,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1265,
|
|
"raw": "45",
|
|
"start": 1263,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 45.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"end": 1320,
|
|
"key": {
|
|
"end": 1276,
|
|
"name": "to",
|
|
"start": 1274,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1274,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1320,
|
|
"left": {
|
|
"end": 1299,
|
|
"left": {
|
|
"end": 1295,
|
|
"name": "back_walls_width",
|
|
"start": 1279,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1299,
|
|
"raw": "2",
|
|
"start": 1298,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1279,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"operator": "+",
|
|
"right": {
|
|
"end": 1320,
|
|
"left": {
|
|
"end": 1316,
|
|
"name": "wall_thickness",
|
|
"start": 1302,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "/",
|
|
"right": {
|
|
"end": 1320,
|
|
"raw": "2",
|
|
"start": 1319,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 2.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1302,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
},
|
|
"start": 1279,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"start": 1246,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 1330,
|
|
"start": 1329,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1245,
|
|
"name": "angledLineToX",
|
|
"start": 1232,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1331,
|
|
"start": 1232,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"argument": {
|
|
"end": 1358,
|
|
"name": "wall_thickness",
|
|
"start": 1344,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1358,
|
|
"operator": "-",
|
|
"start": 1343,
|
|
"type": "UnaryExpression",
|
|
"type": "UnaryExpression"
|
|
},
|
|
{
|
|
"end": 1361,
|
|
"start": 1360,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1342,
|
|
"name": "xLine",
|
|
"start": 1337,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1362,
|
|
"start": 1337,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1442,
|
|
"properties": [
|
|
{
|
|
"end": 1407,
|
|
"key": {
|
|
"end": 1396,
|
|
"name": "angle",
|
|
"start": 1391,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1391,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1407,
|
|
"left": {
|
|
"end": 1402,
|
|
"raw": "180",
|
|
"start": 1399,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 180.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 1407,
|
|
"raw": "45",
|
|
"start": 1405,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 45.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1399,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1435,
|
|
"key": {
|
|
"end": 1418,
|
|
"name": "to",
|
|
"start": 1416,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1416,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1435,
|
|
"name": "wall_thickness",
|
|
"start": 1421,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
}
|
|
],
|
|
"start": 1382,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 1445,
|
|
"start": 1444,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1381,
|
|
"name": "angledLineToX",
|
|
"start": 1368,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1446,
|
|
"start": 1368,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1466,
|
|
"name": "height",
|
|
"start": 1460,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
{
|
|
"end": 1469,
|
|
"start": 1468,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1459,
|
|
"name": "yLineTo",
|
|
"start": 1452,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1470,
|
|
"start": 1452,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1485,
|
|
"raw": "0",
|
|
"start": 1484,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
{
|
|
"end": 1488,
|
|
"start": 1487,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1483,
|
|
"name": "xLineTo",
|
|
"start": 1476,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1489,
|
|
"start": 1476,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1516,
|
|
"name": "seg02",
|
|
"start": 1511,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1510,
|
|
"name": "segEndY",
|
|
"start": 1503,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1517,
|
|
"start": 1503,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"end": 1520,
|
|
"start": 1519,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1502,
|
|
"name": "yLineTo",
|
|
"start": 1495,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1521,
|
|
"start": 1495,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1569,
|
|
"properties": [
|
|
{
|
|
"end": 1559,
|
|
"key": {
|
|
"end": 1548,
|
|
"name": "angle",
|
|
"start": 1543,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1543,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1559,
|
|
"left": {
|
|
"end": 1554,
|
|
"raw": "180",
|
|
"start": 1551,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 180.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 1559,
|
|
"raw": "45",
|
|
"start": 1557,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 45.0,
|
|
"suffix": "None"
|
|
}
|
|
},
|
|
"start": 1551,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
},
|
|
{
|
|
"end": 1567,
|
|
"key": {
|
|
"end": 1563,
|
|
"name": "to",
|
|
"start": 1561,
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1561,
|
|
"type": "ObjectProperty",
|
|
"value": {
|
|
"end": 1567,
|
|
"raw": "0",
|
|
"start": 1566,
|
|
"type": "Literal",
|
|
"type": "Literal",
|
|
"value": {
|
|
"value": 0.0,
|
|
"suffix": "None"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"start": 1541,
|
|
"type": "ObjectExpression",
|
|
"type": "ObjectExpression"
|
|
},
|
|
{
|
|
"end": 1572,
|
|
"start": 1571,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1540,
|
|
"name": "angledLineToY",
|
|
"start": 1527,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1573,
|
|
"start": 1527,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"end": 1586,
|
|
"start": 1585,
|
|
"type": "PipeSubstitution",
|
|
"type": "PipeSubstitution"
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1584,
|
|
"name": "close",
|
|
"start": 1579,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1587,
|
|
"start": 1579,
|
|
"type": "CallExpression",
|
|
"type": "CallExpression"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"type": "LabeledArg",
|
|
"label": {
|
|
"end": 1607,
|
|
"name": "length",
|
|
"start": 1601,
|
|
"type": "Identifier"
|
|
},
|
|
"arg": {
|
|
"end": 1630,
|
|
"left": {
|
|
"end": 1621,
|
|
"name": "back_length",
|
|
"start": 1610,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"operator": "-",
|
|
"right": {
|
|
"end": 1630,
|
|
"name": "height",
|
|
"start": 1624,
|
|
"type": "Identifier",
|
|
"type": "Identifier"
|
|
},
|
|
"start": 1610,
|
|
"type": "BinaryExpression",
|
|
"type": "BinaryExpression"
|
|
}
|
|
}
|
|
],
|
|
"callee": {
|
|
"end": 1600,
|
|
"name": "extrude",
|
|
"start": 1593,
|
|
"type": "Identifier"
|
|
},
|
|
"end": 1631,
|
|
"start": 1593,
|
|
"type": "CallExpressionKw",
|
|
"type": "CallExpressionKw",
|
|
"unlabeled": null
|
|
}
|
|
],
|
|
"end": 1631,
|
|
"start": 966,
|
|
"type": "PipeExpression",
|
|
"type": "PipeExpression"
|
|
},
|
|
"start": 954,
|
|
"type": "VariableDeclarator"
|
|
},
|
|
"end": 1631,
|
|
"kind": "const",
|
|
"start": 954,
|
|
"type": "VariableDeclaration",
|
|
"type": "VariableDeclaration"
|
|
}
|
|
],
|
|
"end": 1632,
|
|
"nonCodeMeta": {
|
|
"nonCodeNodes": {
|
|
"9": [
|
|
{
|
|
"end": 170,
|
|
"start": 168,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
],
|
|
"11": [
|
|
{
|
|
"end": 954,
|
|
"start": 952,
|
|
"type": "NonCodeNode",
|
|
"value": {
|
|
"type": "newLine"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"startNodes": []
|
|
},
|
|
"start": 0
|
|
}
|
|
}
|