**************************************************************************/
+#include <limits>
+
#include "formatter.hpp"
#include "trace_dump.hpp"
}
void visit(Null *) {
- os << "NULL";
+ os << literal << "NULL" << normal;
}
void visit(Bool *node) {
}
void visit(Float *node) {
+ std::streamsize oldPrecision = os.precision(std::numeric_limits<float>::digits10 + 1);
os << literal << node->value << normal;
+ os.precision(oldPrecision);
}
void visit(Double *node) {
+ std::streamsize oldPrecision = os.precision(std::numeric_limits<double>::digits10 + 1);
os << literal << node->value << normal;
+ os.precision(oldPrecision);
}
void visit(String *node) {
os << pointer << "0x" << std::hex << p->value << std::dec << normal;
}
+ void visit(Repr *r) {
+ _visit(r->humanValue);
+ }
+
void visit(Call *call) {
CallFlags callFlags = call->flags;