MCPcopy Create free account
hub / github.com/bytedance/bolt / constructSpecialForm

Method constructSpecialForm

bolt/expression/TryExpr.cpp:179–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179ExprPtr TryCallToSpecialForm::constructSpecialForm(
180 const TypePtr& type,
181 std::vector<ExprPtr>&& compiledChildren,
182 bool /* trackCpuUsage */,
183 const core::QueryConfig& /*config*/) {
184 BOLT_CHECK_EQ(
185 compiledChildren.size(),
186 1,
187 "TRY expressions expect exactly 1 argument, received: {}",
188 compiledChildren.size());
189 return std::make_shared<TryExpr>(type, std::move(compiledChildren[0]));
190}
191} // namespace bytedance::bolt::exec

Callers 1

constructSpecialFormFunction · 0.45

Calls 1

sizeMethod · 0.45

Tested by 1

constructSpecialFormFunction · 0.36