MCPcopy Index your code
hub / github.com/nodejs/node-addon-api / Accessor

Method Accessor

napi-inl.h:4288–4298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4286
4287template <typename PropertyDescriptor::GetterCallback Getter>
4288PropertyDescriptor PropertyDescriptor::Accessor(
4289 const char* utf8name, napi_property_attributes attributes, void* data) {
4290 napi_property_descriptor desc = napi_property_descriptor();
4291
4292 desc.utf8name = utf8name;
4293 desc.getter = details::TemplatedCallback<Getter>;
4294 desc.attributes = attributes;
4295 desc.data = data;
4296
4297 return desc;
4298}
4299
4300template <typename PropertyDescriptor::GetterCallback Getter>
4301PropertyDescriptor PropertyDescriptor::Accessor(

Callers

nothing calls this directly

Calls 2

AttachDataFunction · 0.85
PropertyDescriptorClass · 0.85

Tested by

no test coverage detected