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

Method ReleaseAst

checker/validation_result.h:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 const Ast* absl_nullable GetAst() const { return ast_.get(); }
50
51 absl::StatusOr<std::unique_ptr<Ast>> ReleaseAst() {
52 if (ast_ == nullptr) {
53 return absl::FailedPreconditionError(
54 "ValidationResult is empty. Check for TypeCheckIssues.");
55 }
56 return std::move(ast_);
57 }
58
59 absl::Span<const TypeCheckIssue> GetIssues() const { return issues_; }
60

Callers 15

TESTFunction · 0.80
TEST_PFunction · 0.80
TEST_FFunction · 0.80
ASSERT_OK_AND_ASSIGNFunction · 0.80
TESTFunction · 0.80
TEST_PFunction · 0.80
CompileAndEvalExprFunction · 0.80
TEST_PFunction · 0.80
TESTFunction · 0.80
CreateProgramFunction · 0.80
TESTFunction · 0.80

Calls

no outgoing calls

Tested by 12

TESTFunction · 0.64
TEST_PFunction · 0.64
TEST_FFunction · 0.64
ASSERT_OK_AND_ASSIGNFunction · 0.64
TESTFunction · 0.64
TEST_PFunction · 0.64
CompileAndEvalExprFunction · 0.64
TEST_PFunction · 0.64
TESTFunction · 0.64
CreateProgramFunction · 0.64
TESTFunction · 0.64
CompileForTestCaseFunction · 0.64