diff --git a/packages/babel-parser/ast/spec.md b/packages/babel-parser/ast/spec.md index abc3a092f4..e8b5120b13 100644 --- a/packages/babel-parser/ast/spec.md +++ b/packages/babel-parser/ast/spec.md @@ -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,6 +240,7 @@ interface NumericLiteral <: Literal { ```js interface Program <: Node { type: "Program"; + interpreter: InterpreterDirective | null; sourceType: "script" | "module"; body: [ Statement | ModuleDeclaration ]; directives: [ Directive ]; @@ -583,6 +585,14 @@ interface DirectiveLiteral <: StringLiteral { } ``` +## InterpreterDirective + +```js +interface InterpreterDirective <: StringLiteral { + type: "InterpreterDirective"; +} +``` + # Expressions ```js