This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
export = Hello
and export default Hello
have the same AST #304
Closed
Description
What version of typescript-eslint-parser
are you using?
3dcba7d
What code were you trying to parse?
declare module "hello" {
export default Hello;
export = Hello;
}
What did you expect to happen?
The two having a different AST.
What happened?
They have the exact same AST:
{
"type": "ExportDefaultDeclaration",
"range": [
27,
48
],
"loc": {
"start": {
"line": 2,
"column": 2
},
"end": {
"line": 2,
"column": 23
}
},
"declaration": {
"type": "Identifier",
"range": [
42,
47
],
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 22
}
},
"name": "Hello"
}
}