Function factory(Type type)

Source

Function factory(Type type) {
  if (this._containsReflectionInfo(type)) {
    return _getReflectionInfo(type).factory;
  } else {
    return reflectionCapabilities.factory(type);
  }
}