addImport(name, tree) {
    // Duplicate imports should have been checked already.
    assert(!this.imports_.has(name));
    this.imports_.set(name, tree);
  }
@param {string} name
@param {ParseTree} tree