docs: [skip ci] add InterpreterDirective
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user