MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / valueCompileFunc

Function valueCompileFunc

src/function/union/union_value_function.cpp:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26static void valueCompileFunc(FunctionBindData* /*bindData*/,
27 const std::vector<std::shared_ptr<ValueVector>>& parameters,
28 std::shared_ptr<ValueVector>& result) {
29 DASSERT(parameters.size() == 1);
30 result->setState(parameters[0]->state);
31 UnionVector::getTagVector(result.get())->setState(parameters[0]->state);
32 UnionVector::referenceVector(result.get(), UnionType::TAG_FIELD_IDX, parameters[0]);
33}
34
35function_set UnionValueFunction::getFunctionSet() {
36 function_set functionSet;

Callers

nothing calls this directly

Calls 3

setStateMethod · 0.80
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected