MCPcopy Create free account
hub / github.com/GothenburgBitFactory/taskwarrior / domSource

Function domSource

src/Eval.cpp:107–114  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Support for evaluating DOM references (add with `e.AddSource(domSource)`)

Source from the content-addressed store, hash-verified

105////////////////////////////////////////////////////////////////////////////////
106// Support for evaluating DOM references (add with `e.AddSource(domSource)`)
107bool domSource(const std::string& identifier, Variant& value) {
108 if (getDOM(identifier, Context::getContext().currentTask, value)) {
109 value.source(identifier);
110 return true;
111 }
112
113 return false;
114}
115
116////////////////////////////////////////////////////////////////////////////////
117Eval::Eval() { addSource(namedConstants); }

Callers

nothing calls this directly

Calls 2

getDOMFunction · 0.85
sourceMethod · 0.80

Tested by

no test coverage detected