Provide a default implementation of getIntermediateState().
This is a prework for removing the intermediate state from PassConfig into AbstractCompiler/Compiler classes where all compiler state (except for these) is currently held.
@@ -242,7 +242,17 @@ public abstract class PassConfig {
* Get intermediate state for a running pass config, so it can
* be paused and started again later.
*/
- protected abstract State getIntermediateState();
+ protected State getIntermediateState() {
+ return new State(
+ /* cssNames */ null,
+ /* crossModuleIdGenerator */ null,
+ /* variableMap */ null,
+ /* propertyMap */ null,
+ /* anonymousFunctionNameMap */ null,
+ /* stringMap */ null,
+ /* functionNames */ null,
+ /* idGeneratorMap */ null);
+ }
/**
* An implementation of PassConfig that just proxies all its method calls
