Lines Matching refs:propertyDescriptor

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