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 function_sketch.kcl
|
||||
"Ok": {
|
||||
"body": [
|
||||
{
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 3,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 3,
|
||||
"end": 0,
|
||||
"name": "box",
|
||||
"start": 0,
|
||||
@ -18,9 +21,12 @@ description: Result of parsing function_sketch.kcl
|
||||
"body": {
|
||||
"body": [
|
||||
{
|
||||
"commentStart": 20,
|
||||
"declaration": {
|
||||
"commentStart": 20,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 20,
|
||||
"end": 0,
|
||||
"name": "myBox",
|
||||
"start": 0,
|
||||
@ -31,6 +37,7 @@ description: Result of parsing function_sketch.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 42,
|
||||
"end": 0,
|
||||
"raw": "'XY'",
|
||||
"start": 0,
|
||||
@ -40,11 +47,13 @@ description: Result of parsing function_sketch.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 28,
|
||||
"end": 0,
|
||||
"name": "startSketchOn",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 28,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -53,8 +62,10 @@ description: Result of parsing function_sketch.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 70,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 71,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -66,6 +77,7 @@ description: Result of parsing function_sketch.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 74,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -83,6 +95,7 @@ description: Result of parsing function_sketch.kcl
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 78,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -90,11 +103,13 @@ description: Result of parsing function_sketch.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 55,
|
||||
"end": 0,
|
||||
"name": "startProfileAt",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 55,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -105,14 +120,17 @@ description: Result of parsing function_sketch.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 93,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 99,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 100,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -124,6 +142,7 @@ description: Result of parsing function_sketch.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 103,
|
||||
"end": 0,
|
||||
"name": "l",
|
||||
"start": 0,
|
||||
@ -139,11 +158,13 @@ description: Result of parsing function_sketch.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 88,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 88,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -155,14 +176,17 @@ description: Result of parsing function_sketch.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 119,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 125,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 126,
|
||||
"end": 0,
|
||||
"name": "w",
|
||||
"start": 0,
|
||||
@ -170,6 +194,7 @@ description: Result of parsing function_sketch.kcl
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"commentStart": 129,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -189,11 +214,13 @@ description: Result of parsing function_sketch.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 114,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 114,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -205,14 +232,17 @@ description: Result of parsing function_sketch.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 145,
|
||||
"end": 0,
|
||||
"name": "end",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 151,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 152,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -225,12 +255,14 @@ description: Result of parsing function_sketch.kcl
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"commentStart": 156,
|
||||
"end": 0,
|
||||
"name": "l",
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 155,
|
||||
"end": 0,
|
||||
"operator": "-",
|
||||
"start": 0,
|
||||
@ -246,11 +278,13 @@ description: Result of parsing function_sketch.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 140,
|
||||
"end": 0,
|
||||
"name": "line",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 140,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -260,6 +294,7 @@ description: Result of parsing function_sketch.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 173,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -267,11 +302,13 @@ description: Result of parsing function_sketch.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 167,
|
||||
"end": 0,
|
||||
"name": "close",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 167,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -282,12 +319,14 @@ description: Result of parsing function_sketch.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 191,
|
||||
"end": 0,
|
||||
"name": "length",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 200,
|
||||
"end": 0,
|
||||
"name": "h",
|
||||
"start": 0,
|
||||
@ -297,11 +336,13 @@ description: Result of parsing function_sketch.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 183,
|
||||
"end": 0,
|
||||
"name": "extrude",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 183,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -309,6 +350,7 @@ description: Result of parsing function_sketch.kcl
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"commentStart": 28,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeExpression",
|
||||
@ -325,23 +367,27 @@ description: Result of parsing function_sketch.kcl
|
||||
},
|
||||
{
|
||||
"argument": {
|
||||
"commentStart": 213,
|
||||
"end": 0,
|
||||
"name": "myBox",
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 202,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "ReturnStatement",
|
||||
"type": "ReturnStatement"
|
||||
}
|
||||
],
|
||||
"commentStart": 16,
|
||||
"end": 0,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
{
|
||||
"commentStart": 202,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
@ -355,11 +401,13 @@ description: Result of parsing function_sketch.kcl
|
||||
},
|
||||
"start": 0
|
||||
},
|
||||
"commentStart": 6,
|
||||
"end": 0,
|
||||
"params": [
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"commentStart": 7,
|
||||
"end": 0,
|
||||
"name": "h",
|
||||
"start": 0,
|
||||
@ -369,6 +417,7 @@ description: Result of parsing function_sketch.kcl
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"commentStart": 10,
|
||||
"end": 0,
|
||||
"name": "l",
|
||||
"start": 0,
|
||||
@ -378,6 +427,7 @@ description: Result of parsing function_sketch.kcl
|
||||
{
|
||||
"type": "Parameter",
|
||||
"identifier": {
|
||||
"commentStart": 13,
|
||||
"end": 0,
|
||||
"name": "w",
|
||||
"start": 0,
|
||||
@ -399,9 +449,12 @@ description: Result of parsing function_sketch.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 220,
|
||||
"declaration": {
|
||||
"commentStart": 222,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 222,
|
||||
"end": 0,
|
||||
"name": "fnBox",
|
||||
"start": 0,
|
||||
@ -410,6 +463,7 @@ description: Result of parsing function_sketch.kcl
|
||||
"init": {
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 234,
|
||||
"end": 0,
|
||||
"raw": "3",
|
||||
"start": 0,
|
||||
@ -421,6 +475,7 @@ description: Result of parsing function_sketch.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 237,
|
||||
"end": 0,
|
||||
"raw": "6",
|
||||
"start": 0,
|
||||
@ -432,6 +487,7 @@ description: Result of parsing function_sketch.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 240,
|
||||
"end": 0,
|
||||
"raw": "10",
|
||||
"start": 0,
|
||||
@ -444,11 +500,13 @@ description: Result of parsing function_sketch.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 230,
|
||||
"end": 0,
|
||||
"name": "box",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 230,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -464,11 +522,13 @@ description: Result of parsing function_sketch.kcl
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"0": [
|
||||
{
|
||||
"commentStart": 220,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
|
||||
Reference in New Issue
Block a user