docs: [skip ci] add InterpreterDirective

This commit is contained in:
Sven SAULEAU
2018-05-23 09:50:23 +02:00
committed by GitHub
parent ad1de09b5f
commit 7d99a96f9f

View File

@@ -45,6 +45,7 @@ These are the core @babel/parser (babylon) AST node types.
- [Decorator](#decorator)
- [Directive](#directive)
- [DirectiveLiteral](#directiveliteral)
- [InterpreterDirective](#interpreterdirective)
- [Expressions](#expressions)
- [Super](#super)
- [Import](#import)
@@ -239,7 +240,7 @@ interface NumericLiteral <: Literal {
```js
interface Program <: Node {
type: "Program";
interpreter: string | null;
interpreter: InterpreterDirective | null;
sourceType: "script" | "module";
body: [ Statement | ModuleDeclaration ];
directives: [ Directive ];
@@ -584,6 +585,14 @@ interface DirectiveLiteral <: StringLiteral {
}
```
## InterpreterDirective
```js
interface InterpreterDirective <: StringLiteral {
type: "InterpreterDirective";
}
```
# Expressions
```js