summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/rewriter/rewriter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/rewriter/rewriter.cpp')
-rw-r--r--src/declarative/qml/rewriter/rewriter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/qml/rewriter/rewriter.cpp b/src/declarative/qml/rewriter/rewriter.cpp
index fce4fdf..2ce927c 100644
--- a/src/declarative/qml/rewriter/rewriter.cpp
+++ b/src/declarative/qml/rewriter/rewriter.cpp
@@ -40,11 +40,11 @@
****************************************************************************/
#include "rewriter_p.h"
-#include "javascriptast_p.h"
+#include "qmljsast_p.h"
QT_BEGIN_NAMESPACE
-using namespace JavaScript;
+using namespace QmlJS;
void Rewriter::replace(const AST::SourceLocation &loc, const QString &text)
{ replace(loc.offset, loc.length, text); }
@@ -76,8 +76,8 @@ QString Rewriter::textAt(const AST::SourceLocation &loc) const
QString Rewriter::textAt(const AST::SourceLocation &firstLoc, const AST::SourceLocation &lastLoc) const
{ return _code.mid(firstLoc.offset, lastLoc.offset + lastLoc.length - firstLoc.offset); }
-void Rewriter::accept(JavaScript::AST::Node *node)
-{ JavaScript::AST::Node::acceptChild(node, this); }
+void Rewriter::accept(QmlJS::AST::Node *node)
+{ QmlJS::AST::Node::acceptChild(node, this); }
void Rewriter::moveTextBefore(const AST::SourceLocation &firstLoc,
const AST::SourceLocation &lastLoc,