makeRef = (result) => {
    const hash = ee.Serializer.computeHash(result);
    // Set first: we may have named this hash already, but not seen this obj.
    if (goog.isObject(obj)) {
      this.hashes_.set(obj, hash);
    }
    if (this.encoded_[hash]) {
      return this.encoded_[hash];
    }
    // We haven't seen this object or one like it yet, so save it.
    const name = String(this.scope_.length);
    this.scope_.push([name, result]);
    this.encoded_[hash] = name;
    return name;
  }
@param {!ee.api.ValueNode} result
@return {string}