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

Function MakeConstantVariableDecl

common/decl.h:119–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117}
118
119inline VariableDecl MakeConstantVariableDecl(std::string name, Type type,
120 Constant value) {
121 VariableDecl variable_decl;
122 variable_decl.set_name(std::move(name));
123 variable_decl.set_type(std::move(type));
124 variable_decl.set_value(std::move(value));
125 return variable_decl;
126}
127
128inline bool operator==(const VariableDecl& lhs, const VariableDecl& rhs) {
129 return lhs.name() == rhs.name() && lhs.type() == rhs.type() &&

Callers 1

TESTFunction · 0.85

Calls 3

set_nameMethod · 0.45
set_typeMethod · 0.45
set_valueMethod · 0.45

Tested by 1

TESTFunction · 0.68