MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / kind_case

Method kind_case

common/expr.h:1423–1429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1421}
1422
1423inline ExprKindCase Expr::kind_case() const {
1424 static_assert(absl::variant_size_v<ExprKind> == 9);
1425 if (kind_.index() <= 9) {
1426 return static_cast<ExprKindCase>(kind_.index());
1427 }
1428 return ExprKindCase::kUnspecifiedExpr;
1429}
1430
1431inline void swap(Expr& lhs, Expr& rhs) noexcept {
1432 using std::swap;

Callers 15

ConstantKindFunction · 0.80
ExprKindFunction · 0.80
TESTFunction · 0.80
ValueToCelValueFunction · 0.80
ValueFromMessageMethod · 0.80
SizeHintFunction · 0.80
PreVisitSelectMethod · 0.80
IsConstExprFunction · 0.80
GetKindCaseMethod · 0.80
AppendExprMethod · 0.80
FormatLiteralMethod · 0.80
EmitVariableConfigsFunction · 0.80

Calls 1

indexMethod · 0.45

Tested by 5

ConstantKindFunction · 0.64
ExprKindFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64