Erase comment start positions from snapshot tests (#6178)

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-04-07 17:42:15 +12:00
committed by GitHub
parent e7b23e1638
commit e6ae89ebf9
145 changed files with 41979 additions and 41979 deletions

View File

@ -8,10 +8,10 @@ description: Result of parsing cube_with_error.kcl
{
"commentStart": 0,
"declaration": {
"commentStart": 3,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 3,
"commentStart": 0,
"end": 0,
"name": "cube",
"start": 0,
@ -21,26 +21,26 @@ description: Result of parsing cube_with_error.kcl
"body": {
"body": [
{
"commentStart": 28,
"commentStart": 0,
"declaration": {
"commentStart": 28,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 28,
"commentStart": 0,
"end": 0,
"name": "l",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 32,
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 32,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 32,
"commentStart": 0,
"end": 0,
"name": "length",
"start": 0,
@ -53,7 +53,7 @@ description: Result of parsing cube_with_error.kcl
},
"operator": "/",
"right": {
"commentStart": 41,
"commentStart": 0,
"end": 0,
"raw": "2",
"start": 0,
@ -78,23 +78,23 @@ description: Result of parsing cube_with_error.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 45,
"commentStart": 0,
"declaration": {
"commentStart": 45,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 45,
"commentStart": 0,
"end": 0,
"name": "x",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 49,
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 49,
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
@ -102,7 +102,7 @@ description: Result of parsing cube_with_error.kcl
"type": "Identifier"
},
"property": {
"commentStart": 56,
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
@ -127,23 +127,23 @@ description: Result of parsing cube_with_error.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 61,
"commentStart": 0,
"declaration": {
"commentStart": 61,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 61,
"commentStart": 0,
"end": 0,
"name": "y",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 65,
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 65,
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
@ -151,7 +151,7 @@ description: Result of parsing cube_with_error.kcl
"type": "Identifier"
},
"property": {
"commentStart": 72,
"commentStart": 0,
"end": 0,
"raw": "1",
"start": 0,
@ -176,30 +176,30 @@ description: Result of parsing cube_with_error.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 77,
"commentStart": 0,
"declaration": {
"commentStart": 77,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 77,
"commentStart": 0,
"end": 0,
"name": "p0",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 82,
"commentStart": 0,
"elements": [
{
"commentStart": 83,
"commentStart": 0,
"end": 0,
"left": {
"argument": {
"abs_path": false,
"commentStart": 84,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 84,
"commentStart": 0,
"end": 0,
"name": "l",
"start": 0,
@ -210,7 +210,7 @@ description: Result of parsing cube_with_error.kcl
"type": "Name",
"type": "Name"
},
"commentStart": 83,
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
@ -220,10 +220,10 @@ description: Result of parsing cube_with_error.kcl
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 88,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 88,
"commentStart": 0,
"end": 0,
"name": "x",
"start": 0,
@ -239,15 +239,15 @@ description: Result of parsing cube_with_error.kcl
"type": "BinaryExpression"
},
{
"commentStart": 91,
"commentStart": 0,
"end": 0,
"left": {
"argument": {
"abs_path": false,
"commentStart": 92,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 92,
"commentStart": 0,
"end": 0,
"name": "l",
"start": 0,
@ -258,7 +258,7 @@ description: Result of parsing cube_with_error.kcl
"type": "Name",
"type": "Name"
},
"commentStart": 91,
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
@ -268,10 +268,10 @@ description: Result of parsing cube_with_error.kcl
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 96,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 96,
"commentStart": 0,
"end": 0,
"name": "y",
"start": 0,
@ -302,30 +302,30 @@ description: Result of parsing cube_with_error.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 101,
"commentStart": 0,
"declaration": {
"commentStart": 101,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 101,
"commentStart": 0,
"end": 0,
"name": "p1",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 106,
"commentStart": 0,
"elements": [
{
"commentStart": 107,
"commentStart": 0,
"end": 0,
"left": {
"argument": {
"abs_path": false,
"commentStart": 108,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 108,
"commentStart": 0,
"end": 0,
"name": "l",
"start": 0,
@ -336,7 +336,7 @@ description: Result of parsing cube_with_error.kcl
"type": "Name",
"type": "Name"
},
"commentStart": 107,
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
@ -346,10 +346,10 @@ description: Result of parsing cube_with_error.kcl
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 112,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 112,
"commentStart": 0,
"end": 0,
"name": "x",
"start": 0,
@ -365,14 +365,14 @@ description: Result of parsing cube_with_error.kcl
"type": "BinaryExpression"
},
{
"commentStart": 115,
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 115,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 115,
"commentStart": 0,
"end": 0,
"name": "l",
"start": 0,
@ -386,10 +386,10 @@ description: Result of parsing cube_with_error.kcl
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 119,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 119,
"commentStart": 0,
"end": 0,
"name": "y",
"start": 0,
@ -420,29 +420,29 @@ description: Result of parsing cube_with_error.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 124,
"commentStart": 0,
"declaration": {
"commentStart": 124,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 124,
"commentStart": 0,
"end": 0,
"name": "p2",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 129,
"commentStart": 0,
"elements": [
{
"commentStart": 130,
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 130,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 130,
"commentStart": 0,
"end": 0,
"name": "l",
"start": 0,
@ -456,10 +456,10 @@ description: Result of parsing cube_with_error.kcl
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 134,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 134,
"commentStart": 0,
"end": 0,
"name": "x",
"start": 0,
@ -475,14 +475,14 @@ description: Result of parsing cube_with_error.kcl
"type": "BinaryExpression"
},
{
"commentStart": 137,
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 137,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 137,
"commentStart": 0,
"end": 0,
"name": "l",
"start": 0,
@ -496,10 +496,10 @@ description: Result of parsing cube_with_error.kcl
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 141,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 141,
"commentStart": 0,
"end": 0,
"name": "y",
"start": 0,
@ -530,29 +530,29 @@ description: Result of parsing cube_with_error.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 146,
"commentStart": 0,
"declaration": {
"commentStart": 146,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 146,
"commentStart": 0,
"end": 0,
"name": "p3",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 151,
"commentStart": 0,
"elements": [
{
"commentStart": 152,
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 152,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 152,
"commentStart": 0,
"end": 0,
"name": "l",
"start": 0,
@ -566,10 +566,10 @@ description: Result of parsing cube_with_error.kcl
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 156,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 156,
"commentStart": 0,
"end": 0,
"name": "x",
"start": 0,
@ -585,15 +585,15 @@ description: Result of parsing cube_with_error.kcl
"type": "BinaryExpression"
},
{
"commentStart": 159,
"commentStart": 0,
"end": 0,
"left": {
"argument": {
"abs_path": false,
"commentStart": 160,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 160,
"commentStart": 0,
"end": 0,
"name": "l",
"start": 0,
@ -604,7 +604,7 @@ description: Result of parsing cube_with_error.kcl
"type": "Name",
"type": "Name"
},
"commentStart": 159,
"commentStart": 0,
"end": 0,
"operator": "-",
"start": 0,
@ -614,10 +614,10 @@ description: Result of parsing cube_with_error.kcl
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 164,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 164,
"commentStart": 0,
"end": 0,
"name": "y",
"start": 0,
@ -654,10 +654,10 @@ description: Result of parsing cube_with_error.kcl
"arguments": [
{
"abs_path": false,
"commentStart": 191,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 191,
"commentStart": 0,
"end": 0,
"name": "XY",
"start": 0,
@ -671,10 +671,10 @@ description: Result of parsing cube_with_error.kcl
],
"callee": {
"abs_path": false,
"commentStart": 177,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 177,
"commentStart": 0,
"end": 0,
"name": "startSketchOn",
"start": 0,
@ -684,7 +684,7 @@ description: Result of parsing cube_with_error.kcl
"start": 0,
"type": "Name"
},
"commentStart": 177,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -694,10 +694,10 @@ description: Result of parsing cube_with_error.kcl
"arguments": [
{
"abs_path": false,
"commentStart": 217,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 217,
"commentStart": 0,
"end": 0,
"name": "p0",
"start": 0,
@ -709,7 +709,7 @@ description: Result of parsing cube_with_error.kcl
"type": "Name"
},
{
"commentStart": 221,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeSubstitution",
@ -718,10 +718,10 @@ description: Result of parsing cube_with_error.kcl
],
"callee": {
"abs_path": false,
"commentStart": 202,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 202,
"commentStart": 0,
"end": 0,
"name": "startProfileAt",
"start": 0,
@ -731,7 +731,7 @@ description: Result of parsing cube_with_error.kcl
"start": 0,
"type": "Name"
},
"commentStart": 202,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -742,7 +742,7 @@ description: Result of parsing cube_with_error.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 236,
"commentStart": 0,
"end": 0,
"name": "endAbsolute",
"start": 0,
@ -750,10 +750,10 @@ description: Result of parsing cube_with_error.kcl
},
"arg": {
"abs_path": false,
"commentStart": 250,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 250,
"commentStart": 0,
"end": 0,
"name": "p1",
"start": 0,
@ -768,10 +768,10 @@ description: Result of parsing cube_with_error.kcl
],
"callee": {
"abs_path": false,
"commentStart": 231,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 231,
"commentStart": 0,
"end": 0,
"name": "line",
"start": 0,
@ -781,7 +781,7 @@ description: Result of parsing cube_with_error.kcl
"start": 0,
"type": "Name"
},
"commentStart": 231,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -793,7 +793,7 @@ description: Result of parsing cube_with_error.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 266,
"commentStart": 0,
"end": 0,
"name": "endAbsolute",
"start": 0,
@ -801,10 +801,10 @@ description: Result of parsing cube_with_error.kcl
},
"arg": {
"abs_path": false,
"commentStart": 280,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 280,
"commentStart": 0,
"end": 0,
"name": "p2",
"start": 0,
@ -819,10 +819,10 @@ description: Result of parsing cube_with_error.kcl
],
"callee": {
"abs_path": false,
"commentStart": 261,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 261,
"commentStart": 0,
"end": 0,
"name": "line",
"start": 0,
@ -832,7 +832,7 @@ description: Result of parsing cube_with_error.kcl
"start": 0,
"type": "Name"
},
"commentStart": 261,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -844,7 +844,7 @@ description: Result of parsing cube_with_error.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 296,
"commentStart": 0,
"end": 0,
"name": "endAbsolute",
"start": 0,
@ -852,10 +852,10 @@ description: Result of parsing cube_with_error.kcl
},
"arg": {
"abs_path": false,
"commentStart": 310,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 310,
"commentStart": 0,
"end": 0,
"name": "p3",
"start": 0,
@ -870,10 +870,10 @@ description: Result of parsing cube_with_error.kcl
],
"callee": {
"abs_path": false,
"commentStart": 291,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 291,
"commentStart": 0,
"end": 0,
"name": "line",
"start": 0,
@ -883,7 +883,7 @@ description: Result of parsing cube_with_error.kcl
"start": 0,
"type": "Name"
},
"commentStart": 291,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -895,7 +895,7 @@ description: Result of parsing cube_with_error.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 326,
"commentStart": 0,
"end": 0,
"name": "endAbsolute",
"start": 0,
@ -903,10 +903,10 @@ description: Result of parsing cube_with_error.kcl
},
"arg": {
"abs_path": false,
"commentStart": 340,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 340,
"commentStart": 0,
"end": 0,
"name": "p0",
"start": 0,
@ -921,10 +921,10 @@ description: Result of parsing cube_with_error.kcl
],
"callee": {
"abs_path": false,
"commentStart": 321,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 321,
"commentStart": 0,
"end": 0,
"name": "line",
"start": 0,
@ -934,7 +934,7 @@ description: Result of parsing cube_with_error.kcl
"start": 0,
"type": "Name"
},
"commentStart": 321,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -945,10 +945,10 @@ description: Result of parsing cube_with_error.kcl
"arguments": [],
"callee": {
"abs_path": false,
"commentStart": 351,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 351,
"commentStart": 0,
"end": 0,
"name": "close",
"start": 0,
@ -958,7 +958,7 @@ description: Result of parsing cube_with_error.kcl
"start": 0,
"type": "Name"
},
"commentStart": 351,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -969,7 +969,7 @@ description: Result of parsing cube_with_error.kcl
{
"type": "LabeledArg",
"label": {
"commentStart": 374,
"commentStart": 0,
"end": 0,
"name": "length",
"start": 0,
@ -977,10 +977,10 @@ description: Result of parsing cube_with_error.kcl
},
"arg": {
"abs_path": false,
"commentStart": 383,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 383,
"commentStart": 0,
"end": 0,
"name": "length",
"start": 0,
@ -995,10 +995,10 @@ description: Result of parsing cube_with_error.kcl
],
"callee": {
"abs_path": false,
"commentStart": 366,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 366,
"commentStart": 0,
"end": 0,
"name": "extrude",
"start": 0,
@ -1008,7 +1008,7 @@ description: Result of parsing cube_with_error.kcl
"start": 0,
"type": "Name"
},
"commentStart": 366,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpressionKw",
@ -1016,26 +1016,26 @@ description: Result of parsing cube_with_error.kcl
"unlabeled": null
}
],
"commentStart": 177,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "PipeExpression",
"type": "PipeExpression"
},
"commentStart": 166,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "ReturnStatement",
"type": "ReturnStatement"
}
],
"commentStart": 24,
"commentStart": 0,
"end": 0,
"nonCodeMeta": {
"nonCodeNodes": {
"6": [
{
"commentStart": 166,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "NonCodeNode",
@ -1049,13 +1049,13 @@ description: Result of parsing cube_with_error.kcl
},
"start": 0
},
"commentStart": 7,
"commentStart": 0,
"end": 0,
"params": [
{
"type": "Parameter",
"identifier": {
"commentStart": 8,
"commentStart": 0,
"end": 0,
"name": "length",
"start": 0,
@ -1065,7 +1065,7 @@ description: Result of parsing cube_with_error.kcl
{
"type": "Parameter",
"identifier": {
"commentStart": 16,
"commentStart": 0,
"end": 0,
"name": "center",
"start": 0,
@ -1087,12 +1087,12 @@ description: Result of parsing cube_with_error.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 392,
"commentStart": 0,
"declaration": {
"commentStart": 394,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 394,
"commentStart": 0,
"end": 0,
"name": "myCube",
"start": 0,
@ -1101,7 +1101,7 @@ description: Result of parsing cube_with_error.kcl
"init": {
"arguments": [
{
"commentStart": 408,
"commentStart": 0,
"end": 0,
"raw": "40",
"start": 0,
@ -1113,10 +1113,10 @@ description: Result of parsing cube_with_error.kcl
}
},
{
"commentStart": 412,
"commentStart": 0,
"elements": [
{
"commentStart": 413,
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
@ -1128,7 +1128,7 @@ description: Result of parsing cube_with_error.kcl
}
},
{
"commentStart": 416,
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
@ -1148,10 +1148,10 @@ description: Result of parsing cube_with_error.kcl
],
"callee": {
"abs_path": false,
"commentStart": 403,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 403,
"commentStart": 0,
"end": 0,
"name": "cube",
"start": 0,
@ -1161,7 +1161,7 @@ description: Result of parsing cube_with_error.kcl
"start": 0,
"type": "Name"
},
"commentStart": 403,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -1177,14 +1177,14 @@ description: Result of parsing cube_with_error.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 419,
"commentStart": 0,
"end": 0,
"expression": {
"abs_path": false,
"commentStart": 465,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 465,
"commentStart": 0,
"end": 0,
"name": "foo",
"start": 0,
@ -1211,7 +1211,7 @@ description: Result of parsing cube_with_error.kcl
"nonCodeNodes": {
"0": [
{
"commentStart": 392,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "NonCodeNode",