MCPcopy Create free account
hub / github.com/RevoSucks/BM64Recomp / get_context_from_document

Method get_context_from_document

src/ui/core/ui_context.cpp:718–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

716}
717
718recompui::ContextId recompui::get_context_from_document(Rml::ElementDocument* document) {
719 std::lock_guard lock{ context_state.all_contexts_lock };
720 auto find_it = context_state.documents_to_contexts.find(document);
721 if (find_it == context_state.documents_to_contexts.end()) {
722 return ContextId::null();
723 }
724 return find_it->second;
725}

Callers

nothing calls this directly

Calls 1

endMethod · 0.45

Tested by

no test coverage detected