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

@ -47,11 +47,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 29,
"end": 0,
"name": "startSketchOn",
"name": {
"commentStart": 29,
"end": 0,
"name": "startSketchOn",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 29,
"end": 0,
@ -62,12 +70,20 @@ description: Result of parsing sketch_on_face_start.kcl
{
"arguments": [
{
"abs_path": false,
"commentStart": 71,
"end": 0,
"name": "pos",
"name": {
"commentStart": 71,
"end": 0,
"name": "pos",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
{
"commentStart": 76,
@ -78,11 +94,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 56,
"end": 0,
"name": "startProfileAt",
"name": {
"commentStart": 56,
"end": 0,
"name": "startProfileAt",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 56,
"end": 0,
@ -117,12 +141,20 @@ description: Result of parsing sketch_on_face_start.kcl
}
},
{
"abs_path": false,
"commentStart": 101,
"end": 0,
"name": "scale",
"name": {
"commentStart": 101,
"end": 0,
"name": "scale",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
}
],
"end": 0,
@ -133,11 +165,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 86,
"end": 0,
"name": "line",
"name": {
"commentStart": 86,
"end": 0,
"name": "line",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 86,
"end": 0,
@ -161,12 +201,20 @@ description: Result of parsing sketch_on_face_start.kcl
"commentStart": 127,
"elements": [
{
"abs_path": false,
"commentStart": 128,
"end": 0,
"name": "scale",
"name": {
"commentStart": 128,
"end": 0,
"name": "scale",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
{
"commentStart": 135,
@ -189,11 +237,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 116,
"end": 0,
"name": "line",
"name": {
"commentStart": 116,
"end": 0,
"name": "line",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 116,
"end": 0,
@ -230,12 +286,20 @@ description: Result of parsing sketch_on_face_start.kcl
},
{
"argument": {
"abs_path": false,
"commentStart": 162,
"end": 0,
"name": "scale",
"name": {
"commentStart": 162,
"end": 0,
"name": "scale",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"commentStart": 161,
"end": 0,
@ -253,11 +317,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 146,
"end": 0,
"name": "line",
"name": {
"commentStart": 146,
"end": 0,
"name": "line",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 146,
"end": 0,
@ -284,12 +356,20 @@ description: Result of parsing sketch_on_face_start.kcl
},
{
"argument": {
"abs_path": false,
"commentStart": 180,
"end": 0,
"name": "sg",
"name": {
"commentStart": 180,
"end": 0,
"name": "sg",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"commentStart": 169,
"end": 0,
@ -418,11 +498,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 195,
"end": 0,
"name": "cube",
"name": {
"commentStart": 195,
"end": 0,
"name": "cube",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 195,
"end": 0,
@ -441,11 +529,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 217,
"end": 0,
"name": "close",
"name": {
"commentStart": 217,
"end": 0,
"name": "close",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 217,
"end": 0,
@ -482,11 +578,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 231,
"end": 0,
"name": "extrude",
"name": {
"commentStart": 231,
"end": 0,
"name": "extrude",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 231,
"end": 0,
@ -539,12 +643,20 @@ description: Result of parsing sketch_on_face_start.kcl
{
"arguments": [
{
"abs_path": false,
"commentStart": 284,
"end": 0,
"name": "foo",
"name": {
"commentStart": 284,
"end": 0,
"name": "foo",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
{
"commentStart": 289,
@ -557,11 +669,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 270,
"end": 0,
"name": "startSketchOn",
"name": {
"commentStart": 270,
"end": 0,
"name": "startSketchOn",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 270,
"end": 0,
@ -613,11 +733,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 303,
"end": 0,
"name": "startProfileAt",
"name": {
"commentStart": 303,
"end": 0,
"name": "startProfileAt",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 303,
"end": 0,
@ -672,11 +800,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 334,
"end": 0,
"name": "line",
"name": {
"commentStart": 334,
"end": 0,
"name": "line",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 334,
"end": 0,
@ -732,11 +868,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 359,
"end": 0,
"name": "line",
"name": {
"commentStart": 359,
"end": 0,
"name": "line",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 359,
"end": 0,
@ -800,11 +944,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 384,
"end": 0,
"name": "line",
"name": {
"commentStart": 384,
"end": 0,
"name": "line",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 384,
"end": 0,
@ -824,11 +976,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 410,
"end": 0,
"name": "close",
"name": {
"commentStart": 410,
"end": 0,
"name": "close",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 410,
"end": 0,
@ -862,11 +1022,19 @@ description: Result of parsing sketch_on_face_start.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 424,
"end": 0,
"name": "extrude",
"name": {
"commentStart": 424,
"end": 0,
"name": "extrude",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 424,
"end": 0,