summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlparser_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlparser_p.h')
-rw-r--r--src/declarative/qml/qmlparser_p.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/declarative/qml/qmlparser_p.h b/src/declarative/qml/qmlparser_p.h
index 2ece51f..73bb498 100644
--- a/src/declarative/qml/qmlparser_p.h
+++ b/src/declarative/qml/qmlparser_p.h
@@ -169,9 +169,12 @@ namespace QmlParser
QList<QPair<Property *, int> > scriptStringProperties;
// Script blocks that were nested under this object
- QStringList scriptBlocks;
- QStringList scriptBlocksFile;
- QList<int> scriptBlocksLineNumber;
+ struct ScriptBlock {
+ QStringList codes;
+ QStringList files;
+ QList<int> lineNumbers;
+ };
+ QList<ScriptBlock> scripts;
// The bytes to cast instances by to get to the QmlParserStatus
// interface. -1 indicates the type doesn't support this interface.
@@ -243,12 +246,14 @@ namespace QmlParser
bool isNumber() const { return type() == Number; }
bool isString() const { return type() == String; }
bool isScript() const { return type() == Script; }
+ bool isStringList() const;
bool asBoolean() const;
QString asString() const;
double asNumber() const;
QString asScript() const;
QmlJS::AST::Node *asAST() const;
+ QStringList asStringList() const;
private:
Type t;