[babylon] Refactor mixin plugins handling & validation (#7999)

This commit is contained in:
Nicolò Ribaudo
2018-05-23 21:28:05 +02:00
committed by Henry Zhu
parent b33823e7f8
commit ffe04d9195
5 changed files with 84 additions and 73 deletions

View File

@@ -4,12 +4,13 @@ import type { Options } from "../options";
import { reservedWords } from "../util/identifier";
import type State from "../tokenizer/state";
import type { PluginsMap } from "./index";
export default class BaseParser {
// Properties set by constructor in index.js
options: Options;
inModule: boolean;
plugins: { [key: string]: boolean };
plugins: PluginsMap;
filename: ?string;
sawUnambiguousESM: boolean = false;