| 204 | class IteratorWrapper : NodeRT::WrapperBase { |
| 205 | public: |
| 206 | static void Init() { |
| 207 | HandleScope scope; |
| 208 | |
| 209 | Local<FunctionTemplate> localRef = Nan::New<FunctionTemplate>(New); |
| 210 | s_constructorTemplate.Reset(localRef); |
| 211 | localRef->SetClassName( |
| 212 | Nan::New<String>("Windows::Foundation::Collections:IIterator") |
| 213 | .ToLocalChecked()); |
| 214 | localRef->InstanceTemplate()->SetInternalFieldCount(1); |
| 215 | |
| 216 | Nan::SetPrototypeMethod(localRef, "getMany", GetMany); |
| 217 | Nan::SetPrototypeMethod(localRef, "moveNext", MoveNext); |
| 218 | |
| 219 | Nan::SetAccessor(localRef->PrototypeTemplate(), |
| 220 | Nan::New<String>("current").ToLocalChecked(), |
| 221 | CurrentGetter); |
| 222 | Nan::SetAccessor(localRef->PrototypeTemplate(), |
| 223 | Nan::New<String>("hasCurrent").ToLocalChecked(), |
| 224 | HasCurrentGetter); |
| 225 | |
| 226 | return; |
| 227 | } |
| 228 | |
| 229 | static Local<Value> CreateIteratorWrapper( |
| 230 | ::Windows::Foundation::Collections::IIterator<T> ^ winRtInstance, |
nothing calls this directly
no outgoing calls
no test coverage detected