Merge pull request #23 from danez/fix-comments
Fix leading comments added from previous node
This commit is contained in:
25
test/fixtures/jsx/basic/10/expected.json
vendored
25
test/fixtures/jsx/basic/10/expected.json
vendored
@@ -117,27 +117,8 @@
|
||||
"column": 31
|
||||
}
|
||||
},
|
||||
"name": "a",
|
||||
"leadingComments": null
|
||||
},
|
||||
"leadingComments": [
|
||||
{
|
||||
"type": "CommentBlock",
|
||||
"value": " this is a comment ",
|
||||
"start": 4,
|
||||
"end": 27,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 4
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 27
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
"name": "a"
|
||||
}
|
||||
},
|
||||
"children": [
|
||||
{
|
||||
@@ -220,4 +201,4 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user