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

Function MakeOptionalIndicesSet

eval/eval/create_list_step.cc:124–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124absl::flat_hash_set<int32_t> MakeOptionalIndicesSet(
125 const cel::ListExpr& create_list_expr) {
126 absl::flat_hash_set<int32_t> optional_indices;
127 for (size_t i = 0; i < create_list_expr.elements().size(); ++i) {
128 if (create_list_expr.elements()[i].optional()) {
129 optional_indices.insert(static_cast<int32_t>(i));
130 }
131 }
132 return optional_indices;
133}
134
135class CreateListDirectStep : public DirectExpressionStep {
136 public:

Callers 1

CreateCreateListStepFunction · 0.70

Calls 2

sizeMethod · 0.45
optionalMethod · 0.45

Tested by

no test coverage detected