diff options
author | David Boddie <david.boddie@nokia.com> | 2010-11-29 19:00:26 (GMT) |
---|---|---|
committer | David Boddie <david.boddie@nokia.com> | 2010-11-29 19:00:26 (GMT) |
commit | 361fa33371a855e82b63b4d45b2ffe36fed82867 (patch) | |
tree | c8ad0873413b7bf4e0d3e45d652e09ceb31b1a87 /tools/qdoc3/qmlmarkupvisitor.h | |
parent | 7072882e6873782f258fa3f7d2acee801226d8c0 (diff) | |
download | Qt-361fa33371a855e82b63b4d45b2ffe36fed82867.zip Qt-361fa33371a855e82b63b4d45b2ffe36fed82867.tar.gz Qt-361fa33371a855e82b63b4d45b2ffe36fed82867.tar.bz2 |
Made further refinements to the node traversal and comment handling.
Diffstat (limited to 'tools/qdoc3/qmlmarkupvisitor.h')
-rw-r--r-- | tools/qdoc3/qmlmarkupvisitor.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tools/qdoc3/qmlmarkupvisitor.h b/tools/qdoc3/qmlmarkupvisitor.h index 86e1ac2..01b0acf 100644 --- a/tools/qdoc3/qmlmarkupvisitor.h +++ b/tools/qdoc3/qmlmarkupvisitor.h @@ -52,7 +52,7 @@ QT_BEGIN_NAMESPACE class QmlMarkupVisitor : public QDeclarativeJS::AST::Visitor { public: - QmlMarkupVisitor(const QString &code, bool debug = false); + QmlMarkupVisitor(const QString &code, QDeclarativeJS::Engine *engine); virtual ~QmlMarkupVisitor(); QString markedUpCode(); @@ -317,7 +317,11 @@ public: virtual bool visit(QDeclarativeJS::AST::UiParameterList *); virtual void endVisit(QDeclarativeJS::AST::UiParameterList *); +protected: + QString protect(const QString &string); + private: + void addExtra(quint32 start, quint32 finish); void addMarkedUpToken(QDeclarativeJS::AST::SourceLocation &location, const QString &text); void addVerbatim(QDeclarativeJS::AST::SourceLocation first, @@ -326,11 +330,13 @@ private: void write(const QString &text); void endWrite(const QString &text); + QDeclarativeJS::Engine *engine; QString source; QString output; quint32 cursor; + quint32 commentIndex; int indent; - bool showDebug; + QString debug; }; QT_END_NAMESPACE |