Support comments on attributes (#5850)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -6,15 +6,19 @@ description: Result of parsing pipe.kcl
|
||||
"Ok": {
|
||||
"body": [
|
||||
{
|
||||
"commentStart": 199,
|
||||
"declaration": {
|
||||
"commentStart": 221,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 221,
|
||||
"end": 0,
|
||||
"name": "pipeTotalLength",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 239,
|
||||
"end": 0,
|
||||
"raw": "20",
|
||||
"start": 0,
|
||||
@ -30,20 +34,27 @@ description: Result of parsing pipe.kcl
|
||||
},
|
||||
"end": 0,
|
||||
"kind": "const",
|
||||
"preComments": [
|
||||
"// Define constants"
|
||||
],
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 242,
|
||||
"declaration": {
|
||||
"commentStart": 242,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 242,
|
||||
"end": 0,
|
||||
"name": "pipeLargeDiaLength",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 263,
|
||||
"end": 0,
|
||||
"raw": "1",
|
||||
"start": 0,
|
||||
@ -64,15 +75,19 @@ description: Result of parsing pipe.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 265,
|
||||
"declaration": {
|
||||
"commentStart": 265,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 265,
|
||||
"end": 0,
|
||||
"name": "pipeLargeDia",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 280,
|
||||
"end": 0,
|
||||
"raw": "1",
|
||||
"start": 0,
|
||||
@ -93,15 +108,19 @@ description: Result of parsing pipe.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 282,
|
||||
"declaration": {
|
||||
"commentStart": 282,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 282,
|
||||
"end": 0,
|
||||
"name": "pipeSmallDia",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 297,
|
||||
"end": 0,
|
||||
"raw": ".75",
|
||||
"start": 0,
|
||||
@ -122,15 +141,19 @@ description: Result of parsing pipe.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 301,
|
||||
"declaration": {
|
||||
"commentStart": 301,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 301,
|
||||
"end": 0,
|
||||
"name": "thickness",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 313,
|
||||
"end": 0,
|
||||
"raw": "0.125",
|
||||
"start": 0,
|
||||
@ -151,15 +174,19 @@ description: Result of parsing pipe.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 319,
|
||||
"declaration": {
|
||||
"commentStart": 319,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 319,
|
||||
"end": 0,
|
||||
"name": "pipeTransitionAngle",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 341,
|
||||
"end": 0,
|
||||
"raw": "60",
|
||||
"start": 0,
|
||||
@ -180,15 +207,19 @@ description: Result of parsing pipe.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 344,
|
||||
"declaration": {
|
||||
"commentStart": 344,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 344,
|
||||
"end": 0,
|
||||
"name": "pipeTransitionLength",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 367,
|
||||
"end": 0,
|
||||
"raw": "0.5",
|
||||
"start": 0,
|
||||
@ -209,19 +240,25 @@ description: Result of parsing pipe.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 371,
|
||||
"declaration": {
|
||||
"commentStart": 371,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 371,
|
||||
"end": 0,
|
||||
"name": "pipeSmallDiaLength",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 392,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"commentStart": 392,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"commentStart": 392,
|
||||
"end": 0,
|
||||
"name": "pipeTotalLength",
|
||||
"start": 0,
|
||||
@ -230,6 +267,7 @@ description: Result of parsing pipe.kcl
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"commentStart": 410,
|
||||
"end": 0,
|
||||
"name": "pipeTransitionLength",
|
||||
"start": 0,
|
||||
@ -242,6 +280,7 @@ description: Result of parsing pipe.kcl
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"commentStart": 433,
|
||||
"end": 0,
|
||||
"name": "pipeLargeDiaLength",
|
||||
"start": 0,
|
||||
@ -262,9 +301,12 @@ description: Result of parsing pipe.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 451,
|
||||
"declaration": {
|
||||
"commentStart": 592,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 592,
|
||||
"end": 0,
|
||||
"name": "pipeSketch",
|
||||
"start": 0,
|
||||
@ -275,6 +317,7 @@ description: Result of parsing pipe.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 619,
|
||||
"end": 0,
|
||||
"raw": "'XY'",
|
||||
"start": 0,
|
||||
@ -284,11 +327,13 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 605,
|
||||
"end": 0,
|
||||
"name": "startSketchOn",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 605,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -297,10 +342,13 @@ description: Result of parsing pipe.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 645,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 646,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"commentStart": 646,
|
||||
"end": 0,
|
||||
"name": "pipeSmallDia",
|
||||
"start": 0,
|
||||
@ -309,8 +357,10 @@ description: Result of parsing pipe.kcl
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"commentStart": 662,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"commentStart": 662,
|
||||
"end": 0,
|
||||
"name": "thickness",
|
||||
"start": 0,
|
||||
@ -319,6 +369,7 @@ description: Result of parsing pipe.kcl
|
||||
},
|
||||
"operator": "/",
|
||||
"right": {
|
||||
"commentStart": 674,
|
||||
"end": 0,
|
||||
"raw": "2",
|
||||
"start": 0,
|
||||
@ -338,6 +389,7 @@ description: Result of parsing pipe.kcl
|
||||
"type": "BinaryExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 678,
|
||||
"end": 0,
|
||||
"raw": "38",
|
||||
"start": 0,
|
||||
@ -355,6 +407,7 @@ description: Result of parsing pipe.kcl
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 683,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -362,11 +415,13 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 630,
|
||||
"end": 0,
|
||||
"name": "startProfileAt",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 630,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -377,14 +432,17 @@ description: Result of parsing pipe.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 696,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 702,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 703,
|
||||
"end": 0,
|
||||
"name": "thickness",
|
||||
"start": 0,
|
||||
@ -392,6 +450,7 @@ description: Result of parsing pipe.kcl
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"commentStart": 714,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -411,11 +470,13 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 691,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 691,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -427,14 +488,17 @@ description: Result of parsing pipe.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 728,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 734,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 735,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -447,12 +511,14 @@ description: Result of parsing pipe.kcl
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"commentStart": 739,
|
||||
"end": 0,
|
||||
"name": "pipeSmallDiaLength",
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 738,
|
||||
"end": 0,
|
||||
"operator": "-",
|
||||
"start": 0,
|
||||
@ -468,11 +534,13 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 723,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 723,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -482,11 +550,14 @@ description: Result of parsing pipe.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 785,
|
||||
"end": 0,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 794,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 794,
|
||||
"end": 0,
|
||||
"name": "angle",
|
||||
"start": 0,
|
||||
@ -496,6 +567,7 @@ description: Result of parsing pipe.kcl
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"argument": {
|
||||
"commentStart": 803,
|
||||
"end": 0,
|
||||
"raw": "60",
|
||||
"start": 0,
|
||||
@ -506,6 +578,7 @@ description: Result of parsing pipe.kcl
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"commentStart": 802,
|
||||
"end": 0,
|
||||
"operator": "-",
|
||||
"start": 0,
|
||||
@ -514,8 +587,10 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 814,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 814,
|
||||
"end": 0,
|
||||
"name": "length",
|
||||
"start": 0,
|
||||
@ -524,6 +599,7 @@ description: Result of parsing pipe.kcl
|
||||
"start": 0,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 823,
|
||||
"end": 0,
|
||||
"name": "pipeTransitionLength",
|
||||
"start": 0,
|
||||
@ -537,6 +613,7 @@ description: Result of parsing pipe.kcl
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 852,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -544,11 +621,13 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 765,
|
||||
"end": 0,
|
||||
"name": "angledLineOfYLength",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 765,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -559,14 +638,17 @@ description: Result of parsing pipe.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 865,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 871,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 872,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -579,12 +661,14 @@ description: Result of parsing pipe.kcl
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"commentStart": 876,
|
||||
"end": 0,
|
||||
"name": "pipeLargeDiaLength",
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 875,
|
||||
"end": 0,
|
||||
"operator": "-",
|
||||
"start": 0,
|
||||
@ -600,11 +684,13 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 860,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 860,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -616,6 +702,7 @@ description: Result of parsing pipe.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 908,
|
||||
"end": 0,
|
||||
"name": "length",
|
||||
"start": 0,
|
||||
@ -623,12 +710,14 @@ description: Result of parsing pipe.kcl
|
||||
},
|
||||
"arg": {
|
||||
"argument": {
|
||||
"commentStart": 918,
|
||||
"end": 0,
|
||||
"name": "thickness",
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 917,
|
||||
"end": 0,
|
||||
"operator": "-",
|
||||
"start": 0,
|
||||
@ -638,11 +727,13 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 902,
|
||||
"end": 0,
|
||||
"name": "xLine",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 902,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -654,14 +745,17 @@ description: Result of parsing pipe.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 939,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 945,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 946,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -673,6 +767,7 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 949,
|
||||
"end": 0,
|
||||
"name": "pipeLargeDiaLength",
|
||||
"start": 0,
|
||||
@ -688,11 +783,13 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 934,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 934,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -702,11 +799,14 @@ description: Result of parsing pipe.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 989,
|
||||
"end": 0,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 998,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 998,
|
||||
"end": 0,
|
||||
"name": "angle",
|
||||
"start": 0,
|
||||
@ -715,15 +815,18 @@ description: Result of parsing pipe.kcl
|
||||
"start": 0,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 1006,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"argument": {
|
||||
"commentStart": 1007,
|
||||
"end": 0,
|
||||
"name": "pipeTransitionAngle",
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 1006,
|
||||
"end": 0,
|
||||
"operator": "-",
|
||||
"start": 0,
|
||||
@ -732,6 +835,7 @@ description: Result of parsing pipe.kcl
|
||||
},
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"commentStart": 1029,
|
||||
"end": 0,
|
||||
"raw": "180",
|
||||
"start": 0,
|
||||
@ -748,8 +852,10 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 1041,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 1041,
|
||||
"end": 0,
|
||||
"name": "to",
|
||||
"start": 0,
|
||||
@ -758,8 +864,10 @@ description: Result of parsing pipe.kcl
|
||||
"start": 0,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 1046,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"commentStart": 1046,
|
||||
"end": 0,
|
||||
"name": "pipeSmallDia",
|
||||
"start": 0,
|
||||
@ -768,8 +876,10 @@ description: Result of parsing pipe.kcl
|
||||
},
|
||||
"operator": "-",
|
||||
"right": {
|
||||
"commentStart": 1062,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"commentStart": 1062,
|
||||
"end": 0,
|
||||
"name": "thickness",
|
||||
"start": 0,
|
||||
@ -778,6 +888,7 @@ description: Result of parsing pipe.kcl
|
||||
},
|
||||
"operator": "/",
|
||||
"right": {
|
||||
"commentStart": 1074,
|
||||
"end": 0,
|
||||
"raw": "2",
|
||||
"start": 0,
|
||||
@ -803,6 +914,7 @@ description: Result of parsing pipe.kcl
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 1085,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -810,11 +922,13 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 975,
|
||||
"end": 0,
|
||||
"name": "angledLineToX",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 975,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -823,22 +937,26 @@ description: Result of parsing pipe.kcl
|
||||
{
|
||||
"arguments": [],
|
||||
"callee": {
|
||||
"commentStart": 1093,
|
||||
"end": 0,
|
||||
"name": "close",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 1093,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
"type": "CallExpression"
|
||||
}
|
||||
],
|
||||
"commentStart": 605,
|
||||
"end": 0,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"9": [
|
||||
{
|
||||
"commentStart": 1100,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
@ -861,14 +979,22 @@ description: Result of parsing pipe.kcl
|
||||
},
|
||||
"end": 0,
|
||||
"kind": "const",
|
||||
"preComments": [
|
||||
"",
|
||||
"",
|
||||
"// Create the sketch to be revolved around the y-axis. Use the small diameter, large diameter, length, and thickness to define the sketch."
|
||||
],
|
||||
"start": 0,
|
||||
"type": "VariableDeclaration",
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 1143,
|
||||
"declaration": {
|
||||
"commentStart": 1143,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 1143,
|
||||
"end": 0,
|
||||
"name": "pipe",
|
||||
"start": 0,
|
||||
@ -879,12 +1005,14 @@ description: Result of parsing pipe.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 1170,
|
||||
"end": 0,
|
||||
"name": "axis",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 1177,
|
||||
"end": 0,
|
||||
"raw": "'y'",
|
||||
"start": 0,
|
||||
@ -895,16 +1023,19 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 1150,
|
||||
"end": 0,
|
||||
"name": "revolve",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 1150,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
"type": "CallExpressionKw",
|
||||
"unlabeled": {
|
||||
"commentStart": 1158,
|
||||
"end": 0,
|
||||
"name": "pipeSketch",
|
||||
"start": 0,
|
||||
@ -922,20 +1053,32 @@ description: Result of parsing pipe.kcl
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"innerAttrs": [
|
||||
{
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"name": {
|
||||
"commentStart": 167,
|
||||
"end": 0,
|
||||
"name": "settings",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"preComments": [
|
||||
"// Pipe",
|
||||
"// A tubular section or hollow cylinder, usually but not necessarily of circular cross-section, used mainly to convey substances that can flow.",
|
||||
"",
|
||||
"",
|
||||
"// Set Units"
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 176,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 176,
|
||||
"end": 0,
|
||||
"name": "defaultLengthUnit",
|
||||
"start": 0,
|
||||
@ -944,6 +1087,7 @@ description: Result of parsing pipe.kcl
|
||||
"start": 0,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 196,
|
||||
"end": 0,
|
||||
"name": "in",
|
||||
"start": 0,
|
||||
@ -957,76 +1101,16 @@ description: Result of parsing pipe.kcl
|
||||
}
|
||||
],
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"7": [
|
||||
{
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLineBlockComment",
|
||||
"value": "Create the sketch to be revolved around the y-axis. Use the small diameter, large diameter, length, and thickness to define the sketch.",
|
||||
"style": "line"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"nonCodeNodes": {},
|
||||
"startNodes": [
|
||||
{
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "blockComment",
|
||||
"value": "Pipe",
|
||||
"style": "line"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "blockComment",
|
||||
"value": "A tubular section or hollow cylinder, usually but not necessarily of circular cross-section, used mainly to convey substances that can flow.",
|
||||
"style": "line"
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 199,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "blockComment",
|
||||
"value": "Set Units",
|
||||
"style": "line"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "newLine"
|
||||
}
|
||||
},
|
||||
{
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
"value": {
|
||||
"type": "blockComment",
|
||||
"value": "Define constants",
|
||||
"style": "line"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user