function recordAcornConstructors_(interpreter) {
  // Constructors for objects within Acorn.
  if (!interpreter.ast) {
    // The 'ast' property has been renamed by the compiler.
    throw Error(
      'Cannot serialize/deserialize compressed JS-Interpreter. ' +
        'Use acorn.js and interpreter.js instead of acorn_interpreter.js',
    );
  }
  NODE_CONSTRUCTOR = interpreter.ast.constructor;
  NODE_LOC_CONSTRUCTOR = interpreter.ast.loc && interpreter.ast.loc.constructor;
  LINE_LOC_CONSTRUCTOR =
    interpreter.ast.loc && interpreter.ast.loc.end.constructor;
}
Inspect an interpreter and record the constructors used to create new nodes.
@param {!Interpreter} interpreter JS-Interpreter instance.
@private