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

Function CreateCelAttributePattern

eval/public/cel_attribute.cc:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77CelAttributePattern CreateCelAttributePattern(
78 absl::string_view variable,
79 std::initializer_list<absl::variant<absl::string_view, int64_t, uint64_t,
80 bool, CelAttributeQualifierPattern>>
81 path_spec) {
82 std::vector<CelAttributeQualifierPattern> path;
83 path.reserve(path_spec.size());
84 for (const auto& spec_elem : path_spec) {
85 path.emplace_back(absl::visit(QualifierVisitor(), spec_elem));
86 }
87 return CelAttributePattern(std::string(variable), std::move(path));
88}
89
90} // namespace google::api::expr::runtime

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 2

QualifierVisitorClass · 0.85
sizeMethod · 0.45

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68