Skip to content

Commit

Permalink
Add AnonymousDefaultExported{Class,Function}Declaration
Browse files Browse the repository at this point in the history
Closes #98. This also removes `VariableDeclaration`
from the list of valid `declaration`s in a `ExportDefaultDeclaration`.
  • Loading branch information
adrianheine committed Feb 27, 2019
1 parent 0836c21 commit 9ae284b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion es2015.md
Expand Up @@ -399,9 +399,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 9ae284b

Please sign in to comment.