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 invalid_member_object.kcl
"Ok": {
"body": [
{
"commentStart": 0,
"declaration": {
"commentStart": 0,
"end": 0,
"id": {
"commentStart": 0,
"end": 0,
"name": "num",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 6,
"end": 0,
"raw": "999",
"start": 0,
@ -35,18 +39,23 @@ description: Result of parsing invalid_member_object.kcl
"type": "VariableDeclaration"
},
{
"commentStart": 10,
"declaration": {
"commentStart": 10,
"end": 0,
"id": {
"commentStart": 10,
"end": 0,
"name": "x",
"start": 0,
"type": "Identifier"
},
"init": {
"commentStart": 14,
"computed": false,
"end": 0,
"object": {
"commentStart": 14,
"end": 0,
"name": "num",
"start": 0,
@ -54,6 +63,7 @@ description: Result of parsing invalid_member_object.kcl
"type": "Identifier"
},
"property": {
"commentStart": 18,
"end": 0,
"raw": "3",
"start": 0,
@ -78,6 +88,7 @@ description: Result of parsing invalid_member_object.kcl
"type": "VariableDeclaration"
}
],
"commentStart": 0,
"end": 0,
"start": 0
}