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

Method AddLibrary

parser/parser.cc:1750–1760  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1748 }
1749
1750 absl::Status AddLibrary(cel::ParserLibrary library) override {
1751 if (!library.id.empty()) {
1752 auto [it, inserted] = library_ids_.insert(library.id);
1753 if (!inserted) {
1754 return absl::AlreadyExistsError(
1755 absl::StrCat("parser library already exists: ", library.id));
1756 }
1757 }
1758 libraries_.push_back(std::move(library));
1759 return absl::OkStatus();
1760 }
1761
1762 absl::Status AddLibrarySubset(cel::ParserLibrarySubset subset) override {
1763 if (subset.library_id.empty()) {

Callers 15

TESTFunction · 0.45
CreateCompilerFunction · 0.45
StdLibCompilerFunction · 0.45
StdLibCompilerFunction · 0.45
StdLibCompilerFunction · 0.45
StdLibCompilerFunction · 0.45
NewCompilerBuilderMethod · 0.45
SetUpMethod · 0.45
TEST_PFunction · 0.45
TEST_PFunction · 0.45
SetUpMethod · 0.45
TEST_PFunction · 0.45

Calls 1

emptyMethod · 0.45

Tested by 15

TESTFunction · 0.36
CreateCompilerFunction · 0.36
StdLibCompilerFunction · 0.36
StdLibCompilerFunction · 0.36
StdLibCompilerFunction · 0.36
StdLibCompilerFunction · 0.36
SetUpMethod · 0.36
TEST_PFunction · 0.36
TEST_PFunction · 0.36
SetUpMethod · 0.36
TEST_PFunction · 0.36
CreateProgramFunction · 0.36