| 1370 | } |
| 1371 | |
| 1372 | std::any ParserVisitor::visitBytes(CelParser::BytesContext* ctx) { |
| 1373 | auto status_or_value = cel::internal::ParseBytesLiteral(ctx->tok->getText()); |
| 1374 | if (!status_or_value.ok()) { |
| 1375 | return ExprToAny(factory_.ReportError(SourceRangeFromParserRuleContext(ctx), |
| 1376 | status_or_value.status().message())); |
| 1377 | } |
| 1378 | return ExprToAny(factory_.NewBytesConst( |
| 1379 | factory_.NextId(SourceRangeFromParserRuleContext(ctx)), |
| 1380 | std::move(status_or_value).value())); |
| 1381 | } |
| 1382 | |
| 1383 | std::any ParserVisitor::visitBoolTrue(CelParser::BoolTrueContext* ctx) { |
| 1384 | return ExprToAny(factory_.NewBoolConst( |
nothing calls this directly
no test coverage detected