1#include "duckdb/parser/base_expression.hpp"
2
3#include "duckdb/main/config.hpp"
4#include "duckdb/common/printer.hpp"
5
6namespace duckdb {
7
8void BaseExpression::Print() const {
9 Printer::Print(str: ToString());
10}
11
12string BaseExpression::GetName() const {
13#ifdef DEBUG
14 if (DBConfigOptions::debug_print_bindings) {
15 return ToString();
16 }
17#endif
18 return !alias.empty() ? alias : ToString();
19}
20
21bool BaseExpression::Equals(const BaseExpression &other) const {
22 if (expression_class != other.expression_class || type != other.type) {
23 return false;
24 }
25 return true;
26}
27
28void BaseExpression::Verify() const {
29}
30
31} // namespace duckdb
32