Add comments property to babylon.parseExpression() result
This commit is contained in:
@@ -32,5 +32,23 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"comments": [
|
||||
{
|
||||
"type": "CommentLine",
|
||||
"value": " my comment",
|
||||
"start": 4,
|
||||
"end": 17,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 4
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 17
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user