readObjectReference method

Object readObjectReference()

Implementation

Object readObjectReference() {
  var id = reader.getVarint();
  if (id < 0) {
    throw RangeError("readObjectReference id out of range : $id");
  }
  var object = _objectMap[id];
  if (object == null) {
    throw AssertionError("invalid object reference(@$id)");
  }
  return object;
}