* fix: support string assertion key in assert entries * Update packages/babel-parser/src/parser/statement.js Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com> Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
51 lines
1.6 KiB
JSON
51 lines
1.6 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "ImportDeclaration",
|
|
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
|
|
"specifiers": [],
|
|
"source": {
|
|
"type": "StringLiteral",
|
|
"start":7,"end":12,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":12}},
|
|
"extra": {
|
|
"rawValue": "foo",
|
|
"raw": "\"foo\""
|
|
},
|
|
"value": "foo"
|
|
},
|
|
"assertions": [
|
|
{
|
|
"type": "ImportAttribute",
|
|
"start":22,"end":36,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":36}},
|
|
"key": {
|
|
"type": "StringLiteral",
|
|
"start":22,"end":28,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":28}},
|
|
"extra": {
|
|
"rawValue": "type",
|
|
"raw": "\"type\""
|
|
},
|
|
"value": "type"
|
|
},
|
|
"value": {
|
|
"type": "StringLiteral",
|
|
"start":30,"end":36,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":36}},
|
|
"extra": {
|
|
"rawValue": "json",
|
|
"raw": "\"json\""
|
|
},
|
|
"value": "json"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |