blob: 811881ca112ff73131d4413ddc1c58e74a3730cd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include "base_visitor.h"
namespace NSQLPureAST {
std::any TSQLv1BaseVisitor::VisitNullable(antlr4::ParserRuleContext* ctx) {
if (ctx == nullptr) {
return {};
}
return visit(ctx);
}
std::any TSQLv1BaseVisitor::aggregateResult(std::any aggregate, std::any nextResult) {
if (nextResult.has_value()) {
return nextResult;
}
return aggregate;
}
} // namespace NSQLPureAST
|