MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / foreach

Function foreach

src/NodeRTLib/CppTemplates/Enum.cpp:8–10  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6
7 Nan::Set(exports, Nan::New<String>("@(Model.Name)").ToLocalChecked(), enumObject);
8 @foreach(var name in Enum.GetNames(Model)) {
9 @:Nan::Set(enumObject, Nan::New<String>("@(TX.Uncap(name))").ToLocalChecked(), Nan::New<Integer>(static_cast<int>(@TX.ToWinRT(Model)::@(name))));
10 }
11 }

Callers

nothing calls this directly

Calls 1

ToWinRTMethod · 0.45

Tested by

no test coverage detected