Parse JS Module Blocks proposal (#12469)

This commit is contained in:
Sosuke Suzuki
2021-02-22 04:08:20 +09:00
committed by GitHub
parent e4588bed22
commit 9c567baa9b
64 changed files with 1704 additions and 32 deletions

View File

@@ -87,6 +87,7 @@ These are the core @babel/parser (babylon) AST node types.
- [SequenceExpression](#sequenceexpression)
- [ParenthesizedExpression](#parenthesizedexpression)
- [DoExpression](#doexpression)
- [ModuleExpression](#moduleexpression)
- [Template Literals](#template-literals)
- [TemplateLiteral](#templateliteral)
- [TaggedTemplateExpression](#taggedtemplateexpression)
@@ -1086,6 +1087,17 @@ interface DoExpression <: Expression {
}
```
## ModuleExpression
```js
interface ModuleExpression <: Expression {
type: "ModuleExpression";
body: Program
}
```
A inline module expression proposed in https://github.com/tc39/proposal-js-module-blocks.
# Template Literals
## TemplateLiteral