Support comments on attributes (#5850)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -6,9 +6,12 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
"Ok": {
|
||||
"body": [
|
||||
{
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"name": "part001",
|
||||
"start": 0,
|
||||
@ -19,6 +22,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 24,
|
||||
"end": 0,
|
||||
"raw": "'XY'",
|
||||
"start": 0,
|
||||
@ -28,11 +32,13 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 10,
|
||||
"end": 0,
|
||||
"name": "startSketchOn",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 10,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -41,8 +47,10 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 50,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 51,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -54,6 +62,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 54,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -71,6 +80,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 58,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -78,11 +88,13 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 35,
|
||||
"end": 0,
|
||||
"name": "startProfileAt",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 35,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -93,14 +105,17 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 71,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 77,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 78,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -112,6 +127,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 81,
|
||||
"end": 0,
|
||||
"raw": "10",
|
||||
"start": 0,
|
||||
@ -132,12 +148,14 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 86,
|
||||
"end": 0,
|
||||
"name": "tag",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 92,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "TagDeclarator",
|
||||
@ -147,11 +165,13 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 66,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 66,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -163,14 +183,17 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 110,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 116,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 117,
|
||||
"end": 0,
|
||||
"raw": "10",
|
||||
"start": 0,
|
||||
@ -182,6 +205,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 121,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -201,11 +225,13 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 105,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 105,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -217,14 +243,17 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 135,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 141,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 142,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -237,6 +266,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"commentStart": 146,
|
||||
"end": 0,
|
||||
"raw": "10",
|
||||
"start": 0,
|
||||
@ -247,6 +277,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"commentStart": 145,
|
||||
"end": 0,
|
||||
"operator": "-",
|
||||
"start": 0,
|
||||
@ -263,12 +294,14 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 151,
|
||||
"end": 0,
|
||||
"name": "tag",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 157,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "TagDeclarator",
|
||||
@ -278,11 +311,13 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 130,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 130,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -292,6 +327,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 177,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -299,11 +335,13 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 171,
|
||||
"end": 0,
|
||||
"name": "close",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 171,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -314,12 +352,14 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 193,
|
||||
"end": 0,
|
||||
"name": "length",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 202,
|
||||
"end": 0,
|
||||
"raw": "10",
|
||||
"start": 0,
|
||||
@ -333,11 +373,13 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 185,
|
||||
"end": 0,
|
||||
"name": "extrude",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 185,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -349,12 +391,14 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 218,
|
||||
"end": 0,
|
||||
"name": "radius",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 227,
|
||||
"end": 0,
|
||||
"raw": "2",
|
||||
"start": 0,
|
||||
@ -369,14 +413,17 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 230,
|
||||
"end": 0,
|
||||
"name": "tags",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 237,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 238,
|
||||
"end": 0,
|
||||
"name": "thing",
|
||||
"start": 0,
|
||||
@ -384,6 +431,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"commentStart": 245,
|
||||
"end": 0,
|
||||
"name": "thing2",
|
||||
"start": 0,
|
||||
@ -399,11 +447,13 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 211,
|
||||
"end": 0,
|
||||
"name": "fillet",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 211,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -411,6 +461,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"commentStart": 10,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeExpression",
|
||||
@ -426,6 +477,7 @@ description: Result of parsing basic_fillet_cube_start.kcl
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
@ -15,6 +15,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [],
|
||||
"tag": {
|
||||
"commentStart": 92,
|
||||
"end": 98,
|
||||
"start": 92,
|
||||
"type": "TagDeclarator",
|
||||
@ -34,6 +35,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl
|
||||
"id": "[uuid]",
|
||||
"sourceRange": [],
|
||||
"tag": {
|
||||
"commentStart": 157,
|
||||
"end": 164,
|
||||
"start": 157,
|
||||
"type": "TagDeclarator",
|
||||
@ -63,6 +65,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl
|
||||
0.0
|
||||
],
|
||||
"tag": {
|
||||
"commentStart": 92,
|
||||
"end": 98,
|
||||
"start": 92,
|
||||
"type": "TagDeclarator",
|
||||
@ -106,6 +109,7 @@ description: Variables in memory after executing basic_fillet_cube_start.kcl
|
||||
10.0
|
||||
],
|
||||
"tag": {
|
||||
"commentStart": 157,
|
||||
"end": 164,
|
||||
"start": 157,
|
||||
"type": "TagDeclarator",
|
||||
|
||||
Reference in New Issue
Block a user