summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/rewriter/rewriter.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-06-11 08:46:43 (GMT)
committerRoberto Raggi <roberto.raggi@nokia.com>2009-06-11 09:02:53 (GMT)
commit7d7c1da715474cefa5404df684d680c36e4b6b20 (patch)
tree9a47bae6183401f0d846a2723a7f43fafcab77ef /src/declarative/qml/rewriter/rewriter.cpp
parentf88167c39259967912540cf50d3f9df9524da4b3 (diff)
downloadQt-7d7c1da715474cefa5404df684d680c36e4b6b20.zip
Qt-7d7c1da715474cefa5404df684d680c36e4b6b20.tar.gz
Qt-7d7c1da715474cefa5404df684d680c36e4b6b20.tar.bz2
Renamed the QML front-end.
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,