MCPcopy Create free account
hub / github.com/Snapchat/Valdi / createContext

Method createContext

valdi/src/valdi/runtime/Runtime.cpp:239–246  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237
238void Runtime::removeUnusedResources() {
239 if (_javaScriptRuntime != nullptr) {
240 auto self = strongSmallRef(this);
241 _javaScriptRuntime->unloadUnusedModules([self]() { self->_resourceManager->removeUnusedResources(); });
242 } else {
243 _resourceManager->removeUnusedResources();
244 }
245}
246
247SharedContext Runtime::createContext(const Ref<ViewManagerContext>& viewManagerContext,
248 const StringBox& path,
249 const Shared<ValueConvertible>& initialViewModel,

Callers

nothing calls this directly

Calls 4

getContextHandlerMethod · 0.80
createContextMethod · 0.65
parseFunction · 0.50

Tested by

no test coverage detected