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 tan_arc_x_line.kcl
|
||||
"Ok": {
|
||||
"body": [
|
||||
{
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"name": "startX",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 9,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -35,15 +39,19 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 11,
|
||||
"declaration": {
|
||||
"commentStart": 11,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 11,
|
||||
"end": 0,
|
||||
"name": "startY",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 20,
|
||||
"end": 0,
|
||||
"raw": "0",
|
||||
"start": 0,
|
||||
@ -64,15 +72,19 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 22,
|
||||
"declaration": {
|
||||
"commentStart": 22,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 22,
|
||||
"end": 0,
|
||||
"name": "angleOffset",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 36,
|
||||
"end": 0,
|
||||
"raw": "135",
|
||||
"start": 0,
|
||||
@ -93,15 +105,19 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 40,
|
||||
"declaration": {
|
||||
"commentStart": 40,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 40,
|
||||
"end": 0,
|
||||
"name": "r",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 44,
|
||||
"end": 0,
|
||||
"raw": "1",
|
||||
"start": 0,
|
||||
@ -122,15 +138,19 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 46,
|
||||
"declaration": {
|
||||
"commentStart": 46,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 46,
|
||||
"end": 0,
|
||||
"name": "angleStart",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 59,
|
||||
"end": 0,
|
||||
"raw": "110",
|
||||
"start": 0,
|
||||
@ -151,12 +171,14 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 62,
|
||||
"end": 0,
|
||||
"expression": {
|
||||
"body": [
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 78,
|
||||
"end": 0,
|
||||
"raw": "'XY'",
|
||||
"start": 0,
|
||||
@ -166,11 +188,13 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 64,
|
||||
"end": 0,
|
||||
"name": "startSketchOn",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 64,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -179,8 +203,10 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 104,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 105,
|
||||
"end": 0,
|
||||
"name": "startX",
|
||||
"start": 0,
|
||||
@ -188,6 +214,7 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "Identifier"
|
||||
},
|
||||
{
|
||||
"commentStart": 113,
|
||||
"end": 0,
|
||||
"name": "startY",
|
||||
"start": 0,
|
||||
@ -201,6 +228,7 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "ArrayExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 122,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -208,11 +236,13 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 89,
|
||||
"end": 0,
|
||||
"name": "startProfileAt",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 89,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -221,11 +251,14 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 141,
|
||||
"end": 0,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 143,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 143,
|
||||
"end": 0,
|
||||
"name": "angle",
|
||||
"start": 0,
|
||||
@ -234,6 +267,7 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"start": 0,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 151,
|
||||
"end": 0,
|
||||
"name": "angleStart",
|
||||
"start": 0,
|
||||
@ -242,8 +276,10 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 163,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 163,
|
||||
"end": 0,
|
||||
"name": "length",
|
||||
"start": 0,
|
||||
@ -252,6 +288,7 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"start": 0,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 172,
|
||||
"end": 0,
|
||||
"raw": ".000001",
|
||||
"start": 0,
|
||||
@ -269,6 +306,7 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 183,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
@ -276,11 +314,13 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 130,
|
||||
"end": 0,
|
||||
"name": "angledLine",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 130,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -289,11 +329,14 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 205,
|
||||
"end": 0,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 207,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 207,
|
||||
"end": 0,
|
||||
"name": "offset",
|
||||
"start": 0,
|
||||
@ -302,6 +345,7 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"start": 0,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 216,
|
||||
"end": 0,
|
||||
"name": "angleOffset",
|
||||
"start": 0,
|
||||
@ -310,8 +354,10 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 229,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 229,
|
||||
"end": 0,
|
||||
"name": "radius",
|
||||
"start": 0,
|
||||
@ -320,6 +366,7 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"start": 0,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 238,
|
||||
"end": 0,
|
||||
"name": "r",
|
||||
"start": 0,
|
||||
@ -333,12 +380,14 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 243,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
},
|
||||
{
|
||||
"commentStart": 246,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "TagDeclarator",
|
||||
@ -347,11 +396,13 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 191,
|
||||
"end": 0,
|
||||
"name": "tangentialArc",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 191,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -360,11 +411,14 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 272,
|
||||
"end": 0,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 281,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 281,
|
||||
"end": 0,
|
||||
"name": "offset",
|
||||
"start": 0,
|
||||
@ -373,6 +427,7 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"start": 0,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 290,
|
||||
"end": 0,
|
||||
"name": "angleOffset",
|
||||
"start": 0,
|
||||
@ -381,8 +436,10 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 310,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 310,
|
||||
"end": 0,
|
||||
"name": "radius",
|
||||
"start": 0,
|
||||
@ -391,8 +448,10 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"start": 0,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 319,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"commentStart": 319,
|
||||
"end": 0,
|
||||
"raw": "0.5",
|
||||
"start": 0,
|
||||
@ -405,6 +464,7 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
},
|
||||
"operator": "*",
|
||||
"right": {
|
||||
"commentStart": 325,
|
||||
"end": 0,
|
||||
"name": "r",
|
||||
"start": 0,
|
||||
@ -422,12 +482,14 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 335,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
},
|
||||
{
|
||||
"commentStart": 338,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "TagDeclarator",
|
||||
@ -436,11 +498,13 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 258,
|
||||
"end": 0,
|
||||
"name": "tangentialArc",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 258,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -449,11 +513,14 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
{
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 364,
|
||||
"end": 0,
|
||||
"properties": [
|
||||
{
|
||||
"commentStart": 373,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 373,
|
||||
"end": 0,
|
||||
"name": "offset",
|
||||
"start": 0,
|
||||
@ -463,12 +530,14 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"argument": {
|
||||
"commentStart": 383,
|
||||
"end": 0,
|
||||
"name": "angleOffset",
|
||||
"start": 0,
|
||||
"type": "Identifier",
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 382,
|
||||
"end": 0,
|
||||
"operator": "-",
|
||||
"start": 0,
|
||||
@ -477,8 +546,10 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 403,
|
||||
"end": 0,
|
||||
"key": {
|
||||
"commentStart": 403,
|
||||
"end": 0,
|
||||
"name": "radius",
|
||||
"start": 0,
|
||||
@ -487,8 +558,10 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"start": 0,
|
||||
"type": "ObjectProperty",
|
||||
"value": {
|
||||
"commentStart": 412,
|
||||
"end": 0,
|
||||
"left": {
|
||||
"commentStart": 412,
|
||||
"end": 0,
|
||||
"raw": "0.5",
|
||||
"start": 0,
|
||||
@ -501,6 +574,7 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
},
|
||||
"operator": "*",
|
||||
"right": {
|
||||
"commentStart": 418,
|
||||
"end": 0,
|
||||
"name": "r",
|
||||
"start": 0,
|
||||
@ -518,12 +592,14 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "ObjectExpression"
|
||||
},
|
||||
{
|
||||
"commentStart": 428,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeSubstitution",
|
||||
"type": "PipeSubstitution"
|
||||
},
|
||||
{
|
||||
"commentStart": 431,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "TagDeclarator",
|
||||
@ -532,11 +608,13 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 350,
|
||||
"end": 0,
|
||||
"name": "tangentialArc",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 350,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -547,12 +625,14 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
{
|
||||
"type": "LabeledArg",
|
||||
"label": {
|
||||
"commentStart": 449,
|
||||
"end": 0,
|
||||
"name": "endAbsolute",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"arg": {
|
||||
"commentStart": 463,
|
||||
"end": 0,
|
||||
"raw": "1",
|
||||
"start": 0,
|
||||
@ -566,11 +646,13 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 443,
|
||||
"end": 0,
|
||||
"name": "xLine",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 443,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpressionKw",
|
||||
@ -578,6 +660,7 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"unlabeled": null
|
||||
}
|
||||
],
|
||||
"commentStart": 64,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "PipeExpression",
|
||||
@ -588,11 +671,13 @@ description: Result of parsing tan_arc_x_line.kcl
|
||||
"type": "ExpressionStatement"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"nonCodeMeta": {
|
||||
"nonCodeNodes": {
|
||||
"4": [
|
||||
{
|
||||
"commentStart": 62,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "NonCodeNode",
|
||||
|
||||
Reference in New Issue
Block a user