Files
017cb338a7 Disallows specifiers after export * as ns (#15385)
* disallow specifiers after export * as ns

* update test cases

* ignore js/exports/jsfmt.spec.js e2e tests

* Update scripts/integration-tests/e2e-prettier.sh

Co-authored-by: fisker Cheung <[email protected]>

---------

Co-authored-by: fisker Cheung <[email protected]>
2023-02-02 09:57:54 -05:00

132 lines
4.9 KiB
JSON

{
"type": "File",
"start":0,"end":139,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":45,"index":139}},
"program": {
"type": "Program",
"start":0,"end":139,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":3,"column":45,"index":139}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ImportDeclaration",
"start":0,"end":58,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":58,"index":58}},
"specifiers": [
{
"type": "ImportSpecifier",
"start":9,"end":21,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":21,"index":21}},
"imported": {
"type": "StringLiteral",
"start":9,"end":14,"loc":{"start":{"line":1,"column":9,"index":9},"end":{"line":1,"column":14,"index":14}},
"extra": {
"rawValue": "foo",
"raw": "\"foo\""
},
"value": "foo"
},
"importKind": null,
"local": {
"type": "Identifier",
"start":18,"end":21,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":21,"index":21},"identifierName":"bar"},
"name": "bar"
}
},
{
"type": "ImportSpecifier",
"start":23,"end":39,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":39,"index":39}},
"imported": {
"type": "StringLiteral",
"start":23,"end":32,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":32,"index":32}},
"extra": {
"rawValue": "default",
"raw": "\"default\""
},
"value": "default"
},
"importKind": null,
"local": {
"type": "Identifier",
"start":36,"end":39,"loc":{"start":{"line":1,"column":36,"index":36},"end":{"line":1,"column":39,"index":39},"identifierName":"qux"},
"name": "qux"
}
}
],
"importKind": "value",
"source": {
"type": "StringLiteral",
"start":47,"end":57,"loc":{"start":{"line":1,"column":47,"index":47},"end":{"line":1,"column":57,"index":57}},
"extra": {
"rawValue": "module-a",
"raw": "\"module-a\""
},
"value": "module-a"
}
},
{
"type": "ExportNamedDeclaration",
"start":59,"end":93,"loc":{"start":{"line":2,"column":0,"index":59},"end":{"line":2,"column":34,"index":93}},
"specifiers": [
{
"type": "ExportNamespaceSpecifier",
"start":66,"end":76,"loc":{"start":{"line":2,"column":7,"index":66},"end":{"line":2,"column":17,"index":76}},
"exported": {
"type": "StringLiteral",
"start":71,"end":76,"loc":{"start":{"line":2,"column":12,"index":71},"end":{"line":2,"column":17,"index":76}},
"extra": {
"rawValue": "foo",
"raw": "\"foo\""
},
"value": "foo"
}
}
],
"source": {
"type": "StringLiteral",
"start":82,"end":92,"loc":{"start":{"line":2,"column":23,"index":82},"end":{"line":2,"column":33,"index":92}},
"extra": {
"rawValue": "module-b",
"raw": "\"module-b\""
},
"value": "module-b"
},
"exportKind": "value"
},
{
"type": "ExportNamedDeclaration",
"start":94,"end":139,"loc":{"start":{"line":3,"column":0,"index":94},"end":{"line":3,"column":45,"index":139}},
"specifiers": [
{
"type": "ExportSpecifier",
"start":103,"end":120,"loc":{"start":{"line":3,"column":9,"index":103},"end":{"line":3,"column":26,"index":120}},
"local": {
"type": "Identifier",
"start":103,"end":110,"loc":{"start":{"line":3,"column":9,"index":103},"end":{"line":3,"column":16,"index":110},"identifierName":"default"},
"name": "default"
},
"exported": {
"type": "StringLiteral",
"start":114,"end":120,"loc":{"start":{"line":3,"column":20,"index":114},"end":{"line":3,"column":26,"index":120}},
"extra": {
"rawValue": "quux",
"raw": "\"quux\""
},
"value": "quux"
}
}
],
"source": {
"type": "StringLiteral",
"start":128,"end":138,"loc":{"start":{"line":3,"column":34,"index":128},"end":{"line":3,"column":44,"index":138}},
"extra": {
"rawValue": "module-b",
"raw": "\"module-b\""
},
"value": "module-b"
},
"declaration": null,
"exportKind": "value"
}
],
"directives": []
}
}