Fix source location for JSXEmptyExpression nodes (fixes #248) (#249)

This commit is contained in:
James Long
2016-12-14 16:32:36 -05:00
committed by Henry Zhu
parent 4958225645
commit ba96b91f40
2 changed files with 18 additions and 25 deletions

View File

@@ -137,8 +137,20 @@
},
"expression": {
"type": "JSXEmptyExpression",
"loc": {},
"leadingComments": [
"start": 4,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 27
}
},
"leadingComments": null,
"innerComments": [
{
"type": "CommentBlock",
"value": " this is a comment ",
@@ -156,26 +168,7 @@
}
}
]
},
"leadingComments": null,
"innerComments": [
{
"type": "CommentBlock",
"value": " this is a comment ",
"start": 4,
"end": 27,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 27
}
}
}
]
}
}
]
}
@@ -201,4 +194,4 @@
}
}
]
}
}