Lines Matching defs:propertyDescriptor

53                                                 NapiPropertyDescriptor propertyDescriptor,
59 bool writable = (propertyDescriptor.attributes & NATIVE_WRITABLE) != 0;
60 bool enumable = (propertyDescriptor.attributes & NATIVE_ENUMERABLE) != 0;
61 bool configable = (propertyDescriptor.attributes & NATIVE_CONFIGURABLE) != 0;
64 if (propertyDescriptor.utf8name == nullptr) {
65 key = LocalValueFromJsValue(propertyDescriptor.name);
67 key = StringRef::NewFromUtf8(vm, propertyDescriptor.utf8name);
71 if (propertyDescriptor.getter != nullptr || propertyDescriptor.setter != nullptr) {
75 if (propertyDescriptor.getter != nullptr) {
77 NapiNativeCreateSendableFunction(env, "getter", propertyDescriptor.getter, propertyDescriptor.data);
79 if (propertyDescriptor.setter != nullptr) {
81 NapiNativeCreateSendableFunction(env, "setter", propertyDescriptor.setter, propertyDescriptor.data);
87 } else if (propertyDescriptor.method != nullptr) {
89 if (propertyDescriptor.utf8name != nullptr) {
90 fullName += propertyDescriptor.utf8name;
97 NapiNativeCreateSendableFunction(env, fullName.c_str(), propertyDescriptor.method, propertyDescriptor.data);
101 Local<JSValueRef> val = LocalValueFromJsValue(propertyDescriptor.value);
136 NapiPropertyDescriptor& propertyDescriptor,
143 bool enumable = (propertyDescriptor.attributes & NATIVE_ENUMERABLE) != 0;
144 bool configable = (propertyDescriptor.attributes & NATIVE_CONFIGURABLE) != 0;
146 if (propertyDescriptor.getter != nullptr || propertyDescriptor.setter != nullptr) {
150 if (propertyDescriptor.getter != nullptr) {
152 NapiNativeCreateSendableFunction(env, "getter", propertyDescriptor.getter, propertyDescriptor.data);
154 if (propertyDescriptor.setter != nullptr) {
156 NapiNativeCreateSendableFunction(env, "setter", propertyDescriptor.setter, propertyDescriptor.data);
162 } else if (propertyDescriptor.method != nullptr) {
164 if (propertyDescriptor.utf8name != nullptr) {
165 fullName += propertyDescriptor.utf8name;
172 NapiNativeCreateSendableFunction(env, fullName.c_str(), propertyDescriptor.method, propertyDescriptor.data);
175 Local<JSValueRef> val = LocalValueFromJsValue(propertyDescriptor.value);