equal
deleted
inserted
replaced
100 accept(node); |
100 accept(node); |
101 |
101 |
102 unsigned startOfStatement = node->firstSourceLocation().begin() - _position; |
102 unsigned startOfStatement = node->firstSourceLocation().begin() - _position; |
103 unsigned endOfStatement = node->lastSourceLocation().end() - _position; |
103 unsigned endOfStatement = node->lastSourceLocation().end() - _position; |
104 |
104 |
105 _writer->replace(startOfStatement, 0, QLatin1String("(function() { ")); |
105 _writer->replace(startOfStatement, 0, QLatin1String("(function ") + QString::fromUtf8(_name) + QLatin1String("() { ")); |
106 _writer->replace(endOfStatement, 0, QLatin1String(" })")); |
106 _writer->replace(endOfStatement, 0, QLatin1String(" })")); |
107 |
107 |
108 if (rewriteDump()) { |
108 if (rewriteDump()) { |
109 qWarning() << "============================================================="; |
109 qWarning() << "============================================================="; |
110 qWarning() << "Rewrote:"; |
110 qWarning() << "Rewrote:"; |