summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlscriptparser_p.h
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2009-06-04 13:35:22 (GMT)
committerErik Verbruggen <erik.verbruggen@nokia.com>2009-06-04 13:35:22 (GMT)
commit30971fa4ffaeb4c2a3a1267cca73311fb9834241 (patch)
tree0c92a4f4add811e6b0b9f1cf6f736400a17d9542 /src/declarative/qml/qmlscriptparser_p.h
parenta800e1d5e7fa69a3bfa21d74c5db47f5a41ed65c (diff)
downloadQt-30971fa4ffaeb4c2a3a1267cca73311fb9834241.zip
Qt-30971fa4ffaeb4c2a3a1267cca73311fb9834241.tar.gz
Qt-30971fa4ffaeb4c2a3a1267cca73311fb9834241.tar.bz2
Added offsets of automatically inserted semicolons to the DOM and the
QML script parser.
Diffstat (limited to 'src/declarative/qml/qmlscriptparser_p.h')
-rw-r--r--src/declarative/qml/qmlscriptparser_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlscriptparser_p.h b/src/declarative/qml/qmlscriptparser_p.h
index 3993194..b057e2b 100644
--- a/src/declarative/qml/qmlscriptparser_p.h
+++ b/src/declarative/qml/qmlscriptparser_p.h
@@ -82,6 +82,9 @@ public:
QList<QmlError> errors() const;
+ QList<int> automaticSemicolonOffsets() const { return _automaticSemicolonOffsets; }
+ void addAutomaticSemicolonOffset(int offset) { _automaticSemicolonOffsets.append(offset); }
+
// ### private:
int findOrCreateTypeId(const QString &name);
void setTree(QmlParser::Object *tree);
@@ -100,6 +103,7 @@ public:
QStringList _typeNames;
QString _scriptFile;
QmlScriptParserJsASTData *data;
+ QList<int> _automaticSemicolonOffsets;
};
QT_END_NAMESPACE