blob: 1c79a6b070403bab1dc7c585d8b62dc44b0c9285 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Yahoo. 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;
}
}
|