Support comments on attributes (#5850)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
@ -6,17 +6,22 @@ description: Result of parsing array_elem_pop_fail.kcl
|
||||
"Ok": {
|
||||
"body": [
|
||||
{
|
||||
"commentStart": 0,
|
||||
"declaration": {
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"name": "arr",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 6,
|
||||
"elements": [
|
||||
{
|
||||
"commentStart": 7,
|
||||
"end": 0,
|
||||
"raw": "1",
|
||||
"start": 0,
|
||||
@ -28,6 +33,7 @@ description: Result of parsing array_elem_pop_fail.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 10,
|
||||
"end": 0,
|
||||
"raw": "2",
|
||||
"start": 0,
|
||||
@ -39,6 +45,7 @@ description: Result of parsing array_elem_pop_fail.kcl
|
||||
}
|
||||
},
|
||||
{
|
||||
"commentStart": 13,
|
||||
"end": 0,
|
||||
"raw": "3",
|
||||
"start": 0,
|
||||
@ -65,9 +72,12 @@ description: Result of parsing array_elem_pop_fail.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 16,
|
||||
"declaration": {
|
||||
"commentStart": 16,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 16,
|
||||
"end": 0,
|
||||
"name": "pushedArr",
|
||||
"start": 0,
|
||||
@ -76,6 +86,7 @@ description: Result of parsing array_elem_pop_fail.kcl
|
||||
"init": {
|
||||
"arguments": [
|
||||
{
|
||||
"commentStart": 32,
|
||||
"end": 0,
|
||||
"name": "arr",
|
||||
"start": 0,
|
||||
@ -84,11 +95,13 @@ description: Result of parsing array_elem_pop_fail.kcl
|
||||
}
|
||||
],
|
||||
"callee": {
|
||||
"commentStart": 28,
|
||||
"end": 0,
|
||||
"name": "pop",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"commentStart": 28,
|
||||
"end": 0,
|
||||
"start": 0,
|
||||
"type": "CallExpression",
|
||||
@ -104,18 +117,23 @@ description: Result of parsing array_elem_pop_fail.kcl
|
||||
"type": "VariableDeclaration"
|
||||
},
|
||||
{
|
||||
"commentStart": 37,
|
||||
"declaration": {
|
||||
"commentStart": 37,
|
||||
"end": 0,
|
||||
"id": {
|
||||
"commentStart": 37,
|
||||
"end": 0,
|
||||
"name": "fail",
|
||||
"start": 0,
|
||||
"type": "Identifier"
|
||||
},
|
||||
"init": {
|
||||
"commentStart": 44,
|
||||
"computed": false,
|
||||
"end": 0,
|
||||
"object": {
|
||||
"commentStart": 44,
|
||||
"end": 0,
|
||||
"name": "pushedArr",
|
||||
"start": 0,
|
||||
@ -123,6 +141,7 @@ description: Result of parsing array_elem_pop_fail.kcl
|
||||
"type": "Identifier"
|
||||
},
|
||||
"property": {
|
||||
"commentStart": 54,
|
||||
"end": 0,
|
||||
"raw": "2",
|
||||
"start": 0,
|
||||
@ -147,6 +166,7 @@ description: Result of parsing array_elem_pop_fail.kcl
|
||||
"type": "VariableDeclaration"
|
||||
}
|
||||
],
|
||||
"commentStart": 0,
|
||||
"end": 0,
|
||||
"start": 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user