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

Method resolveType

bolt/expression/ConjunctExpr.cpp:414–430  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

412
413// static
414TypePtr ConjunctExpr::resolveType(const std::vector<TypePtr>& argTypes) {
415 BOLT_CHECK_GT(
416 argTypes.size(),
417 0,
418 "Conjunct expressions expect at least one argument, received: {}",
419 argTypes.size());
420
421 for (const auto& argType : argTypes) {
422 BOLT_CHECK(
423 argType->kind() == TypeKind::BOOLEAN ||
424 argType->kind() == TypeKind::UNKNOWN,
425 "Conjunct expressions expect BOOLEAN or UNKNOWN arguments, received: {}",
426 argType->toString());
427 }
428
429 return BOOLEAN();
430}
431
432TypePtr ConjunctCallToSpecialForm::resolveType(
433 const std::vector<TypePtr>& argTypes) {

Callers

nothing calls this directly

Calls 4

resolveTypeFunction · 0.85
sizeMethod · 0.45
kindMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected