aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/select/valuenode.cpp
blob: 419a4298ac1b5b165cf92ea451b4dac63373a7db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "valuenode.h"
#include <ostream>

namespace document::select {

std::unique_ptr<Value>
ValueNode::traceValue(const Context &context, std::ostream &out) const {
    return defaultTrace(getValue(context), out);
}

std::unique_ptr<Value>
ValueNode::defaultTrace(std::unique_ptr<Value> val, std::ostream& out) const
{
    out << "Returning value " << *val << ".\n";
    return val;
}

}