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 sketch_on_face_end.kcl
|
||||
"Ok": {
|
||||
"body": [
|
||||
{
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 3,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 3,
|
||||
"end": 0,
|
||||
"name": "cube",
|
||||
"start": 0,
|
||||
@ -18,9 +21,12 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"commentStart": 24,
|
||||
"declaration": {
|
||||
"commentStart": 24,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 24,
|
||||
"end": 0,
|
||||
"name": "sg",
|
||||
"start": 0,
|
||||
@ -31,6 +37,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 43,
|
||||
"end": 0,
|
||||
"raw": "'XY'",
|
||||
"start": 0,
|
||||
@ -40,11 +47,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 29,
|
||||
"end": 0,
|
||||
"name": "startSketchOn",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 29,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -53,6 +62,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 71,
|
||||
"end": 0,
|
||||
"name": "pos",
|
||||
"start": 0,
|
||||
@ -60,6 +70,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"commentStart": 76,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -67,11 +78,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 56,
|
||||
"end": 0,
|
||||
"name": "startProfileAt",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 56,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -82,14 +95,17 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 91,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 97,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 98,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -101,6 +117,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 101,
|
||||
"end": 0,
|
||||
"name": "scale",
|
||||
"start": 0,
|
||||
@ -116,11 +133,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 86,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 86,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -132,14 +151,17 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 121,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 127,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 128,
|
||||
"end": 0,
|
||||
"name": "scale",
|
||||
"start": 0,
|
||||
@ -147,6 +169,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"commentStart": 135,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -166,11 +189,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 116,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 116,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -182,14 +207,17 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 151,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 157,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 158,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -202,12 +230,14 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"commentStart": 162,
|
||||
"end": 0,
|
||||
"name": "scale",
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 161,
|
||||
"end": 0,
|
||||
"operator": "-",
|
||||
"start": 0,
|
||||
@ -223,11 +253,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 146,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 146,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -235,6 +267,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"commentStart": 29,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeExpression",
|
||||
@ -251,23 +284,27 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"commentStart": 180,
|
||||
"end": 0,
|
||||
"name": "sg",
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 169,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"commentStart": 20,
|
||||
"end": 0,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
{
|
||||
"commentStart": 169,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
@ -281,11 +318,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
},
|
||||
"start": 0
|
||||
},
|
||||
"commentStart": 7,
|
||||
"end": 0,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"commentStart": 8,
|
||||
"end": 0,
|
||||
"name": "pos",
|
||||
"start": 0,
|
||||
@ -295,6 +334,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"commentStart": 13,
|
||||
"end": 0,
|
||||
"name": "scale",
|
||||
"start": 0,
|
||||
@ -316,9 +356,12 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 185,
|
||||
"declaration": {
|
||||
"commentStart": 185,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 185,
|
||||
"end": 0,
|
||||
"name": "part001",
|
||||
"start": 0,
|
||||
@ -329,8 +372,10 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 200,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 201,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -342,6 +387,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 204,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -359,6 +405,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 208,
|
||||
"end": 0,
|
||||
"raw": "20",
|
||||
"start": 0,
|
||||
@ -371,11 +418,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 195,
|
||||
"end": 0,
|
||||
"name": "cube",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 195,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -384,6 +433,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 223,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -391,11 +441,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 217,
|
||||
"end": 0,
|
||||
"name": "close",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 217,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -406,12 +458,14 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 239,
|
||||
"end": 0,
|
||||
"name": "length",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 248,
|
||||
"end": 0,
|
||||
"raw": "20",
|
||||
"start": 0,
|
||||
@ -425,11 +479,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 231,
|
||||
"end": 0,
|
||||
"name": "extrude",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 231,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -437,6 +493,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"commentStart": 195,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeExpression",
|
||||
@ -452,9 +509,12 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 251,
|
||||
"declaration": {
|
||||
"commentStart": 253,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 253,
|
||||
"end": 0,
|
||||
"name": "part002",
|
||||
"start": 0,
|
||||
@ -465,6 +525,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 277,
|
||||
"end": 0,
|
||||
"name": "part001",
|
||||
"start": 0,
|
||||
@ -472,6 +533,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"commentStart": 286,
|
||||
"end": 0,
|
||||
"raw": "\"END\"",
|
||||
"start": 0,
|
||||
@ -481,11 +543,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 263,
|
||||
"end": 0,
|
||||
"name": "startSketchOn",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 263,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -494,8 +558,10 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 313,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 314,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -507,6 +573,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 317,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -524,6 +591,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 321,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -531,11 +599,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 298,
|
||||
"end": 0,
|
||||
"name": "startProfileAt",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 298,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -546,14 +616,17 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 334,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 340,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 341,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -565,6 +638,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 344,
|
||||
"end": 0,
|
||||
"raw": "10",
|
||||
"start": 0,
|
||||
@ -584,11 +658,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 329,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 329,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -600,14 +676,17 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 359,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 365,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 366,
|
||||
"end": 0,
|
||||
"raw": "10",
|
||||
"start": 0,
|
||||
@ -619,6 +698,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 370,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -638,11 +718,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 354,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 354,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -654,14 +736,17 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 384,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 390,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 391,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -674,6 +759,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"commentStart": 395,
|
||||
"end": 0,
|
||||
"raw": "10",
|
||||
"start": 0,
|
||||
@ -684,6 +770,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"suffix": "None"
|
||||
}
|
||||
},
|
||||
"commentStart": 394,
|
||||
"end": 0,
|
||||
"operator": "-",
|
||||
"start": 0,
|
||||
@ -699,11 +786,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 379,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 379,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -713,6 +802,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 411,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -720,11 +810,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 405,
|
||||
"end": 0,
|
||||
"name": "close",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 405,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -735,12 +827,14 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 427,
|
||||
"end": 0,
|
||||
"name": "length",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 436,
|
||||
"end": 0,
|
||||
"raw": "5",
|
||||
"start": 0,
|
||||
@ -754,11 +848,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 419,
|
||||
"end": 0,
|
||||
"name": "extrude",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 419,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -766,6 +862,7 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"commentStart": 263,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeExpression",
|
||||
@ -781,11 +878,13 @@ description: Result of parsing sketch_on_face_end.kcl
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"1": [
|
||||
{
|
||||
"commentStart": 251,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
|
||||
Reference in New Issue
Block a user