Support comments on attributes (#5850)

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-03-20 16:23:20 +13:00
committed by GitHub
parent 79be72c5f0
commit 461a2c3ab2
319 changed files with 37650 additions and 4752 deletions

View File

@ -6,15 +6,19 @@ description: Result of parsing object_prop_not_found.kcl
"Ok": {
"body": [
{
"commentStart": 0,
"declaration": {
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 0,
"end": 0,
"name": "obj",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 6,
"end": 0,
"properties": [],
"start": 0,
@ -31,18 +35,23 @@ description: Result of parsing object_prop_not_found.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 11,
"declaration": {
"commentStart": 11,
"end": 0,
"id": {
"commentStart": 11,
"end": 0,
"name": "k",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 15,
"computed": false,
"end": 0,
"object": {
"commentStart": 15,
"end": 0,
"name": "obj",
"start": 0,
@ -50,6 +59,7 @@ description: Result of parsing object_prop_not_found.kcl
"type": "Identifier"
},
"property": {
"commentStart": 19,
"end": 0,
"raw": "\"age\"",
"start": 0,
@ -71,6 +81,7 @@ description: Result of parsing object_prop_not_found.kcl
"type": "VariableDeclaration"
}
],
"commentStart": 0,
"end": 0,
"start": 0
}