Support comments on attributes (#5850)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user