diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-06-04 13:35:22 (GMT) |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2009-06-04 13:35:22 (GMT) |
commit | 30971fa4ffaeb4c2a3a1267cca73311fb9834241 (patch) | |
tree | 0c92a4f4add811e6b0b9f1cf6f736400a17d9542 /src/declarative/qml/qmlscriptparser_p.h | |
parent | a800e1d5e7fa69a3bfa21d74c5db47f5a41ed65c (diff) | |
download | Qt-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.h | 4 |
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 |