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

@ -18,10 +18,10 @@ description: Result of parsing array_range_expr.kcl
"type": "Identifier"
},
"init": {
"commentStart": 5,
"commentStart": 0,
"end": 0,
"endElement": {
"commentStart": 9,
"commentStart": 0,
"end": 0,
"raw": "4",
"start": 0,
@ -35,7 +35,7 @@ description: Result of parsing array_range_expr.kcl
"endInclusive": true,
"start": 0,
"startElement": {
"commentStart": 6,
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
@ -59,16 +59,16 @@ description: Result of parsing array_range_expr.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 12,
"commentStart": 0,
"end": 0,
"expression": {
"arguments": [
{
"commentStart": 24,
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 24,
"commentStart": 0,
"end": 0,
"name": "r1",
"start": 0,
@ -76,7 +76,7 @@ description: Result of parsing array_range_expr.kcl
"type": "Identifier"
},
"property": {
"commentStart": 27,
"commentStart": 0,
"end": 0,
"raw": "4",
"start": 0,
@ -92,7 +92,7 @@ description: Result of parsing array_range_expr.kcl
"type": "MemberExpression"
},
{
"commentStart": 31,
"commentStart": 0,
"end": 0,
"raw": "4",
"start": 0,
@ -104,7 +104,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 34,
"commentStart": 0,
"end": 0,
"raw": "0.00001",
"start": 0,
@ -116,7 +116,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 43,
"commentStart": 0,
"end": 0,
"raw": "\"last element is included\"",
"start": 0,
@ -127,10 +127,10 @@ description: Result of parsing array_range_expr.kcl
],
"callee": {
"abs_path": false,
"commentStart": 12,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 12,
"commentStart": 0,
"end": 0,
"name": "assertEqual",
"start": 0,
@ -140,7 +140,7 @@ description: Result of parsing array_range_expr.kcl
"start": 0,
"type": "Name"
},
"commentStart": 12,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -151,19 +151,19 @@ description: Result of parsing array_range_expr.kcl
"type": "ExpressionStatement"
},
{
"commentStart": 70,
"commentStart": 0,
"declaration": {
"commentStart": 72,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 72,
"commentStart": 0,
"end": 0,
"name": "four",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 79,
"commentStart": 0,
"end": 0,
"raw": "4",
"start": 0,
@ -184,19 +184,19 @@ description: Result of parsing array_range_expr.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 81,
"commentStart": 0,
"declaration": {
"commentStart": 81,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 81,
"commentStart": 0,
"end": 0,
"name": "zero",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 88,
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
@ -217,26 +217,26 @@ description: Result of parsing array_range_expr.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 90,
"commentStart": 0,
"declaration": {
"commentStart": 90,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 90,
"commentStart": 0,
"end": 0,
"name": "r2",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 95,
"commentStart": 0,
"end": 0,
"endElement": {
"abs_path": false,
"commentStart": 102,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 102,
"commentStart": 0,
"end": 0,
"name": "four",
"start": 0,
@ -251,10 +251,10 @@ description: Result of parsing array_range_expr.kcl
"start": 0,
"startElement": {
"abs_path": false,
"commentStart": 96,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 96,
"commentStart": 0,
"end": 0,
"name": "zero",
"start": 0,
@ -278,16 +278,16 @@ description: Result of parsing array_range_expr.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 108,
"commentStart": 0,
"end": 0,
"expression": {
"arguments": [
{
"commentStart": 120,
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 120,
"commentStart": 0,
"end": 0,
"name": "r2",
"start": 0,
@ -295,7 +295,7 @@ description: Result of parsing array_range_expr.kcl
"type": "Identifier"
},
"property": {
"commentStart": 123,
"commentStart": 0,
"end": 0,
"raw": "4",
"start": 0,
@ -311,7 +311,7 @@ description: Result of parsing array_range_expr.kcl
"type": "MemberExpression"
},
{
"commentStart": 127,
"commentStart": 0,
"end": 0,
"raw": "4",
"start": 0,
@ -323,7 +323,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 130,
"commentStart": 0,
"end": 0,
"raw": "0.00001",
"start": 0,
@ -335,7 +335,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 139,
"commentStart": 0,
"end": 0,
"raw": "\"last element is included\"",
"start": 0,
@ -346,10 +346,10 @@ description: Result of parsing array_range_expr.kcl
],
"callee": {
"abs_path": false,
"commentStart": 108,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 108,
"commentStart": 0,
"end": 0,
"name": "assertEqual",
"start": 0,
@ -359,7 +359,7 @@ description: Result of parsing array_range_expr.kcl
"start": 0,
"type": "Name"
},
"commentStart": 108,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -370,12 +370,12 @@ description: Result of parsing array_range_expr.kcl
"type": "ExpressionStatement"
},
{
"commentStart": 166,
"commentStart": 0,
"declaration": {
"commentStart": 168,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 168,
"commentStart": 0,
"end": 0,
"name": "five",
"start": 0,
@ -384,14 +384,14 @@ description: Result of parsing array_range_expr.kcl
"init": {
"arguments": [
{
"commentStart": 179,
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 179,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 179,
"commentStart": 0,
"end": 0,
"name": "four",
"start": 0,
@ -404,7 +404,7 @@ description: Result of parsing array_range_expr.kcl
},
"operator": "+",
"right": {
"commentStart": 186,
"commentStart": 0,
"end": 0,
"raw": "1",
"start": 0,
@ -422,10 +422,10 @@ description: Result of parsing array_range_expr.kcl
],
"callee": {
"abs_path": false,
"commentStart": 175,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 175,
"commentStart": 0,
"end": 0,
"name": "int",
"start": 0,
@ -435,7 +435,7 @@ description: Result of parsing array_range_expr.kcl
"start": 0,
"type": "Name"
},
"commentStart": 175,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -451,26 +451,26 @@ description: Result of parsing array_range_expr.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 189,
"commentStart": 0,
"declaration": {
"commentStart": 189,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 189,
"commentStart": 0,
"end": 0,
"name": "r3",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 194,
"commentStart": 0,
"end": 0,
"endElement": {
"abs_path": false,
"commentStart": 201,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 201,
"commentStart": 0,
"end": 0,
"name": "five",
"start": 0,
@ -485,10 +485,10 @@ description: Result of parsing array_range_expr.kcl
"start": 0,
"startElement": {
"abs_path": false,
"commentStart": 195,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 195,
"commentStart": 0,
"end": 0,
"name": "zero",
"start": 0,
@ -512,16 +512,16 @@ description: Result of parsing array_range_expr.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 207,
"commentStart": 0,
"end": 0,
"expression": {
"arguments": [
{
"commentStart": 219,
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 219,
"commentStart": 0,
"end": 0,
"name": "r3",
"start": 0,
@ -529,7 +529,7 @@ description: Result of parsing array_range_expr.kcl
"type": "Identifier"
},
"property": {
"commentStart": 222,
"commentStart": 0,
"end": 0,
"raw": "4",
"start": 0,
@ -545,7 +545,7 @@ description: Result of parsing array_range_expr.kcl
"type": "MemberExpression"
},
{
"commentStart": 226,
"commentStart": 0,
"end": 0,
"raw": "4",
"start": 0,
@ -557,7 +557,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 229,
"commentStart": 0,
"end": 0,
"raw": "0.00001",
"start": 0,
@ -569,7 +569,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 238,
"commentStart": 0,
"end": 0,
"raw": "\"second-to-last element is included\"",
"start": 0,
@ -580,10 +580,10 @@ description: Result of parsing array_range_expr.kcl
],
"callee": {
"abs_path": false,
"commentStart": 207,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 207,
"commentStart": 0,
"end": 0,
"name": "assertEqual",
"start": 0,
@ -593,7 +593,7 @@ description: Result of parsing array_range_expr.kcl
"start": 0,
"type": "Name"
},
"commentStart": 207,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -604,16 +604,16 @@ description: Result of parsing array_range_expr.kcl
"type": "ExpressionStatement"
},
{
"commentStart": 276,
"commentStart": 0,
"end": 0,
"expression": {
"arguments": [
{
"commentStart": 288,
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 288,
"commentStart": 0,
"end": 0,
"name": "r3",
"start": 0,
@ -621,7 +621,7 @@ description: Result of parsing array_range_expr.kcl
"type": "Identifier"
},
"property": {
"commentStart": 291,
"commentStart": 0,
"end": 0,
"raw": "5",
"start": 0,
@ -637,7 +637,7 @@ description: Result of parsing array_range_expr.kcl
"type": "MemberExpression"
},
{
"commentStart": 295,
"commentStart": 0,
"end": 0,
"raw": "5",
"start": 0,
@ -649,7 +649,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 298,
"commentStart": 0,
"end": 0,
"raw": "0.00001",
"start": 0,
@ -661,7 +661,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 307,
"commentStart": 0,
"end": 0,
"raw": "\"last element is included\"",
"start": 0,
@ -672,10 +672,10 @@ description: Result of parsing array_range_expr.kcl
],
"callee": {
"abs_path": false,
"commentStart": 276,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 276,
"commentStart": 0,
"end": 0,
"name": "assertEqual",
"start": 0,
@ -685,7 +685,7 @@ description: Result of parsing array_range_expr.kcl
"start": 0,
"type": "Name"
},
"commentStart": 276,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -696,31 +696,31 @@ description: Result of parsing array_range_expr.kcl
"type": "ExpressionStatement"
},
{
"commentStart": 334,
"commentStart": 0,
"declaration": {
"commentStart": 336,
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 336,
"commentStart": 0,
"end": 0,
"name": "r4",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 341,
"commentStart": 0,
"end": 0,
"endElement": {
"arguments": [
{
"commentStart": 363,
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 363,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 363,
"commentStart": 0,
"end": 0,
"name": "five",
"start": 0,
@ -733,7 +733,7 @@ description: Result of parsing array_range_expr.kcl
},
"operator": "-",
"right": {
"commentStart": 370,
"commentStart": 0,
"end": 0,
"raw": "1",
"start": 0,
@ -751,10 +751,10 @@ description: Result of parsing array_range_expr.kcl
],
"callee": {
"abs_path": false,
"commentStart": 359,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 359,
"commentStart": 0,
"end": 0,
"name": "int",
"start": 0,
@ -764,7 +764,7 @@ description: Result of parsing array_range_expr.kcl
"start": 0,
"type": "Name"
},
"commentStart": 359,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -775,14 +775,14 @@ description: Result of parsing array_range_expr.kcl
"startElement": {
"arguments": [
{
"commentStart": 346,
"commentStart": 0,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 346,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 346,
"commentStart": 0,
"end": 0,
"name": "zero",
"start": 0,
@ -795,7 +795,7 @@ description: Result of parsing array_range_expr.kcl
},
"operator": "+",
"right": {
"commentStart": 353,
"commentStart": 0,
"end": 0,
"raw": "1",
"start": 0,
@ -813,10 +813,10 @@ description: Result of parsing array_range_expr.kcl
],
"callee": {
"abs_path": false,
"commentStart": 342,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 342,
"commentStart": 0,
"end": 0,
"name": "int",
"start": 0,
@ -826,7 +826,7 @@ description: Result of parsing array_range_expr.kcl
"start": 0,
"type": "Name"
},
"commentStart": 342,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -845,16 +845,16 @@ description: Result of parsing array_range_expr.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 374,
"commentStart": 0,
"end": 0,
"expression": {
"arguments": [
{
"commentStart": 386,
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 386,
"commentStart": 0,
"end": 0,
"name": "r4",
"start": 0,
@ -862,7 +862,7 @@ description: Result of parsing array_range_expr.kcl
"type": "Identifier"
},
"property": {
"commentStart": 389,
"commentStart": 0,
"end": 0,
"raw": "0",
"start": 0,
@ -878,7 +878,7 @@ description: Result of parsing array_range_expr.kcl
"type": "MemberExpression"
},
{
"commentStart": 393,
"commentStart": 0,
"end": 0,
"raw": "1",
"start": 0,
@ -890,7 +890,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 396,
"commentStart": 0,
"end": 0,
"raw": "0.00001",
"start": 0,
@ -902,7 +902,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 405,
"commentStart": 0,
"end": 0,
"raw": "\"first element is 1\"",
"start": 0,
@ -913,10 +913,10 @@ description: Result of parsing array_range_expr.kcl
],
"callee": {
"abs_path": false,
"commentStart": 374,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 374,
"commentStart": 0,
"end": 0,
"name": "assertEqual",
"start": 0,
@ -926,7 +926,7 @@ description: Result of parsing array_range_expr.kcl
"start": 0,
"type": "Name"
},
"commentStart": 374,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -937,16 +937,16 @@ description: Result of parsing array_range_expr.kcl
"type": "ExpressionStatement"
},
{
"commentStart": 427,
"commentStart": 0,
"end": 0,
"expression": {
"arguments": [
{
"commentStart": 439,
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 439,
"commentStart": 0,
"end": 0,
"name": "r4",
"start": 0,
@ -954,7 +954,7 @@ description: Result of parsing array_range_expr.kcl
"type": "Identifier"
},
"property": {
"commentStart": 442,
"commentStart": 0,
"end": 0,
"raw": "2",
"start": 0,
@ -970,7 +970,7 @@ description: Result of parsing array_range_expr.kcl
"type": "MemberExpression"
},
{
"commentStart": 446,
"commentStart": 0,
"end": 0,
"raw": "3",
"start": 0,
@ -982,7 +982,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 449,
"commentStart": 0,
"end": 0,
"raw": "0.00001",
"start": 0,
@ -994,7 +994,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 458,
"commentStart": 0,
"end": 0,
"raw": "\"second-to-last element is 3\"",
"start": 0,
@ -1005,10 +1005,10 @@ description: Result of parsing array_range_expr.kcl
],
"callee": {
"abs_path": false,
"commentStart": 427,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 427,
"commentStart": 0,
"end": 0,
"name": "assertEqual",
"start": 0,
@ -1018,7 +1018,7 @@ description: Result of parsing array_range_expr.kcl
"start": 0,
"type": "Name"
},
"commentStart": 427,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -1029,16 +1029,16 @@ description: Result of parsing array_range_expr.kcl
"type": "ExpressionStatement"
},
{
"commentStart": 489,
"commentStart": 0,
"end": 0,
"expression": {
"arguments": [
{
"commentStart": 501,
"commentStart": 0,
"computed": false,
"end": 0,
"object": {
"commentStart": 501,
"commentStart": 0,
"end": 0,
"name": "r4",
"start": 0,
@ -1046,7 +1046,7 @@ description: Result of parsing array_range_expr.kcl
"type": "Identifier"
},
"property": {
"commentStart": 504,
"commentStart": 0,
"end": 0,
"raw": "3",
"start": 0,
@ -1062,7 +1062,7 @@ description: Result of parsing array_range_expr.kcl
"type": "MemberExpression"
},
{
"commentStart": 508,
"commentStart": 0,
"end": 0,
"raw": "4",
"start": 0,
@ -1074,7 +1074,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 511,
"commentStart": 0,
"end": 0,
"raw": "0.00001",
"start": 0,
@ -1086,7 +1086,7 @@ description: Result of parsing array_range_expr.kcl
}
},
{
"commentStart": 520,
"commentStart": 0,
"end": 0,
"raw": "\"last element is 4\"",
"start": 0,
@ -1097,10 +1097,10 @@ description: Result of parsing array_range_expr.kcl
],
"callee": {
"abs_path": false,
"commentStart": 489,
"commentStart": 0,
"end": 0,
"name": {
"commentStart": 489,
"commentStart": 0,
"end": 0,
"name": "assertEqual",
"start": 0,
@ -1110,7 +1110,7 @@ description: Result of parsing array_range_expr.kcl
"start": 0,
"type": "Name"
},
"commentStart": 489,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "CallExpression",
@ -1127,7 +1127,7 @@ description: Result of parsing array_range_expr.kcl
"nonCodeNodes": {
"1": [
{
"commentStart": 70,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "NonCodeNode",
@ -1138,7 +1138,7 @@ description: Result of parsing array_range_expr.kcl
],
"5": [
{
"commentStart": 166,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "NonCodeNode",
@ -1149,7 +1149,7 @@ description: Result of parsing array_range_expr.kcl
],
"9": [
{
"commentStart": 334,
"commentStart": 0,
"end": 0,
"start": 0,
"type": "NonCodeNode",