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

Method UpdateValidationResult

validator/validator.cc:48–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void Validator::UpdateValidationResult(ValidationResult& in) const {
49 if (!in.IsValid() || in.GetAst() == nullptr) {
50 // If the result is already decided invalid, just return it.
51 return;
52 }
53
54 auto result = Validate(*in.GetAst());
55 if (!result.valid) {
56 in.ReleaseAst().IgnoreError();
57 }
58 for (auto& issue : result.issues) {
59 in.AddIssue(std::move(issue));
60 }
61}
62
63void ValidationContext::ReportWarningAt(int64_t id, absl::string_view message) {
64 issues_.push_back(TypeCheckIssue(TypeCheckIssue::Severity::kWarning,

Callers 7

CompileMethod · 0.80
TEST_PFunction · 0.80
TEST_PFunction · 0.80
TESTFunction · 0.80
TEST_PFunction · 0.80
TEST_PFunction · 0.80
TEST_PFunction · 0.80

Calls 5

ValidateFunction · 0.85
IsValidMethod · 0.80
GetAstMethod · 0.80
ReleaseAstMethod · 0.80
AddIssueMethod · 0.45

Tested by 6

TEST_PFunction · 0.64
TEST_PFunction · 0.64
TESTFunction · 0.64
TEST_PFunction · 0.64
TEST_PFunction · 0.64
TEST_PFunction · 0.64