ExportNamedDeclaration#source can be null (#23909)

e.g. this named declaration has a source:
```javascript
export {foo} from './bar.js';
```

and this one does not:
```javascript
export const foo = 10;
```

Try it out at https://astexplorer.net/ to confirm.
This commit is contained in:
Peter Burns 2018-02-26 08:59:53 -08:00 committed by Andy
parent 5bdd72f928
commit 786fae6a7f

View File

@ -422,7 +422,7 @@ export interface ExportNamedDeclaration extends Node {
type: "ExportNamedDeclaration";
declaration: Declaration;
specifiers: ExportSpecifier[];
source: StringLiteral;
source: StringLiteral | null;
}
export interface ExportSpecifier extends Node {