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

@ -25,21 +25,37 @@ description: Result of parsing kw_fn_too_few_args.kcl
"commentStart": 24,
"end": 0,
"left": {
"abs_path": false,
"commentStart": 24,
"end": 0,
"name": "x",
"name": {
"commentStart": 24,
"end": 0,
"name": "x",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"operator": "+",
"right": {
"abs_path": false,
"commentStart": 28,
"end": 0,
"name": "y",
"name": {
"commentStart": 28,
"end": 0,
"name": "y",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier",
"type": "Identifier"
"type": "Name",
"type": "Name"
},
"start": 0,
"type": "BinaryExpression",
@ -131,11 +147,19 @@ description: Result of parsing kw_fn_too_few_args.kcl
}
],
"callee": {
"abs_path": false,
"commentStart": 41,
"end": 0,
"name": "add",
"name": {
"commentStart": 41,
"end": 0,
"name": "add",
"start": 0,
"type": "Identifier"
},
"path": [],
"start": 0,
"type": "Identifier"
"type": "Name"
},
"commentStart": 41,
"end": 0,