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

Method empty

common/source.cc:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56bool SourceContentView::empty() const {
57 return absl::visit(
58 absl::Overload(
59 [](absl::Span<const char> view) { return view.empty(); },
60 [](absl::Span<const uint8_t> view) { return view.empty(); },
61 [](absl::Span<const char16_t> view) { return view.empty(); },
62 [](absl::Span<const char32_t> view) { return view.empty(); }),
63 view_);
64}
65
66char32_t SourceContentView::at(SourcePosition position) const {
67 ABSL_DCHECK_GE(position, 0);

Callers 15

GetNodeKindFunction · 0.45
PreVisitExprMethod · 0.45
PostVisitExprMethod · 0.45
FindDepsFunction · 0.45
VisitCreateStructMethod · 0.45
CompileMethod · 0.45
AddLibraryMethod · 0.45
AddLibrarySubsetMethod · 0.45
TEST_PFunction · 0.45
FormatImplFunction · 0.45
FormatTypeNameFunction · 0.45

Calls

no outgoing calls

Tested by 7

TEST_PFunction · 0.36
CreateFieldTableMethod · 0.36
ASSERT_OK_AND_ASSIGNFunction · 0.36
TEST_PFunction · 0.36
FormatReferenceFunction · 0.36
TEST_PFunction · 0.36
TEST_PFunction · 0.36