Support paths to names rather than just raw idents (#5778)

* Support paths to names rather than just raw idents

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* A snapshot a day keeps the bugs away! 📷🐛

* A snapshot a day keeps the bugs away! 📷🐛

* A snapshot a day keeps the bugs away! 📷🐛

* A snapshot a day keeps the bugs away! 📷🐛

---------

Signed-off-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Nick Cameron
2025-03-24 20:58:55 +13:00
committed by GitHub
parent cfbb03765e
commit dddcd5ff46
221 changed files with 71261 additions and 16926 deletions

View File

@ -126,11 +126,19 @@ description: Result of parsing array_range_expr.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 12,
"end": 0,
"name": "assertEqual",
"name": {
"commentStart": 12,
"end": 0,
"name": "assertEqual",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 12,
"end": 0,
@ -224,22 +232,38 @@ description: Result of parsing array_range_expr.kcl
"commentStart": 95,
"end": 0,
"endElement": {
"abs_path": false,
"commentStart": 102,
"end": 0,
"name": "four",
"name": {
"commentStart": 102,
"end": 0,
"name": "four",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"endInclusive": true,
"start": 0,
"startElement": {
"abs_path": false,
"commentStart": 96,
"end": 0,
"name": "zero",
"name": {
"commentStart": 96,
"end": 0,
"name": "zero",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"type": "ArrayRangeExpression",
"type": "ArrayRangeExpression"
@ -321,11 +345,19 @@ description: Result of parsing array_range_expr.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 108,
"end": 0,
"name": "assertEqual",
"name": {
"commentStart": 108,
"end": 0,
"name": "assertEqual",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 108,
"end": 0,
@ -355,12 +387,20 @@ description: Result of parsing array_range_expr.kcl
"commentStart": 179,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 179,
"end": 0,
"name": "four",
"name": {
"commentStart": 179,
"end": 0,
"name": "four",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"operator": "+",
"right": {
@ -381,11 +421,19 @@ description: Result of parsing array_range_expr.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 175,
"end": 0,
"name": "int",
"name": {
"commentStart": 175,
"end": 0,
"name": "int",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 175,
"end": 0,
@ -418,22 +466,38 @@ description: Result of parsing array_range_expr.kcl
"commentStart": 194,
"end": 0,
"endElement": {
"abs_path": false,
"commentStart": 201,
"end": 0,
"name": "five",
"name": {
"commentStart": 201,
"end": 0,
"name": "five",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"endInclusive": true,
"start": 0,
"startElement": {
"abs_path": false,
"commentStart": 195,
"end": 0,
"name": "zero",
"name": {
"commentStart": 195,
"end": 0,
"name": "zero",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"type": "ArrayRangeExpression",
"type": "ArrayRangeExpression"
@ -515,11 +579,19 @@ description: Result of parsing array_range_expr.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 207,
"end": 0,
"name": "assertEqual",
"name": {
"commentStart": 207,
"end": 0,
"name": "assertEqual",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 207,
"end": 0,
@ -599,11 +671,19 @@ description: Result of parsing array_range_expr.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 276,
"end": 0,
"name": "assertEqual",
"name": {
"commentStart": 276,
"end": 0,
"name": "assertEqual",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 276,
"end": 0,
@ -636,12 +716,20 @@ description: Result of parsing array_range_expr.kcl
"commentStart": 363,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 363,
"end": 0,
"name": "five",
"name": {
"commentStart": 363,
"end": 0,
"name": "five",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"operator": "-",
"right": {
@ -662,11 +750,19 @@ description: Result of parsing array_range_expr.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 359,
"end": 0,
"name": "int",
"name": {
"commentStart": 359,
"end": 0,
"name": "int",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 359,
"end": 0,
@ -682,12 +778,20 @@ description: Result of parsing array_range_expr.kcl
"commentStart": 346,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 346,
"end": 0,
"name": "zero",
"name": {
"commentStart": 346,
"end": 0,
"name": "zero",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"operator": "+",
"right": {
@ -708,11 +812,19 @@ description: Result of parsing array_range_expr.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 342,
"end": 0,
"name": "int",
"name": {
"commentStart": 342,
"end": 0,
"name": "int",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 342,
"end": 0,
@ -800,11 +912,19 @@ description: Result of parsing array_range_expr.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 374,
"end": 0,
"name": "assertEqual",
"name": {
"commentStart": 374,
"end": 0,
"name": "assertEqual",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 374,
"end": 0,
@ -884,11 +1004,19 @@ description: Result of parsing array_range_expr.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 427,
"end": 0,
"name": "assertEqual",
"name": {
"commentStart": 427,
"end": 0,
"name": "assertEqual",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 427,
"end": 0,
@ -968,11 +1096,19 @@ description: Result of parsing array_range_expr.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 489,
"end": 0,
"name": "assertEqual",
"name": {
"commentStart": 489,
"end": 0,
"name": "assertEqual",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 489,
"end": 0,