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

Method runtimeMakeOpaque

valdi/src/valdi/runtime/JavaScript/JavaScriptRuntime.cpp:1219–1224  ·  view source on GitHub ↗

NOLINTNEXTLINE(readability-convert-member-functions-to-static)

Source from the content-addressed store, hash-verified

1217 const SharedViewNodeTree& viewNodeTree) {
1218 if (viewNodeTree == nullptr) {
1219 [[maybe_unused]] auto capturedContextId = contextId;
1220 VALDI_ERROR(*self->_logger, "Could not resolve ViewNodeTree of Context {}", capturedContextId);
1221 return;
1222 }
1223
1224 viewNodeTree->withLock([&]() {
1225 auto viewNode = viewNodeTree->getViewNode(nodeId);
1226 if (viewNode != nullptr) {
1227 handleViewNode(*viewNode, [self, callbackRef](const auto& result) {

Callers

nothing calls this directly

Calls 5

makeOpaqueFunction · 0.85
getParameterMethod · 0.80
withReturnValueMethod · 0.80
getContextMethod · 0.45

Tested by

no test coverage detected