Skip to content

Commit

Permalink
Add AnonymousDefaultExported{Class,Function}Declaration
Browse files Browse the repository at this point in the history
Closes estree#98. This also removes `VariableDeclaration`
from the list of valid `declaration`s in a `ExportDefaultDeclaration`.
  • Loading branch information
adrianheine committed Nov 20, 2017
1 parent 1da8e60 commit 946a0a3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion es2015.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,19 @@ An exported variable binding, e.g., `{foo}` in `export {foo}` or `{bar as foo}`
### ExportDefaultDeclaration

```js
interface AnonymousDefaultExportedFunctionDeclaration <: Function {
type: "FunctionDeclaration";
id: null;
}

interface AnonymousDefaultExportedClassDeclaration <: Class {
type: "ClassDeclaration";
id: null;
}

interface ExportDefaultDeclaration <: ModuleDeclaration {
type: "ExportDefaultDeclaration";
declaration: Declaration | Expression;
declaration: AnonymousDefaultExportedFunctionDeclaration | FunctionDeclaration | AnonymousDefaultExportedClassDeclaration | ClassDeclaration | Expression;
}
```

Expand Down

0 comments on commit 946a0a3

Please sign in to comment.