Support comments on attributes (#5850)

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-03-20 16:23:20 +13:00
committed by GitHub
parent 79be72c5f0
commit 461a2c3ab2
319 changed files with 37650 additions and 4752 deletions

View File

@ -6,9 +6,12 @@ description: Result of parsing xz_plane.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 xz_plane.kcl
{
"arguments": [
{
"commentStart": 24,
"end": 0,
"raw": "'XZ'",
"start": 0,
@ -28,11 +32,13 @@ description: Result of parsing xz_plane.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 xz_plane.kcl
{
"arguments": [
{
"commentStart": 50,
"elements": [
{
"commentStart": 51,
"end": 0,
"raw": "0",
"start": 0,
@ -54,6 +62,7 @@ description: Result of parsing xz_plane.kcl
}
},
{
"commentStart": 54,
"end": 0,
"raw": "0",
"start": 0,
@ -71,6 +80,7 @@ description: Result of parsing xz_plane.kcl
"type": "ArrayExpression"
},
{
"commentStart": 58,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
@ -78,11 +88,13 @@ description: Result of parsing xz_plane.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 xz_plane.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 71,
"end": 0,
"name": "endAbsolute",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 85,
"elements": [
{
"commentStart": 86,
"end": 0,
"raw": "100",
"start": 0,
@ -112,6 +127,7 @@ description: Result of parsing xz_plane.kcl
}
},
{
"commentStart": 91,
"end": 0,
"raw": "100",
"start": 0,
@ -131,11 +147,13 @@ description: Result of parsing xz_plane.kcl
}
],
"callee": {
"commentStart": 66,
"end": 0,
"name": "line",
"start": 0,
"type": "Identifier"
},
"commentStart": 66,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -147,14 +165,17 @@ description: Result of parsing xz_plane.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 107,
"end": 0,
"name": "endAbsolute",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 121,
"elements": [
{
"commentStart": 122,
"end": 0,
"raw": "100",
"start": 0,
@ -166,6 +187,7 @@ description: Result of parsing xz_plane.kcl
}
},
{
"commentStart": 127,
"end": 0,
"raw": "0",
"start": 0,
@ -185,11 +207,13 @@ description: Result of parsing xz_plane.kcl
}
],
"callee": {
"commentStart": 102,
"end": 0,
"name": "line",
"start": 0,
"type": "Identifier"
},
"commentStart": 102,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -199,6 +223,7 @@ description: Result of parsing xz_plane.kcl
{
"arguments": [
{
"commentStart": 142,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
@ -206,11 +231,13 @@ description: Result of parsing xz_plane.kcl
}
],
"callee": {
"commentStart": 136,
"end": 0,
"name": "close",
"start": 0,
"type": "Identifier"
},
"commentStart": 136,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -221,14 +248,17 @@ description: Result of parsing xz_plane.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 158,
"end": 0,
"name": "length",
"start": 0,
"type": "Identifier"
},
"arg": {
"commentStart": 167,
"end": 0,
"left": {
"commentStart": 167,
"end": 0,
"raw": "5",
"start": 0,
@ -241,6 +271,7 @@ description: Result of parsing xz_plane.kcl
},
"operator": "+",
"right": {
"commentStart": 171,
"end": 0,
"raw": "7",
"start": 0,
@ -258,11 +289,13 @@ description: Result of parsing xz_plane.kcl
}
],
"callee": {
"commentStart": 150,
"end": 0,
"name": "extrude",
"start": 0,
"type": "Identifier"
},
"commentStart": 150,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -270,6 +303,7 @@ description: Result of parsing xz_plane.kcl
"unlabeled": null
}
],
"commentStart": 10,
"end": 0,
"start": 0,
"type": "PipeExpression",
@ -285,6 +319,7 @@ description: Result of parsing xz_plane.kcl
"type": "VariableDeclaration"
}
],
"commentStart": 0,
"end": 0,
"start": 0
}