summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-07-23 06:36:00 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-07-23 06:36:00 (GMT)
commitb6ff651db6c7f4e39c53d46d666b1911fa0e1eba (patch)
tree02e6ca200111f02e5cac10a9cd148df9ca1d3273 /src/declarative
parentbb90cec43fbcc410dd357009a284f15c9208c0bf (diff)
parent7fe100b56ccca40de193164d3ce19600cf50bdd4 (diff)
downloadQt-b6ff651db6c7f4e39c53d46d666b1911fa0e1eba.zip
Qt-b6ff651db6c7f4e39c53d46d666b1911fa0e1eba.tar.gz
Qt-b6ff651db6c7f4e39c53d46d666b1911fa0e1eba.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/extra/qfxanimatedimageitem.cpp2
-rw-r--r--src/declarative/extra/qfxflowview.cpp2
-rw-r--r--src/declarative/extra/qfxintegermodel.cpp2
-rw-r--r--src/declarative/extra/qfxparticles.cpp10
-rw-r--r--src/declarative/extra/qmlbehaviour.cpp2
-rw-r--r--src/declarative/extra/qmldatetimeformatter.cpp2
-rw-r--r--src/declarative/extra/qmlfolderlistmodel.cpp2
-rw-r--r--src/declarative/extra/qmlnumberformatter.cpp2
-rw-r--r--src/declarative/extra/qmlsqlconnection.cpp2
-rw-r--r--src/declarative/extra/qmlsqlquery.cpp4
-rw-r--r--src/declarative/extra/qmlxmllistmodel.cpp4
-rw-r--r--src/declarative/fx/qfxanchors.cpp2
-rw-r--r--src/declarative/fx/qfxcomponentinstance.cpp2
-rw-r--r--src/declarative/fx/qfxflickable.cpp2
-rw-r--r--src/declarative/fx/qfxflipable.cpp2
-rw-r--r--src/declarative/fx/qfxfocusrealm.cpp2
-rw-r--r--src/declarative/fx/qfxgraphicsobjectcontainer.cpp2
-rw-r--r--src/declarative/fx/qfxgridview.cpp2
-rw-r--r--src/declarative/fx/qfximage.cpp2
-rw-r--r--src/declarative/fx/qfxitem.cpp2
-rw-r--r--src/declarative/fx/qfxkeyactions.cpp2
-rw-r--r--src/declarative/fx/qfxkeyproxy.cpp2
-rw-r--r--src/declarative/fx/qfxlayouts.cpp6
-rw-r--r--src/declarative/fx/qfxlineedit.cpp4
-rw-r--r--src/declarative/fx/qfxlistview.cpp2
-rw-r--r--src/declarative/fx/qfxmouseregion.cpp4
-rw-r--r--src/declarative/fx/qfxpath.cpp12
-rw-r--r--src/declarative/fx/qfxpathview.cpp2
-rw-r--r--src/declarative/fx/qfxrect.cpp8
-rw-r--r--src/declarative/fx/qfxrepeater.cpp2
-rw-r--r--src/declarative/fx/qfxtext.cpp2
-rw-r--r--src/declarative/fx/qfxtextedit.cpp2
-rw-r--r--src/declarative/fx/qfxtransform.cpp14
-rw-r--r--src/declarative/fx/qfxvisualitemmodel.cpp2
-rw-r--r--src/declarative/fx/qfxwebview.cpp2
-rw-r--r--src/declarative/fx/qfxwebview.h10
-rw-r--r--src/declarative/qml/parser/qmljs.g95
-rw-r--r--src/declarative/qml/parser/qmljsast.cpp25
-rw-r--r--src/declarative/qml/parser/qmljsast_p.h70
-rw-r--r--src/declarative/qml/parser/qmljsastfwd_p.h2
-rw-r--r--src/declarative/qml/parser/qmljsastvisitor_p.h4
-rw-r--r--src/declarative/qml/parser/qmljsgrammar.cpp1396
-rw-r--r--src/declarative/qml/parser/qmljsgrammar_p.h33
-rw-r--r--src/declarative/qml/parser/qmljslexer.cpp1
-rw-r--r--src/declarative/qml/parser/qmljsparser.cpp517
-rw-r--r--src/declarative/qml/parser/qmljsparser_p.h6
-rw-r--r--src/declarative/qml/qml.h11
-rw-r--r--src/declarative/qml/qmlbindablecomponent.cpp25
-rw-r--r--src/declarative/qml/qmlbindablecomponent.h1
-rw-r--r--src/declarative/qml/qmlcompiler.cpp6
-rw-r--r--src/declarative/qml/qmlcomponent.cpp26
-rw-r--r--src/declarative/qml/qmlcomponent.h1
-rw-r--r--src/declarative/qml/qmlcustomparser_p.h4
-rw-r--r--src/declarative/qml/qmlengine.cpp2
-rw-r--r--src/declarative/qml/qmlmetatype.cpp65
-rw-r--r--src/declarative/qml/qmlmetatype.h21
-rw-r--r--src/declarative/util/qmlanimation.cpp18
-rw-r--r--src/declarative/util/qmlbind.cpp2
-rw-r--r--src/declarative/util/qmlconnection.cpp2
-rw-r--r--src/declarative/util/qmlfollow.cpp2
-rw-r--r--src/declarative/util/qmlfont.cpp2
-rw-r--r--src/declarative/util/qmllistmodel.cpp4
-rw-r--r--src/declarative/util/qmlpackage.cpp2
-rw-r--r--src/declarative/util/qmlpalette.cpp2
-rw-r--r--src/declarative/util/qmlscript.cpp2
-rw-r--r--src/declarative/util/qmlsetproperties.cpp2
-rw-r--r--src/declarative/util/qmlstate.cpp2
-rw-r--r--src/declarative/util/qmlstategroup.cpp2
-rw-r--r--src/declarative/util/qmlstateoperations.cpp4
-rw-r--r--src/declarative/util/qmltimer.cpp2
-rw-r--r--src/declarative/util/qmltransition.cpp2
-rw-r--r--src/declarative/widgets/graphicslayouts.cpp6
-rw-r--r--src/declarative/widgets/graphicswidgets.cpp6
73 files changed, 1401 insertions, 1100 deletions
diff --git a/src/declarative/extra/qfxanimatedimageitem.cpp b/src/declarative/extra/qfxanimatedimageitem.cpp
index 4c74f6f..44a1d67 100644
--- a/src/declarative/extra/qfxanimatedimageitem.cpp
+++ b/src/declarative/extra/qfxanimatedimageitem.cpp
@@ -77,7 +77,7 @@ Item {
\endqml
\endtable
*/
-QML_DEFINE_TYPE(QFxAnimatedImageItem, AnimatedImage)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,AnimatedImage,QFxAnimatedImageItem)
QFxAnimatedImageItem::QFxAnimatedImageItem(QFxItem *parent)
: QFxImage(*(new QFxAnimatedImageItemPrivate), parent)
diff --git a/src/declarative/extra/qfxflowview.cpp b/src/declarative/extra/qfxflowview.cpp
index e1200c7..1757c5a 100644
--- a/src/declarative/extra/qfxflowview.cpp
+++ b/src/declarative/extra/qfxflowview.cpp
@@ -373,7 +373,7 @@ void QFxFlowView::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
}
}
-QML_DEFINE_TYPE(QFxFlowView,FlowView);
+QML_DEFINE_TYPE(Qt, 4,6, (QT_VERSION&0x00ff00)>>8, FlowView, QFxFlowView);
QT_END_NAMESPACE
diff --git a/src/declarative/extra/qfxintegermodel.cpp b/src/declarative/extra/qfxintegermodel.cpp
index 437073e..3cd46d7 100644
--- a/src/declarative/extra/qfxintegermodel.cpp
+++ b/src/declarative/extra/qfxintegermodel.cpp
@@ -43,7 +43,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxIntegerModel, IntegerModel)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,IntegerModel,QFxIntegerModel)
class QFxIntegerModelPrivate
{
diff --git a/src/declarative/extra/qfxparticles.cpp b/src/declarative/extra/qfxparticles.cpp
index a7b01dd..13c14b0 100644
--- a/src/declarative/extra/qfxparticles.cpp
+++ b/src/declarative/extra/qfxparticles.cpp
@@ -102,7 +102,7 @@ public:
//---------------------------------------------------------------------------
-QML_DEFINE_TYPE(QFxParticleMotion,ParticleMotion)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,ParticleMotion,QFxParticleMotion)
/*!
\class QFxParticleMotion
@@ -162,7 +162,7 @@ void QFxParticleMotion::destroy(QFxParticle &particle)
\brief The QFxParticleMotionLinear class moves the particles linearly.
*/
-QML_DEFINE_TYPE(QFxParticleMotionLinear,ParticleMotionLinear)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,ParticleMotionLinear,QFxParticleMotionLinear)
void QFxParticleMotionLinear::advance(QFxParticle &p, int interval)
{
@@ -184,7 +184,7 @@ void QFxParticleMotionLinear::advance(QFxParticle &p, int interval)
\brief The QFxParticleMotionGravity class moves the particles towards a point.
*/
-QML_DEFINE_TYPE(QFxParticleMotionGravity,ParticleMotionGravity)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,ParticleMotionGravity,QFxParticleMotionGravity)
/*!
\qmlproperty int ParticleMotionGravity::xattractor
@@ -286,7 +286,7 @@ Rect {
This property holds how quickly the paricles will move from side to side.
*/
-QML_DEFINE_TYPE(QFxParticleMotionWander,ParticleMotionWander)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,ParticleMotionWander,QFxParticleMotionWander)
void QFxParticleMotionWander::advance(QFxParticle &p, int interval)
{
@@ -528,7 +528,7 @@ void QFxParticlesPrivate::updateOpacity(QFxParticle &p, int age)
}
}
-QML_DEFINE_TYPE(QFxParticles,Particles)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Particles,QFxParticles)
/*!
\qmlclass Particles
diff --git a/src/declarative/extra/qmlbehaviour.cpp b/src/declarative/extra/qmlbehaviour.cpp
index 92a85b0..0e70bdc 100644
--- a/src/declarative/extra/qmlbehaviour.cpp
+++ b/src/declarative/extra/qmlbehaviour.cpp
@@ -48,7 +48,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QmlBehaviour,Behavior)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Behavior,QmlBehaviour)
class QmlBehaviourData : public QObject
{
diff --git a/src/declarative/extra/qmldatetimeformatter.cpp b/src/declarative/extra/qmldatetimeformatter.cpp
index 158431a..91ebce6 100644
--- a/src/declarative/extra/qmldatetimeformatter.cpp
+++ b/src/declarative/extra/qmldatetimeformatter.cpp
@@ -365,6 +365,6 @@ void QmlDateTimeFormatter::classComplete()
d->updateText();
}
-QML_DEFINE_TYPE(QmlDateTimeFormatter, DateTimeFormatter)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,DateTimeFormatter,QmlDateTimeFormatter)
QT_END_NAMESPACE
diff --git a/src/declarative/extra/qmlfolderlistmodel.cpp b/src/declarative/extra/qmlfolderlistmodel.cpp
index 1c05a6d..e632f72 100644
--- a/src/declarative/extra/qmlfolderlistmodel.cpp
+++ b/src/declarative/extra/qmlfolderlistmodel.cpp
@@ -318,7 +318,7 @@ void QmlFolderListModel::dataChanged(const QModelIndex &start, const QModelIndex
emit itemsChanged(start.row(), end.row() - start.row() + 1, roles());
}
-QML_DEFINE_TYPE(QmlFolderListModel,FolderListModel)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,FolderListModel,QmlFolderListModel)
QT_END_NAMESPACE
diff --git a/src/declarative/extra/qmlnumberformatter.cpp b/src/declarative/extra/qmlnumberformatter.cpp
index b24f2d8..1818c36 100644
--- a/src/declarative/extra/qmlnumberformatter.cpp
+++ b/src/declarative/extra/qmlnumberformatter.cpp
@@ -210,6 +210,6 @@ void QmlNumberFormatter::classComplete()
d->classComplete = true;
d->updateText();
}
-QML_DEFINE_TYPE(QmlNumberFormatter, NumberFormatter);
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,NumberFormatter,QmlNumberFormatter);
QT_END_NAMESPACE
diff --git a/src/declarative/extra/qmlsqlconnection.cpp b/src/declarative/extra/qmlsqlconnection.cpp
index 5cf572b..3384ccd 100644
--- a/src/declarative/extra/qmlsqlconnection.cpp
+++ b/src/declarative/extra/qmlsqlconnection.cpp
@@ -51,7 +51,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QmlSqlConnection, SqlConnection)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,SqlConnection,QmlSqlConnection)
class QmlSqlConnectionPrivate: public QObjectPrivate
{
diff --git a/src/declarative/extra/qmlsqlquery.cpp b/src/declarative/extra/qmlsqlquery.cpp
index d9d9760..4894de7 100644
--- a/src/declarative/extra/qmlsqlquery.cpp
+++ b/src/declarative/extra/qmlsqlquery.cpp
@@ -56,8 +56,8 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QmlSqlBind, SqlBind)
-QML_DEFINE_TYPE(QmlSqlQuery, SqlQuery)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,SqlBind,QmlSqlBind)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,SqlQuery,QmlSqlQuery)
class QmlSqlBindPrivate : public QObjectPrivate
{
diff --git a/src/declarative/extra/qmlxmllistmodel.cpp b/src/declarative/extra/qmlxmllistmodel.cpp
index 1321f41..077e9a9 100644
--- a/src/declarative/extra/qmlxmllistmodel.cpp
+++ b/src/declarative/extra/qmlxmllistmodel.cpp
@@ -58,8 +58,8 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(XmlListModelRole, XmlRole)
-QML_DEFINE_TYPE(QmlXmlListModel, XmlListModel)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,XmlRole,XmlListModelRole)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,XmlListModel,QmlXmlListModel)
class QmlXmlListModelPrivate;
struct QmlXmlRoleList : public QmlConcreteList<XmlListModelRole *>
diff --git a/src/declarative/fx/qfxanchors.cpp b/src/declarative/fx/qfxanchors.cpp
index 350cbc0..9704fef 100644
--- a/src/declarative/fx/qfxanchors.cpp
+++ b/src/declarative/fx/qfxanchors.cpp
@@ -47,7 +47,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxAnchors,Anchors)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Anchors,QFxAnchors)
//TODO: should we cache relationships, so we don't have to check each time (parent-child or sibling)?
//TODO: support non-parent, non-sibling (need to find lowest common ancestor)
diff --git a/src/declarative/fx/qfxcomponentinstance.cpp b/src/declarative/fx/qfxcomponentinstance.cpp
index 6cf8e74..3ea45bd 100644
--- a/src/declarative/fx/qfxcomponentinstance.cpp
+++ b/src/declarative/fx/qfxcomponentinstance.cpp
@@ -46,7 +46,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxComponentInstance,ComponentInstance)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,ComponentInstance,QFxComponentInstance)
/*!
\internal
diff --git a/src/declarative/fx/qfxflickable.cpp b/src/declarative/fx/qfxflickable.cpp
index 1db6e8b..d94c6d8 100644
--- a/src/declarative/fx/qfxflickable.cpp
+++ b/src/declarative/fx/qfxflickable.cpp
@@ -228,7 +228,7 @@ void QFxFlickablePrivate::updateBeginningEnd()
static const int FlickThreshold = 5;
-QML_DEFINE_TYPE(QFxFlickable,Flickable)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Flickable,QFxFlickable)
/*!
\qmlclass Flickable
diff --git a/src/declarative/fx/qfxflipable.cpp b/src/declarative/fx/qfxflipable.cpp
index 6089d0a..fafd04a 100644
--- a/src/declarative/fx/qfxflipable.cpp
+++ b/src/declarative/fx/qfxflipable.cpp
@@ -46,7 +46,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxFlipable,Flipable)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Flipable,QFxFlipable)
class QFxFlipablePrivate : public QFxItemPrivate
{
diff --git a/src/declarative/fx/qfxfocusrealm.cpp b/src/declarative/fx/qfxfocusrealm.cpp
index 9270bb2..e22d721 100644
--- a/src/declarative/fx/qfxfocusrealm.cpp
+++ b/src/declarative/fx/qfxfocusrealm.cpp
@@ -43,7 +43,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxFocusRealm,FocusRealm)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,FocusRealm,QFxFocusRealm)
/*!
\qmlclass FocusRealm
diff --git a/src/declarative/fx/qfxgraphicsobjectcontainer.cpp b/src/declarative/fx/qfxgraphicsobjectcontainer.cpp
index a82ea3d..08120fc 100644
--- a/src/declarative/fx/qfxgraphicsobjectcontainer.cpp
+++ b/src/declarative/fx/qfxgraphicsobjectcontainer.cpp
@@ -56,7 +56,7 @@ QT_BEGIN_NAMESPACE
*/
QML_DEFINE_NOCREATE_TYPE(QGraphicsObject)
-QML_DEFINE_TYPE(QFxGraphicsObjectContainer, GraphicsObjectContainer)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,GraphicsObjectContainer,QFxGraphicsObjectContainer)
QFxGraphicsObjectContainer::QFxGraphicsObjectContainer(QFxItem *parent)
: QFxItem(parent), _graphicsObject(0)
diff --git a/src/declarative/fx/qfxgridview.cpp b/src/declarative/fx/qfxgridview.cpp
index 9528af7..a91ddc6 100644
--- a/src/declarative/fx/qfxgridview.cpp
+++ b/src/declarative/fx/qfxgridview.cpp
@@ -1426,7 +1426,7 @@ QObject *QFxGridView::qmlAttachedProperties(QObject *obj)
return QFxGridViewAttached::properties(obj);
}
-QML_DEFINE_TYPE(QFxGridView,GridView)
+QML_DEFINE_TYPE(Qt, 4,6, (QT_VERSION&0x00ff00)>>8, GridView, QFxGridView)
QT_END_NAMESPACE
diff --git a/src/declarative/fx/qfximage.cpp b/src/declarative/fx/qfximage.cpp
index 7445606..e54dd9b 100644
--- a/src/declarative/fx/qfximage.cpp
+++ b/src/declarative/fx/qfximage.cpp
@@ -53,7 +53,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxImage,Image)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Image,QFxImage)
/*!
\qmlclass Image QFxImage
diff --git a/src/declarative/fx/qfxitem.cpp b/src/declarative/fx/qfxitem.cpp
index 212496c..6c6fcd3 100644
--- a/src/declarative/fx/qfxitem.cpp
+++ b/src/declarative/fx/qfxitem.cpp
@@ -71,7 +71,7 @@ QT_BEGIN_NAMESPACE
#endif
QML_DEFINE_NOCREATE_TYPE(QFxContents)
-QML_DEFINE_TYPE(QFxItem,Item)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Item,QFxItem)
/*!
\group group_animation
diff --git a/src/declarative/fx/qfxkeyactions.cpp b/src/declarative/fx/qfxkeyactions.cpp
index 5de1f0b..186ab45 100644
--- a/src/declarative/fx/qfxkeyactions.cpp
+++ b/src/declarative/fx/qfxkeyactions.cpp
@@ -44,7 +44,7 @@
#include <QKeyEvent>
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxKeyActions,KeyActions)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,KeyActions,QFxKeyActions)
class QFxKeyActionsPrivate
{
diff --git a/src/declarative/fx/qfxkeyproxy.cpp b/src/declarative/fx/qfxkeyproxy.cpp
index e4b4269..13f4bfb 100644
--- a/src/declarative/fx/qfxkeyproxy.cpp
+++ b/src/declarative/fx/qfxkeyproxy.cpp
@@ -45,7 +45,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxKeyProxy,KeyProxy)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,KeyProxy,QFxKeyProxy)
/*!
\qmlclass KeyProxy
diff --git a/src/declarative/fx/qfxlayouts.cpp b/src/declarative/fx/qfxlayouts.cpp
index f71b35a..3e8a64c 100644
--- a/src/declarative/fx/qfxlayouts.cpp
+++ b/src/declarative/fx/qfxlayouts.cpp
@@ -445,7 +445,7 @@ void QFxBaseLayout::applyRemove(const QList<QPair<QString, QVariant> >& changes,
applyTransition(changes,target, remove());
}
-QML_DEFINE_TYPE(QFxVerticalLayout, VerticalLayout)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,VerticalLayout,QFxVerticalLayout)
/*!
\qmlclass VerticalLayout
\brief The VerticalLayout item arranges its children in a vertical layout.
@@ -648,7 +648,7 @@ void QFxVerticalLayout::doLayout()
setMovingItem(0);
}
-QML_DEFINE_TYPE(QFxHorizontalLayout,HorizontalLayout)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,HorizontalLayout,QFxHorizontalLayout)
/*!
\qmlclass HorizontalLayout
\brief The HorizontalLayout item arranges its children in a horizontal layout.
@@ -813,7 +813,7 @@ void QFxHorizontalLayout::doLayout()
setWidth(hoffset);
}
-QML_DEFINE_TYPE(QFxGridLayout,GridLayout)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,GridLayout,QFxGridLayout)
/*!
\qmlclass GridLayout QFxGridLayout
diff --git a/src/declarative/fx/qfxlineedit.cpp b/src/declarative/fx/qfxlineedit.cpp
index bafd782..c77942d 100644
--- a/src/declarative/fx/qfxlineedit.cpp
+++ b/src/declarative/fx/qfxlineedit.cpp
@@ -47,8 +47,8 @@
#include <QPainter>
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxLineEdit,LineEdit);
-QML_DEFINE_TYPE(QIntValidator,QIntValidator);
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,LineEdit,QFxLineEdit);
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,QIntValidator,QIntValidator);
QFxLineEdit::QFxLineEdit(QFxItem* parent)
: QFxPaintedItem(*(new QFxLineEditPrivate), parent)
diff --git a/src/declarative/fx/qfxlistview.cpp b/src/declarative/fx/qfxlistview.cpp
index 3515b78..db80967 100644
--- a/src/declarative/fx/qfxlistview.cpp
+++ b/src/declarative/fx/qfxlistview.cpp
@@ -1643,7 +1643,7 @@ QObject *QFxListView::qmlAttachedProperties(QObject *obj)
return QFxListViewAttached::properties(obj);
}
-QML_DEFINE_TYPE(QFxListView,ListView)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,ListView,QFxListView)
QT_END_NAMESPACE
#include "qfxlistview.moc"
diff --git a/src/declarative/fx/qfxmouseregion.cpp b/src/declarative/fx/qfxmouseregion.cpp
index af16d4d..d7bb7c9 100644
--- a/src/declarative/fx/qfxmouseregion.cpp
+++ b/src/declarative/fx/qfxmouseregion.cpp
@@ -49,7 +49,7 @@ QT_BEGIN_NAMESPACE
static const int DragThreshold = 5;
static const int PressAndHoldDelay = 800;
-QML_DEFINE_TYPE(QFxDrag,Drag)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Drag,QFxDrag)
QFxDrag::QFxDrag(QObject *parent)
: QObject(parent), _target(0), _xmin(0), _xmax(0), _ymin(0), _ymax(0)
{
@@ -233,7 +233,7 @@ void QFxDrag::setYmax(int m)
position of the release of the click, and whether the click wasHeld.
*/
-QML_DEFINE_TYPE(QFxMouseRegion,MouseRegion)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,MouseRegion,QFxMouseRegion)
/*!
\internal
diff --git a/src/declarative/fx/qfxpath.cpp b/src/declarative/fx/qfxpath.cpp
index a1b6032..aff8a6d 100644
--- a/src/declarative/fx/qfxpath.cpp
+++ b/src/declarative/fx/qfxpath.cpp
@@ -47,14 +47,14 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxPath,Path)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Path,QFxPath)
QML_DEFINE_NOCREATE_TYPE(QFxPathElement)
QML_DEFINE_NOCREATE_TYPE(QFxCurve)
-QML_DEFINE_TYPE(QFxPathAttribute,PathAttribute)
-QML_DEFINE_TYPE(QFxPathPercent,PathPercent)
-QML_DEFINE_TYPE(QFxPathLine,PathLine)
-QML_DEFINE_TYPE(QFxPathQuad,PathQuad)
-QML_DEFINE_TYPE(QFxPathCubic,PathCubic)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,PathAttribute,QFxPathAttribute)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,PathPercent,QFxPathPercent)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,PathLine,QFxPathLine)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,PathQuad,QFxPathQuad)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,PathCubic,QFxPathCubic)
/*!
\qmlclass PathElement
diff --git a/src/declarative/fx/qfxpathview.cpp b/src/declarative/fx/qfxpathview.cpp
index 4f6fddd..2a36c25 100644
--- a/src/declarative/fx/qfxpathview.cpp
+++ b/src/declarative/fx/qfxpathview.cpp
@@ -54,7 +54,7 @@ static const int FlickThreshold = 5;
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxPathView,PathView)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,PathView,QFxPathView)
class QFxPathViewAttached : public QObject
{
diff --git a/src/declarative/fx/qfxrect.cpp b/src/declarative/fx/qfxrect.cpp
index 32d3eb4..7010ba1 100644
--- a/src/declarative/fx/qfxrect.cpp
+++ b/src/declarative/fx/qfxrect.cpp
@@ -45,9 +45,9 @@
#include <QPainter>
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxPen,Pen)
-QML_DEFINE_TYPE(QFxGradientStop,GradientStop)
-QML_DEFINE_TYPE(QFxGradient,Gradient)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Pen,QFxPen)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,GradientStop,QFxGradientStop)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Gradient,QFxGradient)
/*!
\internal
@@ -185,7 +185,7 @@ void QFxGradient::doUpdate()
emit updated();
}
-QML_DEFINE_TYPE(QFxRect,Rect)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Rect,QFxRect)
/*!
\qmlclass Rect QFxRect
diff --git a/src/declarative/fx/qfxrepeater.cpp b/src/declarative/fx/qfxrepeater.cpp
index a4dc809..084921b 100644
--- a/src/declarative/fx/qfxrepeater.cpp
+++ b/src/declarative/fx/qfxrepeater.cpp
@@ -72,7 +72,7 @@ QFxItem *QFxRepeaterPrivate::addItem(QmlContext *ctxt, QFxItem *lastItem)
return item;
}
-QML_DEFINE_TYPE(QFxRepeater,Repeater)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Repeater,QFxRepeater)
/*!
\qmlclass Repeater
diff --git a/src/declarative/fx/qfxtext.cpp b/src/declarative/fx/qfxtext.cpp
index 3d36bf3..e0692e9 100644
--- a/src/declarative/fx/qfxtext.cpp
+++ b/src/declarative/fx/qfxtext.cpp
@@ -52,7 +52,7 @@
#include <QPainter>
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxText,Text)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Text,QFxText)
/*!
\qmlclass Text QFxText
diff --git a/src/declarative/fx/qfxtextedit.cpp b/src/declarative/fx/qfxtextedit.cpp
index 4a8085b..fbb2d53 100644
--- a/src/declarative/fx/qfxtextedit.cpp
+++ b/src/declarative/fx/qfxtextedit.cpp
@@ -53,7 +53,7 @@
#include <QPainter>
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxTextEdit, TextEdit)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,TextEdit,QFxTextEdit)
/*!
\qmlclass TextEdit
diff --git a/src/declarative/fx/qfxtransform.cpp b/src/declarative/fx/qfxtransform.cpp
index f08d830..9fc66ef 100644
--- a/src/declarative/fx/qfxtransform.cpp
+++ b/src/declarative/fx/qfxtransform.cpp
@@ -199,7 +199,7 @@ void QFxScale::update()
QFxTransform::update();
}
-QML_DEFINE_TYPE(QFxScale, Scale)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Scale,QFxScale)
/*!
@@ -218,7 +218,7 @@ QML_DEFINE_TYPE(QFxScale, Scale)
\endqml
*/
-QML_DEFINE_TYPE(QFxAxis, Axis)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Axis,QFxAxis)
QFxAxis::QFxAxis(QObject *parent)
: QObject(parent), _startX(0), _startY(0), _endX(0), _endY(0), _endZ(0)
@@ -391,7 +391,7 @@ void QFxRotation::update()
QFxTransform::update();
}
-QML_DEFINE_TYPE(QFxRotation, Rotation)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Rotation,QFxRotation)
/*!
\qmlclass Rotation3D
@@ -403,7 +403,7 @@ QML_DEFINE_TYPE(QFxRotation, Rotation)
\image axisrotation.png
*/
-QML_DEFINE_TYPE(QFxRotation3D,Rotation3D)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Rotation3D,QFxRotation3D)
QFxRotation3D::QFxRotation3D(QObject *parent)
: QFxTransform(parent), _angle(0), _dirty(true)
@@ -529,7 +529,7 @@ Image {
\endqml
*/
-QML_DEFINE_TYPE(QFxTranslation3D,Translation3D)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Translation3D,QFxTranslation3D)
QFxTranslation3D::QFxTranslation3D(QObject *parent)
: QFxTransform(parent), _distance(0), _dirty(true)
@@ -627,7 +627,7 @@ void QFxTranslation3D::update()
OpenGL. When running under software rasterization it has no effect.
*/
-QML_DEFINE_TYPE(QFxPerspective,Perspective)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Perspective,QFxPerspective)
QFxPerspective::QFxPerspective(QObject *parent)
: QFxTransform(parent)
@@ -724,7 +724,7 @@ QFxPerspective::~QFxPerspective()
\image squish.png
*/
-QML_DEFINE_TYPE(QFxSquish,Squish)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Squish,QFxSquish)
QFxSquish::QFxSquish(QObject *parent)
: QFxTransform(parent)
diff --git a/src/declarative/fx/qfxvisualitemmodel.cpp b/src/declarative/fx/qfxvisualitemmodel.cpp
index 3d336c5..b653057 100644
--- a/src/declarative/fx/qfxvisualitemmodel.cpp
+++ b/src/declarative/fx/qfxvisualitemmodel.cpp
@@ -767,7 +767,7 @@ void QFxVisualItemModel::_q_destroyingPackage(QmlPackage *package)
emit destroyingItem(qobject_cast<QFxItem*>(package->part(d->m_part)));
}
-QML_DEFINE_TYPE(QFxVisualItemModel,VisualModel)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,VisualModel,QFxVisualItemModel)
QT_END_NAMESPACE
#include "qfxvisualitemmodel.moc"
diff --git a/src/declarative/fx/qfxwebview.cpp b/src/declarative/fx/qfxwebview.cpp
index 6c23198..4c6af69 100644
--- a/src/declarative/fx/qfxwebview.cpp
+++ b/src/declarative/fx/qfxwebview.cpp
@@ -63,7 +63,7 @@
#include <private/qfxpainteditem_p.h>
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QFxWebView,WebView)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,WebView,QFxWebView)
static const int MAX_DOUBLECLICK_TIME=500; // XXX need better gesture system
diff --git a/src/declarative/fx/qfxwebview.h b/src/declarative/fx/qfxwebview.h
index 7f22439..1200162 100644
--- a/src/declarative/fx/qfxwebview.h
+++ b/src/declarative/fx/qfxwebview.h
@@ -96,12 +96,12 @@ class Q_DECLARATIVE_EXPORT QFxWebView : public QFxPaintedItem
Q_PROPERTY(bool interactive READ interactive WRITE setInteractive NOTIFY interactiveChanged)
- Q_PROPERTY(QObject* reload READ reloadAction)
- Q_PROPERTY(QObject* back READ backAction)
- Q_PROPERTY(QObject* forward READ forwardAction)
- Q_PROPERTY(QObject* stop READ stopAction)
+ Q_PROPERTY(QObject* reload READ reloadAction CONSTANT)
+ Q_PROPERTY(QObject* back READ backAction CONSTANT)
+ Q_PROPERTY(QObject* forward READ forwardAction CONSTANT)
+ Q_PROPERTY(QObject* stop READ stopAction CONSTANT)
- Q_PROPERTY(QObject* settings READ settingsObject)
+ Q_PROPERTY(QObject* settings READ settingsObject CONSTANT)
public:
QFxWebView(QFxItem *parent=0);
diff --git a/src/declarative/qml/parser/qmljs.g b/src/declarative/qml/parser/qmljs.g
index 20ee27d..d7fb17c 100644
--- a/src/declarative/qml/parser/qmljs.g
+++ b/src/declarative/qml/parser/qmljs.g
@@ -81,6 +81,8 @@
%token T_RESERVED_WORD "reserved word"
%token T_MULTILINE_STRING_LITERAL "multiline string literal"
+%token T_AT "@"
+
--- context keywords.
%token T_PUBLIC "public"
%token T_IMPORT "import"
@@ -271,6 +273,8 @@ public:
AST::UiObjectMemberList *UiObjectMemberList;
AST::UiArrayMemberList *UiArrayMemberList;
AST::UiQualifiedId *UiQualifiedId;
+ AST::UiAttributeList *UiAttributeList;
+ AST::UiAttribute *UiAttribute;
};
public:
@@ -667,25 +671,93 @@ case $rule_number: {
} break;
./
-UiRootMember: UiObjectDefinition ;
+UiRootMember: UiAnnotation UiObjectDefinition ;
+/.
+case $rule_number: {
+ sym(1).Node = makeAstNode<AST::UiObjectMemberList> (driver->nodePool(),
+ sym(1).UiAttributeList, sym(2).UiObjectMember);
+} break;
+./
+
+UiAnnotation: Empty ;
+UiAnnotation: UiAttributeList ;
+/.
+case $rule_number: {
+ sym(1).UiAttributeList = sym(1).UiAttributeList->finish();
+} break;
+./
+
+UiAttributeList: UiAttribute ;
+/.
+case $rule_number: {
+ sym(1).UiAttributeList = makeAstNode<AST::UiAttributeList>(driver->nodePool(), sym(1).UiAttribute);
+} break;
+./
+
+UiAttributeList: UiAttributeList UiAttribute ;
+/.
+case $rule_number: {
+ sym(1).UiAttributeList = makeAstNode<AST::UiAttributeList>(driver->nodePool(),
+ sym(1).UiAttributeList, sym(2).UiAttribute);
+} break;
+./
+
+UiAttributeName: JsIdentifier ;
+UiAttributeName: ReservedIdentifier ;
+
+UiAttribute: T_AT UiAttributeName ;
+/.
+case $rule_number: {
+ AST::UiAttribute *ast = makeAstNode<AST::UiAttribute>(driver->nodePool(), sym(2).sval);
+ ast->atToken = loc(1);
+ ast->nameToken = loc(2);
+ sym(1).UiAttribute = ast;
+} break;
+./
+
+UiAttribute: T_AT UiAttributeName T_EQ UiAttributeValue ;
+/.
+case $rule_number: {
+ AST::UiAttribute *ast = makeAstNode<AST::UiAttribute>(driver->nodePool(),
+ sym(2).sval, sym(4).Expression);
+ ast->atToken = loc(1);
+ ast->nameToken = loc(2);
+ ast->equalToken = loc(3);
+ sym(1).UiAttribute = ast;
+} break;
+./
+
+UiAttributeValue: UiAttributeName ;
+/.
+case $rule_number: {
+ AST::IdentifierExpression *node = makeAstNode<AST::IdentifierExpression> (driver->nodePool(), sym(1).sval);
+ node->identifierToken = loc(1);
+ sym(1).Node = node;
+} break;
+./
+
+UiAttributeValue: T_NUMERIC_LITERAL ;
/.
case $rule_number: {
- sym(1).Node = makeAstNode<AST::UiObjectMemberList> (driver->nodePool(), sym(1).UiObjectMember);
+ AST::NumericLiteral *node = makeAstNode<AST::NumericLiteral> (driver->nodePool(), sym(1).dval, lexer->flags);
+ node->literalToken = loc(1);
+ sym(1).Node = node;
} break;
./
-UiObjectMemberList: UiObjectMember ;
+UiObjectMemberList: UiAnnotation UiObjectMember ;
/.
case $rule_number: {
- sym(1).Node = makeAstNode<AST::UiObjectMemberList> (driver->nodePool(), sym(1).UiObjectMember);
+ sym(1).Node = makeAstNode<AST::UiObjectMemberList> (driver->nodePool(),
+ sym(1).UiAttributeList, sym(2).UiObjectMember);
} break;
./
-UiObjectMemberList: UiObjectMemberList UiObjectMember ;
+UiObjectMemberList: UiObjectMemberList UiAnnotation UiObjectMember ;
/.
case $rule_number: {
AST::UiObjectMemberList *node = makeAstNode<AST:: UiObjectMemberList> (driver->nodePool(),
- sym(1).UiObjectMemberList, sym(2).UiObjectMember);
+ sym(1).UiObjectMemberList, sym(2).UiAttributeList, sym(3).UiObjectMember);
sym(1).Node = node;
} break;
./
@@ -697,9 +769,18 @@ case $rule_number: {
} break;
./
-UiArrayMemberList: UiArrayMemberList T_COMMA UiObjectDefinition ;
+UiArrayMemberList: UiAttributeList UiObjectDefinition ;
+/.
+case $rule_number: {
+ sym(2).UiObjectMember->attributes = sym(1).UiAttributeList->finish();
+ sym(1).Node = makeAstNode<AST::UiArrayMemberList> (driver->nodePool(), sym(2).UiObjectMember);
+} break;
+./
+
+UiArrayMemberList: UiArrayMemberList T_COMMA UiAnnotation UiObjectDefinition ;
/.
case $rule_number: {
+ sym(4).UiObjectMember->attributes = sym(3).UiAttributeList;
AST::UiArrayMemberList *node = makeAstNode<AST::UiArrayMemberList> (driver->nodePool(),
sym(1).UiArrayMemberList, sym(3).UiObjectMember);
node->commaToken = loc(2);
diff --git a/src/declarative/qml/parser/qmljsast.cpp b/src/declarative/qml/parser/qmljsast.cpp
index d10c071..fb4ea8a 100644
--- a/src/declarative/qml/parser/qmljsast.cpp
+++ b/src/declarative/qml/parser/qmljsast.cpp
@@ -839,9 +839,29 @@ void UiProgram::accept0(Visitor *visitor)
visitor->endVisit(this);
}
+void UiAttributeList::accept0(Visitor *visitor)
+{
+ if (visitor->visit(this)) {
+ for (UiAttributeList *it = this; it; it = it->next)
+ acceptChild(it->attribute, visitor);
+ }
+
+ visitor->endVisit(this);
+}
+
+void UiAttribute::accept0(Visitor *visitor)
+{
+ if (visitor->visit(this)) {
+ acceptChild(value, visitor);
+ }
+
+ visitor->endVisit(this);
+}
+
void UiPublicMember::accept0(Visitor *visitor)
{
if (visitor->visit(this)) {
+ acceptChild(attributes, visitor);
acceptChild(expression, visitor);
}
@@ -851,6 +871,7 @@ void UiPublicMember::accept0(Visitor *visitor)
void UiObjectDefinition::accept0(Visitor *visitor)
{
if (visitor->visit(this)) {
+ acceptChild(attributes, visitor);
acceptChild(qualifiedTypeNameId, visitor);
acceptChild(initializer, visitor);
}
@@ -871,6 +892,7 @@ void UiObjectInitializer::accept0(Visitor *visitor)
void UiObjectBinding::accept0(Visitor *visitor)
{
if (visitor->visit(this)) {
+ acceptChild(attributes, visitor);
acceptChild(qualifiedId, visitor);
acceptChild(qualifiedTypeNameId, visitor);
acceptChild(initializer, visitor);
@@ -882,6 +904,7 @@ void UiObjectBinding::accept0(Visitor *visitor)
void UiScriptBinding::accept0(Visitor *visitor)
{
if (visitor->visit(this)) {
+ acceptChild(attributes, visitor);
acceptChild(qualifiedId, visitor);
acceptChild(statement, visitor);
}
@@ -892,6 +915,7 @@ void UiScriptBinding::accept0(Visitor *visitor)
void UiArrayBinding::accept0(Visitor *visitor)
{
if (visitor->visit(this)) {
+ acceptChild(attributes, visitor);
acceptChild(qualifiedId, visitor);
for (UiArrayMemberList *it = members; it; it = it->next)
acceptChild(it->member, visitor);
@@ -949,6 +973,7 @@ void UiImportList::accept0(Visitor *visitor)
void UiSourceElement::accept0(Visitor *visitor)
{
if (visitor->visit(this)) {
+ acceptChild(attributes, visitor);
acceptChild(sourceElement, visitor);
}
diff --git a/src/declarative/qml/parser/qmljsast_p.h b/src/declarative/qml/parser/qmljsast_p.h
index 6d269ac..73b2cbc 100644
--- a/src/declarative/qml/parser/qmljsast_p.h
+++ b/src/declarative/qml/parser/qmljsast_p.h
@@ -104,7 +104,7 @@ enum Op {
} // namespace QSOperator
-namespace QmlJS {
+namespace QmlJS {
class NameId;
namespace AST {
@@ -213,7 +213,9 @@ public:
Kind_UiPublicMember,
Kind_UiQualifiedId,
Kind_UiScriptBinding,
- Kind_UiSourceElement
+ Kind_UiSourceElement,
+ Kind_UiAttributeList,
+ Kind_UiAttribute
};
inline Node()
@@ -2181,6 +2183,56 @@ public:
UiObjectMemberList *members;
};
+class UiAttributeList: public Node
+{
+public:
+ QMLJS_DECLARE_AST_NODE(UiAttributeList)
+
+ UiAttributeList(UiAttribute *attribute)
+ : attribute(attribute), next(this)
+ { kind = K; }
+
+ UiAttributeList(UiAttributeList *previous, UiAttribute *attribute)
+ : attribute(attribute)
+ {
+ next = previous->next;
+ previous->next = this;
+ kind = K;
+ }
+
+ UiAttributeList *finish()
+ {
+ UiAttributeList *head = next;
+ next = 0;
+ return head;
+ }
+
+ virtual void accept0(Visitor *visitor);
+
+// attributes
+ UiAttribute *attribute;
+ UiAttributeList *next;
+};
+
+class UiAttribute: public Node
+{
+public:
+ QMLJS_DECLARE_AST_NODE(UiAttribute)
+
+ UiAttribute(NameId *name, ExpressionNode *value = 0)
+ : name(name), value(value)
+ { kind = K; }
+
+ virtual void accept0(Visitor *visitor);
+
+// attributes
+ NameId *name;
+ ExpressionNode *value;
+ SourceLocation atToken;
+ SourceLocation nameToken;
+ SourceLocation equalToken;
+};
+
class UiQualifiedId: public Node
{
public:
@@ -2279,6 +2331,9 @@ class UiObjectMember: public Node
public:
virtual SourceLocation firstSourceLocation() const = 0;
virtual SourceLocation lastSourceLocation() const = 0;
+
+// attributes
+ UiAttributeList *attributes;
};
class UiObjectMemberList: public Node
@@ -2286,16 +2341,21 @@ class UiObjectMemberList: public Node
public:
QMLJS_DECLARE_AST_NODE(UiObjectMemberList)
- UiObjectMemberList(UiObjectMember *member)
+ UiObjectMemberList(UiAttributeList *attributes, UiObjectMember *member)
: next(this), member(member)
- { kind = K; }
+ {
+ kind = K;
+ member->attributes = attributes;
+ }
- UiObjectMemberList(UiObjectMemberList *previous, UiObjectMember *member)
+ UiObjectMemberList(UiObjectMemberList *previous, UiAttributeList *attributes,
+ UiObjectMember *member)
: member(member)
{
kind = K;
next = previous->next;
previous->next = this;
+ member->attributes = attributes;
}
virtual void accept0(Visitor *visitor);
diff --git a/src/declarative/qml/parser/qmljsastfwd_p.h b/src/declarative/qml/parser/qmljsastfwd_p.h
index 339bea4..18b3704 100644
--- a/src/declarative/qml/parser/qmljsastfwd_p.h
+++ b/src/declarative/qml/parser/qmljsastfwd_p.h
@@ -176,6 +176,8 @@ class UiObjectMember;
class UiObjectMemberList;
class UiArrayMemberList;
class UiQualifiedId;
+class UiAttributeList;
+class UiAttribute;
} } // namespace AST
diff --git a/src/declarative/qml/parser/qmljsastvisitor_p.h b/src/declarative/qml/parser/qmljsastvisitor_p.h
index 3677b1a..c2486d7 100644
--- a/src/declarative/qml/parser/qmljsastvisitor_p.h
+++ b/src/declarative/qml/parser/qmljsastvisitor_p.h
@@ -82,6 +82,8 @@ public:
virtual bool visit(UiObjectMemberList *) { return true; }
virtual bool visit(UiArrayMemberList *) { return true; }
virtual bool visit(UiQualifiedId *) { return true; }
+ virtual bool visit(UiAttributeList *) { return true; }
+ virtual bool visit(UiAttribute *) { return true; }
virtual void endVisit(UiProgram *) {}
virtual void endVisit(UiImportList *) {}
@@ -96,6 +98,8 @@ public:
virtual void endVisit(UiObjectMemberList *) {}
virtual void endVisit(UiArrayMemberList *) {}
virtual void endVisit(UiQualifiedId *) {}
+ virtual void endVisit(UiAttributeList *) {}
+ virtual void endVisit(UiAttribute *) {}
// QmlJS
virtual bool visit(ThisExpression *) { return true; }
diff --git a/src/declarative/qml/parser/qmljsgrammar.cpp b/src/declarative/qml/parser/qmljsgrammar.cpp
index 1b23be6..13a68c8 100644
--- a/src/declarative/qml/parser/qmljsgrammar.cpp
+++ b/src/declarative/qml/parser/qmljsgrammar.cpp
@@ -51,393 +51,428 @@ const char *const QmlJSGrammar::spell [] = {
"||", "+", "+=", "++", "?", "}", "]", "%", "%=", "return",
")", ";", 0, "*", "*=", "string literal", "property", "signal", "switch", "this",
"throw", "~", "try", "typeof", "var", "void", "while", "with", "^", "^=",
- "null", "true", "false", "const", "debugger", "reserved word", "multiline string literal", "public", "import", "as",
- 0, 0, 0, 0, 0};
+ "null", "true", "false", "const", "debugger", "reserved word", "multiline string literal", "@", "public", "import",
+ "as", 0, 0, 0, 0, 0};
const int QmlJSGrammar::lhs [] = {
- 95, 95, 95, 96, 99, 99, 102, 102, 103, 103,
- 103, 103, 103, 103, 103, 103, 103, 103, 103, 103,
- 101, 100, 107, 107, 109, 109, 110, 110, 106, 108,
- 108, 108, 108, 108, 108, 108, 115, 115, 115, 116,
- 116, 117, 117, 108, 108, 108, 108, 108, 108, 108,
- 108, 108, 108, 108, 108, 105, 105, 104, 104, 104,
- 120, 120, 120, 120, 120, 120, 120, 120, 120, 120,
- 120, 120, 120, 120, 120, 120, 120, 120, 105, 105,
- 122, 122, 122, 122, 121, 121, 124, 124, 126, 126,
- 126, 126, 126, 126, 127, 127, 127, 127, 127, 127,
- 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
- 127, 127, 127, 127, 127, 127, 127, 127, 127, 127,
- 127, 127, 127, 127, 127, 128, 128, 129, 129, 129,
- 129, 129, 132, 132, 133, 133, 133, 133, 131, 131,
- 134, 134, 135, 135, 136, 136, 136, 137, 137, 137,
- 137, 137, 137, 137, 137, 137, 137, 138, 138, 138,
- 138, 139, 139, 139, 140, 140, 140, 140, 141, 141,
- 141, 141, 141, 141, 141, 142, 142, 142, 142, 142,
- 142, 143, 143, 143, 143, 143, 144, 144, 144, 144,
- 144, 145, 145, 146, 146, 147, 147, 148, 148, 149,
- 149, 150, 150, 151, 151, 152, 152, 153, 153, 154,
- 154, 155, 155, 156, 156, 125, 125, 157, 157, 158,
- 158, 158, 158, 158, 158, 158, 158, 158, 158, 158,
- 158, 98, 98, 159, 159, 160, 160, 161, 161, 97,
- 97, 97, 97, 97, 97, 97, 97, 97, 97, 97,
- 97, 97, 97, 97, 111, 173, 173, 172, 172, 119,
- 119, 174, 174, 175, 175, 177, 177, 176, 178, 181,
- 179, 179, 182, 180, 180, 112, 113, 113, 114, 114,
- 162, 162, 162, 162, 162, 162, 162, 163, 163, 163,
- 163, 164, 164, 164, 164, 165, 165, 166, 168, 183,
- 183, 186, 186, 184, 184, 187, 185, 167, 167, 167,
- 169, 169, 170, 170, 170, 188, 189, 171, 171, 118,
- 130, 193, 193, 190, 190, 191, 191, 194, 195, 195,
- 196, 196, 192, 192, 123, 123, 197};
+ 96, 96, 96, 97, 100, 100, 103, 103, 104, 104,
+ 104, 104, 104, 104, 104, 104, 104, 104, 104, 104,
+ 102, 101, 107, 107, 109, 109, 111, 111, 110, 110,
+ 113, 113, 114, 114, 116, 116, 116, 117, 117, 108,
+ 115, 115, 115, 115, 115, 115, 115, 122, 122, 122,
+ 123, 123, 124, 124, 115, 115, 115, 115, 115, 115,
+ 115, 115, 115, 115, 115, 115, 106, 106, 105, 105,
+ 105, 127, 127, 127, 127, 127, 127, 127, 127, 127,
+ 127, 127, 127, 127, 127, 127, 127, 127, 127, 106,
+ 106, 129, 129, 129, 129, 128, 128, 131, 131, 133,
+ 133, 133, 133, 133, 133, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 112, 112, 112, 112,
+ 112, 112, 112, 112, 112, 112, 134, 134, 135, 135,
+ 135, 135, 135, 138, 138, 139, 139, 139, 139, 137,
+ 137, 140, 140, 141, 141, 142, 142, 142, 143, 143,
+ 143, 143, 143, 143, 143, 143, 143, 143, 144, 144,
+ 144, 144, 145, 145, 145, 146, 146, 146, 146, 147,
+ 147, 147, 147, 147, 147, 147, 148, 148, 148, 148,
+ 148, 148, 149, 149, 149, 149, 149, 150, 150, 150,
+ 150, 150, 151, 151, 152, 152, 153, 153, 154, 154,
+ 155, 155, 156, 156, 157, 157, 158, 158, 159, 159,
+ 160, 160, 161, 161, 162, 162, 132, 132, 163, 163,
+ 164, 164, 164, 164, 164, 164, 164, 164, 164, 164,
+ 164, 164, 99, 99, 165, 165, 166, 166, 167, 167,
+ 98, 98, 98, 98, 98, 98, 98, 98, 98, 98,
+ 98, 98, 98, 98, 98, 118, 179, 179, 178, 178,
+ 126, 126, 180, 180, 181, 181, 183, 183, 182, 184,
+ 187, 185, 185, 188, 186, 186, 119, 120, 120, 121,
+ 121, 168, 168, 168, 168, 168, 168, 168, 169, 169,
+ 169, 169, 170, 170, 170, 170, 171, 171, 172, 174,
+ 189, 189, 192, 192, 190, 190, 193, 191, 173, 173,
+ 173, 175, 175, 176, 176, 176, 194, 195, 177, 177,
+ 125, 136, 199, 199, 196, 196, 197, 197, 200, 201,
+ 201, 202, 202, 198, 198, 130, 130, 203};
const int QmlJSGrammar:: rhs[] = {
2, 2, 2, 2, 1, 1, 1, 2, 3, 3,
5, 5, 3, 3, 4, 4, 6, 6, 5, 5,
- 0, 1, 1, 2, 1, 3, 2, 3, 2, 1,
- 5, 4, 3, 3, 3, 3, 1, 1, 1, 0,
- 1, 2, 4, 5, 2, 4, 4, 5, 5, 6,
- 6, 7, 7, 1, 1, 1, 1, 1, 1, 1,
+ 0, 2, 1, 1, 1, 2, 1, 1, 2, 4,
+ 1, 1, 2, 3, 1, 2, 4, 2, 3, 2,
+ 1, 5, 4, 3, 3, 3, 3, 1, 1, 1,
+ 0, 1, 2, 4, 5, 2, 4, 4, 5, 5,
+ 6, 6, 7, 7, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 2, 3, 3, 4, 5, 3, 4, 3, 1, 3,
- 1, 2, 3, 4, 1, 2, 3, 5, 1, 1,
+ 1, 2, 3, 3, 4, 5, 3, 4, 3, 1,
+ 3, 1, 2, 3, 4, 1, 2, 3, 5, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 4,
- 3, 5, 1, 2, 4, 4, 4, 3, 0, 1,
- 1, 3, 1, 1, 1, 2, 2, 1, 2, 2,
- 2, 2, 2, 2, 2, 2, 2, 1, 3, 3,
- 3, 1, 3, 3, 1, 3, 3, 3, 1, 3,
- 3, 3, 3, 3, 3, 1, 3, 3, 3, 3,
- 3, 1, 3, 3, 3, 3, 1, 3, 3, 3,
- 3, 1, 3, 1, 3, 1, 3, 1, 3, 1,
- 3, 1, 3, 1, 3, 1, 3, 1, 3, 1,
- 3, 1, 5, 1, 5, 1, 3, 1, 3, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 3, 0, 1, 1, 3, 0, 1, 1,
+ 4, 3, 5, 1, 2, 4, 4, 4, 3, 0,
+ 1, 1, 3, 1, 1, 1, 2, 2, 1, 2,
+ 2, 2, 2, 2, 2, 2, 2, 2, 1, 3,
+ 3, 3, 1, 3, 3, 1, 3, 3, 3, 1,
+ 3, 3, 3, 3, 3, 3, 1, 3, 3, 3,
+ 3, 3, 1, 3, 3, 3, 3, 1, 3, 3,
+ 3, 3, 1, 3, 1, 3, 1, 3, 1, 3,
+ 1, 3, 1, 3, 1, 3, 1, 3, 1, 3,
+ 1, 3, 1, 5, 1, 5, 1, 3, 1, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 3, 1, 2, 0, 1, 3,
- 3, 1, 1, 1, 3, 1, 3, 2, 2, 2,
- 0, 1, 2, 0, 1, 1, 2, 2, 7, 5,
- 7, 7, 5, 9, 10, 7, 8, 2, 2, 3,
- 3, 2, 2, 3, 3, 3, 3, 5, 5, 3,
- 5, 1, 2, 0, 1, 4, 3, 3, 3, 3,
- 3, 3, 3, 3, 4, 5, 2, 2, 2, 8,
- 8, 1, 3, 0, 1, 0, 1, 1, 1, 2,
- 1, 1, 0, 1, 0, 1, 2};
+ 1, 1, 1, 3, 0, 1, 1, 3, 0, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 3, 1, 2, 0, 1,
+ 3, 3, 1, 1, 1, 3, 1, 3, 2, 2,
+ 2, 0, 1, 2, 0, 1, 1, 2, 2, 7,
+ 5, 7, 7, 5, 9, 10, 7, 8, 2, 2,
+ 3, 3, 2, 2, 3, 3, 3, 3, 5, 5,
+ 3, 5, 1, 2, 0, 1, 4, 3, 3, 3,
+ 3, 3, 3, 3, 3, 4, 5, 2, 2, 2,
+ 8, 8, 1, 3, 0, 1, 0, 1, 1, 1,
+ 2, 1, 1, 0, 1, 0, 1, 2};
const int QmlJSGrammar::action_default [] = {
- 0, 0, 0, 21, 0, 165, 232, 196, 204, 200,
- 144, 216, 192, 3, 129, 62, 145, 208, 212, 133,
- 162, 143, 148, 128, 182, 169, 0, 69, 70, 65,
- 333, 58, 335, 0, 0, 0, 0, 67, 0, 0,
- 63, 66, 0, 0, 59, 60, 68, 61, 0, 64,
- 0, 0, 158, 0, 0, 145, 164, 147, 146, 0,
- 0, 0, 160, 161, 159, 163, 0, 193, 0, 0,
- 0, 0, 183, 0, 0, 0, 0, 0, 0, 173,
- 0, 0, 0, 167, 168, 166, 171, 175, 174, 172,
- 170, 185, 184, 186, 0, 201, 0, 197, 0, 0,
- 139, 126, 138, 127, 95, 96, 97, 122, 98, 123,
- 99, 100, 101, 102, 103, 104, 105, 106, 107, 108,
- 109, 110, 111, 124, 112, 113, 114, 115, 116, 117,
- 118, 119, 120, 121, 125, 0, 0, 137, 233, 140,
- 0, 141, 0, 142, 136, 0, 229, 222, 220, 227,
- 228, 226, 225, 231, 224, 223, 221, 230, 217, 0,
- 205, 0, 0, 209, 0, 0, 213, 0, 0, 139,
- 131, 0, 130, 0, 135, 149, 0, 334, 324, 325,
- 0, 322, 0, 323, 0, 326, 240, 247, 246, 254,
- 242, 0, 243, 327, 0, 332, 244, 245, 250, 248,
- 329, 328, 331, 251, 0, 262, 0, 0, 0, 0,
- 333, 58, 0, 335, 59, 234, 276, 60, 0, 0,
- 0, 263, 0, 0, 252, 253, 0, 241, 249, 277,
- 278, 321, 330, 0, 292, 293, 294, 295, 0, 288,
- 289, 290, 291, 318, 319, 0, 0, 0, 0, 0,
- 281, 282, 238, 236, 198, 206, 202, 218, 194, 239,
- 0, 145, 210, 214, 187, 176, 0, 0, 195, 0,
- 0, 0, 0, 188, 0, 0, 0, 0, 0, 180,
- 178, 181, 179, 177, 190, 189, 191, 0, 203, 0,
- 199, 0, 237, 145, 0, 219, 234, 235, 0, 234,
- 0, 0, 284, 0, 0, 0, 286, 0, 207, 0,
- 0, 211, 0, 0, 215, 274, 0, 266, 275, 269,
- 0, 273, 0, 234, 267, 0, 234, 0, 0, 285,
- 0, 0, 0, 287, 334, 324, 0, 0, 326, 0,
- 320, 0, 310, 0, 0, 0, 280, 0, 279, 0,
- 336, 0, 94, 256, 259, 0, 95, 262, 98, 123,
- 100, 101, 65, 105, 106, 58, 107, 110, 63, 66,
- 59, 234, 60, 68, 113, 61, 115, 64, 117, 118,
- 263, 120, 121, 125, 0, 87, 0, 0, 89, 93,
- 91, 77, 90, 92, 0, 88, 76, 257, 255, 133,
- 134, 139, 0, 132, 0, 309, 0, 296, 297, 0,
- 308, 0, 0, 0, 299, 304, 302, 305, 0, 0,
- 303, 304, 0, 300, 0, 301, 258, 307, 0, 258,
- 306, 0, 311, 312, 0, 258, 313, 314, 0, 0,
- 315, 0, 0, 0, 316, 317, 151, 150, 0, 0,
- 0, 283, 0, 0, 0, 298, 271, 264, 0, 272,
- 268, 0, 270, 260, 0, 261, 265, 81, 0, 0,
- 85, 71, 0, 73, 83, 0, 74, 84, 86, 75,
- 82, 72, 0, 78, 155, 153, 157, 154, 152, 156,
- 2, 5, 0, 7, 6, 0, 1, 79, 56, 57,
+ 0, 0, 0, 21, 0, 176, 243, 207, 215, 211,
+ 155, 227, 203, 3, 140, 73, 156, 219, 223, 144,
+ 173, 154, 159, 139, 193, 180, 0, 80, 81, 76,
+ 344, 69, 346, 0, 0, 0, 0, 78, 0, 0,
+ 74, 77, 0, 0, 70, 71, 79, 72, 0, 75,
+ 0, 0, 169, 0, 0, 156, 175, 158, 157, 0,
+ 0, 0, 171, 172, 170, 174, 0, 204, 0, 0,
+ 0, 0, 194, 0, 0, 0, 0, 0, 0, 184,
+ 0, 0, 0, 178, 179, 177, 182, 186, 185, 183,
+ 181, 196, 195, 197, 0, 212, 0, 208, 0, 0,
+ 150, 137, 149, 138, 106, 107, 108, 133, 109, 134,
+ 110, 111, 112, 113, 114, 115, 116, 117, 118, 119,
+ 120, 121, 122, 135, 123, 124, 125, 126, 127, 128,
+ 129, 130, 131, 132, 136, 0, 0, 148, 244, 151,
+ 0, 152, 0, 153, 147, 0, 240, 233, 231, 238,
+ 239, 237, 236, 242, 235, 234, 232, 241, 228, 0,
+ 216, 0, 0, 220, 0, 0, 224, 0, 0, 150,
+ 142, 0, 141, 0, 146, 160, 0, 345, 335, 336,
+ 0, 333, 0, 334, 0, 337, 251, 258, 257, 265,
+ 253, 0, 254, 338, 0, 343, 255, 256, 261, 259,
+ 340, 339, 342, 262, 0, 273, 0, 0, 0, 0,
+ 344, 69, 0, 346, 70, 245, 287, 71, 0, 0,
+ 0, 274, 0, 0, 263, 264, 0, 252, 260, 288,
+ 289, 332, 341, 0, 303, 304, 305, 306, 0, 299,
+ 300, 301, 302, 329, 330, 0, 0, 0, 0, 0,
+ 292, 293, 249, 247, 209, 217, 213, 229, 205, 250,
+ 0, 156, 221, 225, 198, 187, 0, 0, 206, 0,
+ 0, 0, 0, 199, 0, 0, 0, 0, 0, 191,
+ 189, 192, 190, 188, 201, 200, 202, 0, 214, 0,
+ 210, 0, 248, 156, 0, 230, 245, 246, 0, 245,
+ 0, 0, 295, 0, 0, 0, 297, 0, 218, 0,
+ 0, 222, 0, 0, 226, 285, 0, 277, 286, 280,
+ 0, 284, 0, 245, 278, 0, 245, 0, 0, 296,
+ 0, 0, 0, 298, 345, 335, 0, 0, 337, 0,
+ 331, 0, 321, 0, 0, 0, 291, 0, 290, 0,
+ 347, 0, 105, 267, 270, 0, 106, 273, 109, 134,
+ 111, 112, 76, 116, 117, 69, 118, 121, 74, 77,
+ 70, 245, 71, 79, 124, 72, 126, 75, 128, 129,
+ 274, 131, 132, 136, 0, 98, 0, 0, 100, 104,
+ 102, 88, 101, 103, 0, 99, 87, 268, 266, 144,
+ 145, 150, 0, 143, 0, 320, 0, 307, 308, 0,
+ 319, 0, 0, 0, 310, 315, 313, 316, 0, 0,
+ 314, 315, 0, 311, 0, 312, 269, 318, 0, 269,
+ 317, 0, 322, 323, 0, 269, 324, 325, 0, 0,
+ 326, 0, 0, 0, 327, 328, 162, 161, 0, 0,
+ 0, 294, 0, 0, 0, 309, 282, 275, 0, 283,
+ 279, 0, 281, 271, 0, 272, 276, 92, 0, 0,
+ 96, 82, 0, 84, 94, 0, 85, 95, 97, 86,
+ 93, 83, 0, 89, 166, 164, 168, 165, 163, 167,
+ 2, 5, 0, 7, 6, 21, 1, 90, 67, 68,
0, 0, 0, 9, 10, 0, 11, 12, 0, 13,
- 0, 0, 14, 0, 19, 20, 80, 0, 15, 16,
- 0, 17, 18, 8, 22, 0, 4, 0, 29, 54,
- 0, 0, 59, 27, 60, 30, 23, 0, 0, 55,
- 0, 39, 38, 37, 0, 0, 48, 0, 49, 0,
- 52, 53, 0, 0, 0, 46, 0, 47, 0, 50,
- 51, 45, 40, 41, 0, 0, 0, 0, 43, 44,
- 42, 28, 24, 0, 33, 34, 0, 35, 36, 258,
- 0, 32, 95, 262, 98, 123, 100, 101, 65, 105,
- 106, 58, 107, 110, 63, 66, 59, 234, 60, 68,
- 113, 61, 115, 64, 117, 118, 263, 120, 121, 125,
- 62, 0, 25, 0, 31, 26, 337};
+ 0, 0, 14, 0, 19, 20, 91, 0, 15, 16,
+ 0, 17, 18, 8, 23, 0, 0, 25, 24, 4,
+ 27, 28, 29, 0, 32, 31, 30, 22, 0, 21,
+ 40, 38, 0, 21, 65, 0, 0, 70, 71, 41,
+ 33, 0, 66, 0, 50, 49, 48, 0, 0, 59,
+ 0, 60, 0, 63, 64, 0, 0, 0, 57, 0,
+ 58, 0, 61, 62, 56, 51, 52, 0, 0, 0,
+ 0, 54, 55, 53, 0, 44, 45, 0, 46, 47,
+ 269, 0, 43, 106, 273, 109, 134, 111, 112, 76,
+ 116, 117, 69, 118, 121, 74, 77, 70, 245, 71,
+ 79, 124, 72, 126, 75, 128, 129, 274, 131, 132,
+ 136, 73, 0, 0, 35, 21, 42, 0, 37, 26,
+ 36, 39, 0, 34, 348};
const int QmlJSGrammar::goto_default [] = {
- 4, 496, 353, 191, 495, 526, 491, 494, 493, 15,
- 525, 535, 537, 536, 611, 528, 186, 190, 192, 196,
- 553, 564, 563, 195, 227, 23, 469, 468, 351, 350,
- 6, 349, 352, 102, 19, 14, 140, 21, 10, 139,
- 16, 22, 52, 20, 5, 25, 24, 264, 12, 258,
- 7, 254, 9, 256, 8, 255, 17, 262, 18, 263,
- 11, 257, 253, 294, 406, 259, 260, 197, 188, 187,
- 199, 228, 198, 203, 224, 225, 189, 355, 354, 226,
- 458, 457, 316, 317, 460, 319, 459, 318, 414, 418,
- 421, 417, 416, 436, 437, 180, 194, 176, 179, 193,
- 201, 200, 0};
+ 4, 496, 353, 191, 495, 529, 524, 494, 493, 15,
+ 538, 526, 549, 528, 527, 532, 352, 536, 543, 550,
+ 622, 540, 186, 190, 192, 196, 566, 577, 576, 195,
+ 227, 23, 469, 468, 351, 350, 6, 349, 102, 19,
+ 14, 140, 21, 10, 139, 16, 22, 52, 20, 5,
+ 25, 24, 264, 12, 258, 7, 254, 9, 256, 8,
+ 255, 17, 262, 18, 263, 11, 257, 253, 294, 406,
+ 259, 260, 197, 188, 187, 199, 228, 198, 203, 224,
+ 225, 189, 355, 354, 226, 458, 457, 316, 317, 460,
+ 319, 459, 318, 414, 418, 421, 417, 416, 436, 437,
+ 180, 194, 176, 179, 193, 201, 200, 0};
const int QmlJSGrammar::action_index [] = {
- 208, 808, 1863, 61, 100, 76, -95, 95, 59, 54,
- 261, -95, 405, 86, -95, -95, 641, 91, 67, 187,
- 200, -95, -95, -95, 446, 206, 808, -95, -95, -95,
- 188, -95, 1681, 1412, 808, 808, 808, -95, 724, 808,
- -95, -95, 808, 808, -95, -95, -95, -95, 808, -95,
- 808, 808, -95, 808, 808, 131, 212, -95, -95, 808,
- 808, 808, -95, -95, -95, 157, 808, 405, 808, 808,
- 808, 808, 471, 808, 808, 808, 808, 808, 808, 161,
- 808, 808, 808, 112, 119, 117, 154, 178, 173, 234,
- 233, 456, 549, 409, 808, 9, 808, 72, 1590, 808,
- 808, -95, -95, -95, -95, -95, -95, -95, -95, -95,
- -95, -95, -95, -95, -95, -95, -95, -95, -95, -95,
- -95, -95, -95, -95, -95, -95, -95, -95, -95, -95,
- -95, -95, -95, -95, -95, 139, 808, -95, -95, 66,
- 23, -95, 808, -95, -95, 808, -95, -95, -95, -95,
- -95, -95, -95, -95, -95, -95, -95, -95, -95, 808,
- 33, 808, 808, 69, 57, 808, -95, 1590, 808, 808,
- -95, 126, -95, 8, -95, -95, 29, -95, 186, 62,
- 60, -95, 207, -95, 36, 1954, -95, -95, -95, -95,
- -95, 205, -95, -95, 35, -95, -95, -95, -95, -95,
- -95, 1954, -95, -95, 386, -95, 398, 77, 1863, 50,
- 162, 78, 42, 2136, 73, 808, -95, 85, 48, 808,
- 56, -95, 43, 39, -95, -95, 328, -95, -95, -95,
- -95, -95, -95, 75, -95, -95, -95, -95, 84, -95,
- -95, -95, -95, -95, -95, 38, 55, 808, 102, 79,
- -95, -95, 892, -95, 175, 47, 34, -95, 324, 74,
- 16, 551, 65, 68, 477, 278, 328, 808, 292, 808,
- 808, 808, 808, 402, 808, 808, 808, 808, 808, 302,
- 306, 303, 282, 307, 385, 477, 477, 808, -2, 808,
- 71, 808, -95, 641, 808, -95, 808, 58, 63, 808,
- 51, 1863, -95, 808, 147, 1863, -95, 808, 14, 808,
- 808, 96, 92, 808, -95, 80, 105, 70, -95, -95,
- 808, -95, 255, 808, -95, -58, 808, -39, 1863, -95,
- 808, 120, 1863, -95, -20, 259, -47, -21, 1954, -36,
- -95, 1863, -95, 808, 101, 1863, 11, 1863, -95, 15,
- 3, -45, -95, -95, 1863, -54, 401, 2, 337, 116,
- 808, 1863, 0, -32, 318, -1, -28, 724, 81, -5,
- -95, 980, -95, 45, 19, 46, 808, 44, 17, 808,
- 41, 808, 13, -8, 808, -95, 1772, 49, -95, -95,
- -95, -95, -95, -95, 808, -95, -95, -95, -95, 272,
- -95, 808, -13, -95, 1863, -95, 64, -95, -95, 1863,
- -95, 808, 98, 4, -95, 25, -95, 31, 93, 808,
- -95, 40, 37, -95, -12, -95, 1863, -95, 123, 1863,
- -95, 288, -95, -95, 109, 1863, 20, -95, -4, 1,
- -95, 328, -14, 21, -95, -95, -95, -95, 808, 115,
- 1863, -95, 808, 125, 1863, -95, 12, -95, 185, -95,
- -95, 808, -95, -95, 252, -95, -95, -95, 97, 1154,
- -95, -95, 1067, -95, -95, 1241, -95, -95, -95, -95,
- -95, -95, 94, -95, -95, -95, -95, -95, -95, -95,
- -95, -95, 407, -95, -73, 376, -95, -95, -95, -95,
- 179, 321, 198, -95, -95, 110, -95, -95, 227, -95,
- 248, 228, -95, 89, -95, -95, -95, 219, -95, -95,
- 103, -95, -95, -95, -95, 127, -95, 475, -95, -95,
- -46, 168, 165, -95, -6, -95, -95, 500, 189, -95,
- 158, -95, -95, -95, 32, 176, -95, 808, -95, 262,
- -95, -95, 6, 10, 128, -95, 808, -95, 148, -95,
- -95, 5, 145, 30, -3, 213, 177, 216, -95, -95,
- -95, -95, -95, 1325, -95, -95, 327, -95, -95, 2045,
- 1499, -95, 345, 26, 330, 82, 808, 1863, 28, 22,
- 310, 52, 27, 584, 81, 53, -95, 980, -95, 24,
- -31, -7, 808, 7, -9, 808, 18, 808, -10, -19,
- -15, 111, -95, 334, -95, -95, -95,
+ 142, 814, 1973, 78, 97, 86, -96, 90, 73, 71,
+ 257, -96, 315, 92, -96, -96, 539, 93, 81, 277,
+ 242, -96, -96, -96, 453, 252, 814, -96, -96, -96,
+ 214, -96, 1789, 1076, 814, 814, 814, -96, 729, 814,
+ -96, -96, 814, 814, -96, -96, -96, -96, 814, -96,
+ 814, 814, -96, 814, 814, 109, 207, -96, -96, 814,
+ 814, 814, -96, -96, -96, 205, 814, 313, 814, 814,
+ 814, 814, 434, 814, 814, 814, 814, 814, 814, 184,
+ 814, 814, 814, 146, 149, 150, 189, 204, 328, 328,
+ 328, 552, 473, 463, 814, 40, 814, 87, 1605, 814,
+ 814, -96, -96, -96, -96, -96, -96, -96, -96, -96,
+ -96, -96, -96, -96, -96, -96, -96, -96, -96, -96,
+ -96, -96, -96, -96, -96, -96, -96, -96, -96, -96,
+ -96, -96, -96, -96, -96, 140, 814, -96, -96, 65,
+ 33, -96, 814, -96, -96, 814, -96, -96, -96, -96,
+ -96, -96, -96, -96, -96, -96, -96, -96, -96, 814,
+ 29, 814, 814, 63, 59, 814, -96, 1605, 814, 814,
+ -96, 96, -96, 15, -96, -96, 31, -96, 208, 60,
+ 20, -96, 249, -96, 49, 2065, -96, -96, -96, -96,
+ -96, 248, -96, -96, 44, -96, -96, -96, -96, -96,
+ -96, 2065, -96, -96, 377, -96, 387, 83, 1973, 58,
+ 234, 72, 66, 2249, 67, 814, -96, 69, 54, 814,
+ 53, -96, 51, 45, -96, -96, 283, -96, -96, -96,
+ -96, -96, -96, 104, -96, -96, -96, -96, 102, -96,
+ -96, -96, -96, -96, -96, 48, 47, 814, 117, 120,
+ -96, -96, 988, -96, 77, 57, 64, -96, 406, 76,
+ 61, 582, 176, 100, 479, 328, 269, 814, 311, 814,
+ 814, 814, 814, 397, 814, 814, 814, 814, 814, 328,
+ 328, 328, 328, 328, 345, 360, 341, 814, 39, 814,
+ 70, 814, -96, 645, 814, -96, 814, 62, 24, 814,
+ 12, 1973, -96, 814, 131, 1973, -96, 814, 68, 814,
+ 814, 176, 89, 814, -96, 75, 95, 38, -96, -96,
+ 814, -96, 273, 814, -96, 79, 814, 74, 1973, -96,
+ 814, 111, 1973, -96, -16, 279, -41, -12, 2065, -37,
+ -96, 1973, -96, 814, 119, 1973, 6, 1973, -96, 22,
+ 18, -32, -96, -96, 1973, -52, 352, -2, 394, 98,
+ 814, 1973, 82, -34, 308, -7, -30, 729, 2, 4,
+ -96, 903, -96, 0, -5, 27, 814, 42, 21, 814,
+ 46, 814, 16, 14, 814, -96, 1881, 52, -96, -96,
+ -96, -96, -96, -96, 814, -96, -96, -96, -96, 307,
+ -96, 814, -22, -96, 1973, -96, 107, -96, -96, 1973,
+ -96, 814, 125, 13, -96, 37, -96, 35, 88, 814,
+ -96, 34, 10, -96, -4, -96, 1973, -96, 103, 1973,
+ -96, 263, -96, -96, 108, 1973, -8, -96, 11, 25,
+ -96, 260, -36, -6, -96, -96, -96, -96, 814, 115,
+ 1973, -96, 814, 112, 1973, -96, 43, -96, 190, -96,
+ -96, 814, -96, -96, 194, -96, -96, -96, 99, 1164,
+ -96, -96, 1337, -96, -96, 1425, -96, -96, -96, -96,
+ -96, -96, 101, -96, -96, -96, -96, -96, -96, -96,
+ -96, -96, 408, -96, -54, -57, -96, -96, -96, -96,
+ 177, 332, 216, -96, -96, 132, -96, -96, 237, -96,
+ 221, 163, -96, 122, -96, -96, -96, 240, -96, -96,
+ 126, -96, -96, -96, -96, 1605, 343, -96, -86, -96,
+ -96, -96, -1, 1697, -96, -96, -96, -96, 159, 121,
+ -96, -96, 470, 118, -96, -38, 174, 170, 3, -96,
+ -96, 203, -96, 173, -96, -96, -96, 32, 151, -96,
+ 814, -96, 145, -96, -96, 5, 7, 223, -96, 814,
+ -96, 187, -96, -96, 19, 141, 17, -45, 230, 191,
+ 228, -96, -96, -96, 1249, -96, -96, 309, -96, -96,
+ 2157, 1513, -96, 338, 1, 369, 85, 814, 1973, 82,
+ 9, 285, 36, 8, 729, 30, 26, -96, 903, -96,
+ 50, 28, 56, 814, 55, 23, 814, 41, 814, -26,
+ -23, -29, 124, 454, -96, -73, -96, 374, -96, -96,
+ -96, -96, 460, -96, -96,
- -103, 37, 13, -103, -103, -103, -103, -103, -103, -103,
- -103, -103, -103, -103, -103, -103, -55, -103, -103, -103,
- -103, -103, -103, -103, -103, -103, 89, -103, -103, -103,
- 24, -103, -103, 6, 15, 92, 100, -103, 154, 66,
- -103, -103, 86, 143, -103, -103, -103, -103, 152, -103,
- 144, 140, -103, 134, 135, -103, -103, -103, -103, 161,
- 170, 176, -103, -103, -103, -103, 174, -103, 169, 153,
- 162, 167, -103, 128, 126, 112, 116, 119, 113, -103,
- 111, 104, 110, -103, -103, -103, -103, -103, -103, -103,
- -103, -103, -103, -103, 63, -103, 120, -103, 88, 77,
- 57, -103, -103, -103, -103, -103, -103, -103, -103, -103,
- -103, -103, -103, -103, -103, -103, -103, -103, -103, -103,
- -103, -103, -103, -103, -103, -103, -103, -103, -103, -103,
- -103, -103, -103, -103, -103, -103, 28, -103, -103, -103,
- -103, -103, 31, -103, -103, 36, -103, -103, -103, -103,
- -103, -103, -103, -103, -103, -103, -103, -103, -103, 157,
- -103, 125, -24, -103, -103, -14, -103, 210, 27, 160,
- -103, -103, -103, -103, -103, -103, -103, -103, 8, -103,
- -103, -103, -5, -103, -103, 74, -103, -103, -103, -103,
- -103, -103, -103, -103, -103, -103, -103, -103, -103, -103,
- -103, 94, -103, -103, 44, -103, 35, -103, 81, -103,
- 61, -103, -103, -103, -103, 75, -103, -103, -103, 4,
- -7, -103, -103, -103, -103, -103, 26, -103, -103, -103,
- -103, -103, -103, -103, -103, -103, -103, -103, -103, -103,
- -103, -103, -103, -103, -103, -103, -103, 68, -103, -103,
- -103, -103, 90, -103, -103, -103, -103, -103, -103, -103,
- -103, -103, -103, -103, -103, -103, 70, 220, -103, 208,
- 231, 230, 234, -103, 101, 82, 60, 76, 79, -103,
- -103, -103, -103, -103, -103, -103, -103, 211, -103, 194,
- -103, 192, -103, -103, 204, -103, 166, -103, -103, 197,
- -103, 23, -103, -1, -103, 9, -103, 180, -103, 181,
- 223, -103, -103, 227, -103, -103, -103, -103, -103, -103,
- 184, -103, 93, 98, -103, -103, 108, -103, 83, -103,
- 78, -103, 40, -103, -103, 109, -103, -103, 102, -103,
- -103, 41, -103, 43, -103, 52, -103, 62, -103, -103,
- -103, -103, -103, -103, 55, -103, 50, -103, 51, -103,
- 107, 49, -103, -103, 73, -103, -103, 154, -103, -103,
- -103, 64, -103, -103, -103, -103, 16, -103, 12, 147,
- -103, 103, -103, -103, -4, -103, 0, -103, -103, -103,
- -103, -103, -103, -103, 7, -103, -103, -103, -103, -103,
- -103, 187, -103, -103, 25, -103, -103, -103, -103, 71,
- -103, 65, -103, -103, -103, -103, -103, -44, -103, 46,
- -103, -34, -103, -103, -103, -103, -21, -103, -103, -45,
- -103, -103, -103, -103, -103, -103, -32, -103, -103, 53,
- -103, 56, -103, 47, -103, -103, -103, -103, 42, -103,
- 45, -103, 38, -103, 48, -103, -103, -103, -103, -103,
- -103, 22, -103, -103, 124, -103, -103, -103, -103, 59,
- -103, -103, 137, -103, -103, 54, -103, -103, -103, -103,
- -103, -103, -103, -103, -103, -103, -103, -103, -103, -103,
- -103, -103, 248, -103, -3, 114, -103, -103, -103, -103,
- -103, -103, 5, -103, -103, -103, -103, -103, -8, -103,
- 85, -103, -103, -103, -103, -103, -103, 11, -103, -103,
- -103, -103, -103, -103, -103, -103, -103, 342, -103, -103,
- -103, 29, -103, -103, -103, -103, -103, 273, -103, -103,
- 3, -103, -103, -103, -103, -103, -103, 18, -103, -103,
- -103, -103, -103, -103, -103, -103, 21, -103, -103, -103,
- -103, -103, 2, -103, -103, 20, 14, 30, -103, -103,
- -103, -103, -103, 284, -103, -103, -2, -103, -103, -103,
- 222, -103, -9, -103, -6, -103, 96, 10, -103, -103,
- 1, -103, -103, 80, -103, -103, -103, 72, -103, -103,
- -103, -103, 69, -103, 58, 67, -103, 97, -103, -103,
- -103, -103, -103, 84, -103, -103, -103};
+ -108, 7, 100, -6, -108, -108, -108, -108, -108, -108,
+ -108, -108, -108, -108, -108, -108, -40, -108, -108, -108,
+ -108, -108, -108, -108, -108, -108, 103, -108, -108, -108,
+ 32, -108, -108, 27, 37, 80, 79, -108, 89, 159,
+ -108, -108, 167, 162, -108, -108, -108, -108, 156, -108,
+ 163, 155, -108, 178, 173, -108, -108, -108, -108, 170,
+ 177, 180, -108, -108, -108, -108, 116, -108, 119, 112,
+ 137, 111, -108, 110, 108, 121, 145, 149, 148, -108,
+ 135, 132, 123, -108, -108, -108, -108, -108, -108, -108,
+ -108, -108, -108, -108, 130, -108, 128, -108, 143, 43,
+ 40, -108, -108, -108, -108, -108, -108, -108, -108, -108,
+ -108, -108, -108, -108, -108, -108, -108, -108, -108, -108,
+ -108, -108, -108, -108, -108, -108, -108, -108, -108, -108,
+ -108, -108, -108, -108, -108, -108, 53, -108, -108, -108,
+ -108, -108, 54, -108, -108, 55, -108, -108, -108, -108,
+ -108, -108, -108, -108, -108, -108, -108, -108, -108, 106,
+ -108, 131, -19, -108, -108, -29, -108, 231, 13, 175,
+ -108, -108, -108, -108, -108, -108, -108, -108, 30, -108,
+ -108, -108, 3, -108, -108, 18, -108, -108, -108, -108,
+ -108, -108, -108, -108, -108, -108, -108, -108, -108, -108,
+ -108, 91, -108, -108, 44, -108, 49, -108, 50, -108,
+ 57, -108, -108, -108, -108, 59, -108, -108, -108, 56,
+ 39, -108, -108, -108, -108, -108, 77, -108, -108, -108,
+ -108, -108, -108, -108, -108, -108, -108, -108, -108, -108,
+ -108, -108, -108, -108, -108, -108, -108, 24, -108, -108,
+ -108, -108, 85, -108, -108, -108, -108, -108, -108, -108,
+ -108, -108, -108, -108, -108, -108, 17, 206, -108, 240,
+ 232, 205, 209, -108, 96, 84, 93, 95, 87, -108,
+ -108, -108, -108, -108, -108, -108, -108, 236, -108, 217,
+ -108, 185, -108, -108, 233, -108, 136, -108, -108, 176,
+ -108, 0, -108, 8, -108, 41, -108, 184, -108, 187,
+ 203, -108, -108, 196, -108, -108, -108, -108, -108, -108,
+ 230, -108, 101, 98, -108, -108, 151, -108, 46, -108,
+ 52, -108, 65, -108, -108, 113, -108, -108, 90, -108,
+ -108, 62, -108, 66, -108, 63, -108, 42, -108, -108,
+ -108, -108, -108, -108, 81, -108, 68, -108, 70, -108,
+ 74, 83, -108, -108, 45, -108, -108, 78, -108, -108,
+ -108, 47, -108, -108, -108, -108, 10, -108, -21, 163,
+ -108, 61, -108, -108, -2, -108, -16, -108, -108, -108,
+ -108, -108, -108, -108, 21, -108, -108, -108, -108, -108,
+ -108, 82, -108, -108, 31, -108, -108, -108, -108, 4,
+ -108, 5, -108, -108, -108, -108, -108, -83, -108, 72,
+ -108, -13, -108, -108, -108, -108, -26, -108, -108, -22,
+ -108, -108, -108, -108, -108, -108, -11, -108, -108, -3,
+ -108, 73, -108, 58, -108, -108, -108, -108, 71, -108,
+ 69, -108, 67, -108, 76, -108, -108, -108, -108, -108,
+ -108, 36, -108, -108, 88, -108, -108, -108, -108, 51,
+ -108, -108, 75, -108, -108, 48, -108, -108, -108, -108,
+ -108, -108, -108, -108, -108, -108, -108, -108, -108, -108,
+ -108, -108, 104, -108, 60, -108, -108, -108, -108, -108,
+ -108, -108, 64, -108, -108, -108, -108, -108, 33, -108,
+ 6, -108, -108, -108, -108, -108, -108, 9, -108, -108,
+ -108, -108, -108, -108, -108, 169, 262, -108, 11, -108,
+ -108, -108, -108, 227, -108, -108, -108, -108, -108, 12,
+ -108, -108, 278, -8, -108, -108, -5, -108, -108, -108,
+ -108, -108, -108, -17, -108, -108, -108, -108, -108, -108,
+ 2, -108, -108, -108, -108, -108, -108, -108, -108, 35,
+ -108, -108, -108, -108, -108, 23, -108, -108, 26, 25,
+ 38, -108, -108, -108, 288, -108, -108, 16, -108, -108,
+ -108, 361, -108, 20, -108, 15, -108, 97, 28, -108,
+ -108, 22, -108, -108, 94, -108, -108, -108, 29, -108,
+ -108, -108, -108, 19, -108, 14, 163, -108, 102, -108,
+ -108, -108, -108, 219, -108, 34, -108, 86, -108, -108,
+ -108, -108, 286, -108, -108};
const int QmlJSGrammar::action_info [] = {
- -114, 398, -93, 326, 252, 411, -89, -103, 343, -122,
- 396, 386, 338, 337, -116, 492, 335, 452, -79, 340,
- 540, 328, 384, 561, 435, -119, 448, 347, 452, 461,
- 419, -92, 441, -122, 435, -103, 419, 415, 566, 554,
- 439, 562, 335, 425, 426, 419, 443, 403, -119, 448,
- 435, -116, -92, -114, 435, 411, 394, 569, 252, -89,
- -93, 545, 287, 343, 165, 178, 136, 307, 174, 185,
- 182, 159, 267, 66, 142, 452, 289, 296, 343, 448,
- 404, 94, 291, 144, 411, 341, 252, 96, -111, 435,
- 231, 247, 409, 159, 136, 287, 66, 320, 307, 313,
- 616, 330, 136, 422, 0, 472, 136, 94, 0, 136,
- 136, 301, 289, 322, 246, 438, 53, 161, 309, 613,
- 184, 162, 310, 136, 299, 408, 407, 54, 136, 439,
- 429, 136, 96, 136, 136, 556, 237, 236, 244, 243,
- 251, 250, 510, 244, 243, 242, 241, 136, 423, 492,
- 515, 514, 53, 473, 483, 136, 136, 53, 413, 53,
- 527, 345, 249, 54, 522, 521, 323, 614, 54, 59,
- 54, 507, 506, 57, 541, 450, 267, 244, 243, 80,
- 332, 81, 172, 547, 58, 454, 80, 541, 81, 557,
- 555, 31, 82, 464, 541, 137, 573, 31, 80, 82,
- 81, 0, 167, 80, 510, 81, 541, 305, 0, 560,
- 559, 82, 59, 136, 60, 31, 82, 31, 0, 543,
- 61, 168, 527, 169, 59, 0, 0, 31, 44, 45,
- 542, 80, 543, 81, 44, 45, 31, 548, 546, 543,
- 504, 503, 31, 542, 82, 31, 465, 463, 31, 0,
- 542, 543, 44, 45, 44, 45, 31, 60, 80, 80,
- 81, 81, 542, 61, 44, 45, 230, 229, 502, 60,
- 136, 82, 82, 44, 45, 61, 98, 31, 0, 44,
- 45, 31, 44, 45, 31, 44, 45, 167, 31, 519,
- 518, 0, 0, 44, 45, 99, 136, 100, 3, 2,
- 1, 0, 0, 80, 0, 81, 168, 80, 401, 81,
- 269, 270, 0, 0, 44, 45, 82, 517, 44, 45,
- 82, 44, 45, 551, 550, 44, 45, 80, 80, 81,
- 81, 80, 80, 81, 81, 136, 510, 271, 272, 31,
- 82, 82, 269, 270, 82, 82, -333, 31, 0, 433,
- 432, 0, 0, 0, -333, 0, 0, 31, 0, 31,
- 527, 0, 0, 31, 0, 0, 31, 0, 511, 271,
- 272, 0, 0, 0, 31, 0, 44, 45, 0, 0,
- 0, 0, 512, 509, 44, 45, 0, 0, 230, 229,
- 0, 240, 239, 499, 44, 45, 44, 45, 240, 239,
- 44, 45, 0, 44, 45, 31, 235, 234, 274, 275,
- 508, 44, 45, 0, 0, 31, 0, 276, 0, 498,
- 277, 0, 278, 68, 69, 274, 275, 31, 0, 0,
- 31, 0, 73, 74, 276, 499, 31, 277, 0, 278,
- 75, 76, 44, 45, 77, 0, 78, 235, 234, 0,
- 70, 71, 44, 45, 0, 0, 0, 0, 0, 240,
- 239, 498, 235, 234, 44, 45, 499, 44, 45, 73,
- 74, 0, 500, 44, 45, 0, 0, 75, 76, 73,
- 74, 77, 0, 78, 0, 530, 0, 75, 76, 0,
- 0, 77, 498, 78, 73, 74, 0, 531, 0, 0,
- 274, 275, 75, 76, 31, 0, 77, 0, 78, 276,
- 530, 0, 277, 0, 278, 0, 0, 0, 0, 0,
- 0, 0, 531, 0, 0, 0, 0, 0, 0, 31,
- 533, 0, 0, 0, 499, 0, 0, 0, 0, 0,
- 0, 532, 534, 0, 0, 0, 0, 0, 0, 221,
- 0, 0, 0, 0, 146, 571, 0, 0, 205, 499,
- 498, 0, 0, 0, 147, 0, 532, 534, 148, 0,
- 0, 0, 73, 74, 221, 0, 0, 149, 0, 150,
- 75, 76, 303, 205, 77, 498, 78, 0, 0, 0,
- 151, 0, 152, 57, 0, 0, 27, 28, 0, 0,
- 153, 0, 0, 154, 58, 0, 30, 0, 0, 155,
- 0, 0, 0, 31, 0, 156, 0, 32, 33, 0,
- 34, 0, 0, 0, 0, 0, 0, 38, 0, 0,
- 157, 41, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 146, 0, 0, 0, 0, 46,
- 44, 45, 0, 47, 147, 0, 0, 0, 148, 0,
- 0, 0, 0, 0, 40, 49, 29, 149, 0, 150,
- 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 151, 0, 152, 57, 0, 0, 0, 0, 0, 0,
- 153, 0, 0, 154, 58, 0, 0, 0, 0, 155,
- 0, 0, 0, 0, 0, 156, 0, 0, 0, 0,
+ -100, 525, 252, 398, -90, -133, 343, -103, -133, -122,
+ 448, -104, 439, 452, 525, 582, 533, 426, 340, 337,
+ 335, 338, 347, 396, 443, 579, 386, 435, 553, 384,
+ 525, 411, 574, -104, -125, 492, 567, -122, 403, 419,
+ 419, 335, 419, -100, 343, 252, 415, 441, -130, -127,
+ 452, 425, 448, -130, 435, 575, 435, -103, 435, 394,
+ 461, 558, -127, -125, 411, 159, 165, 178, 182, 330,
+ 136, 267, 301, 142, 404, 174, 409, 94, 267, 341,
+ 184, 452, 185, 247, 291, 299, 435, 448, 66, -114,
+ 411, 66, 320, 144, 252, 159, 313, 634, 422, 231,
+ 136, 0, 343, 322, 136, 287, 0, 472, 0, 136,
+ 429, 136, 0, 0, 438, 0, 287, 289, 96, 136,
+ 136, 94, 296, 136, 246, 136, 53, 136, 439, 0,
+ 0, 161, 625, 136, 328, 162, 0, 54, 0, 136,
+ 326, 0, 289, 423, 244, 243, 244, 243, 136, 96,
+ 309, 57, 172, 136, 310, 473, 323, 0, 560, 244,
+ 243, 483, 58, 242, 241, 237, 236, 492, 408, 407,
+ 554, 332, 454, 631, 510, 450, 541, 249, 307, 345,
+ 626, 251, 250, 515, 514, 413, 53, 522, 521, 53,
+ 53, 305, 539, 507, 506, 136, 137, 54, 464, 554,
+ 54, 54, 554, 31, 0, 525, 564, 563, 525, 80,
+ 584, 81, 561, 559, 80, 556, 81, 59, 510, 59,
+ 554, 0, 82, 31, 519, 518, 555, 82, 0, 80,
+ 569, 81, 0, 3, 2, 1, 539, 31, 504, 503,
+ 44, 45, 82, 31, 556, 31, 0, 556, 573, 572,
+ 31, 465, 463, 517, 59, 555, 136, 31, 555, 31,
+ 44, 45, 60, 31, 60, 556, 31, 502, 61, 31,
+ 61, 136, 98, 0, 44, 45, 555, 80, 31, 81,
+ 44, 45, 44, 45, 570, 568, 0, 44, 45, 31,
+ 82, 99, 167, 100, 44, 45, 44, 45, 31, 60,
+ 44, 45, 31, 44, 45, 61, 44, 45, 31, 230,
+ 229, 168, 31, 169, 31, 44, 45, 136, 0, 0,
+ 0, -344, 167, 0, 433, 432, 44, 45, 0, 269,
+ 270, 68, 69, 68, 69, 44, 45, 31, 0, 44,
+ 45, 168, 539, 401, -344, 44, 45, 510, 0, 44,
+ 45, 44, 45, 80, 0, 81, 271, 272, 70, 71,
+ 70, 71, 0, 0, 274, 275, 82, 31, 274, 275,
+ 230, 229, 31, 276, 44, 45, 277, 276, 278, 511,
+ 277, 31, 278, 274, 275, 0, 0, 0, 0, 0,
+ 0, 0, 276, 512, 509, 277, 0, 278, 31, 235,
+ 234, 0, 499, 31, 44, 45, 31, 0, 0, 44,
+ 45, 0, 0, 235, 234, 0, 31, 0, 44, 45,
+ 274, 275, 508, 31, 269, 270, 0, 0, 498, 276,
+ 240, 239, 277, 499, 278, 44, 45, 31, 235, 234,
+ 44, 45, 0, 44, 45, 0, 0, 0, 240, 239,
+ 0, 271, 272, 44, 45, 240, 239, 73, 74, 498,
+ 44, 45, 0, 0, 0, 75, 76, 499, 0, 77,
+ 545, 78, 0, 500, 44, 45, 73, 74, 0, 0,
+ 545, 0, 546, 31, 75, 76, 73, 74, 77, 31,
+ 78, 0, 546, 498, 75, 76, 73, 74, 77, 31,
+ 78, 0, 274, 275, 75, 76, 0, 0, 77, 0,
+ 78, 276, 0, 499, 277, 0, 278, 0, 0, 499,
+ 44, 45, 0, 0, 0, 0, 547, 548, 0, 499,
+ 0, 0, 0, 0, 221, 0, 547, 548, 0, 498,
+ 0, 525, 146, 205, 221, 498, 0, 0, 0, 0,
+ 0, 0, 147, 205, 0, 498, 148, 0, 0, 0,
+ 0, 0, 0, 0, 0, 149, 0, 150, 0, 0,
+ 0, 0, 0, 0, 0, 73, 74, 0, 151, 0,
+ 152, 57, 0, 75, 76, 146, 0, 77, 153, 78,
+ 0, 154, 58, 0, 0, 147, 0, 155, 0, 148,
+ 0, 0, 0, 156, 0, 0, 0, 0, 149, 0,
+ 150, 0, 0, 303, 0, 0, 0, 0, 157, 0,
+ 0, 151, 0, 152, 57, 0, 0, 0, 0, 0,
+ 0, 153, 0, 0, 154, 58, 0, 0, 0, 0,
+ 155, 0, 0, 0, 0, 0, 156, 0, 146, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 147, 0,
+ 0, 157, 148, 0, 0, 0, 0, 0, 0, 0,
+ 0, 149, 0, 150, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 151, 0, 152, 57, 0, 0,
+ 0, 0, 0, 0, 153, 0, 0, 154, 58, 0,
+ 0, 0, 0, 155, 0, 0, 0, 0, 0, 156,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 157, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 27, 28, 0, 0,
+ 0, 0, 0, 0, 157, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 27, 28, 0, 0, 0, 0, 0, 0, 0,
+ 0, 30, 0, 0, 0, 0, 0, 0, 31, 0,
+ 0, 0, 32, 33, 0, 34, 0, 0, 0, 0,
+ 0, 0, 38, 0, 0, 0, 41, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 46, 44, 45, 0, 47, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 40,
+ 49, 29, 0, 0, 0, 37, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 26, 27, 28, 0, 0,
0, 0, 0, 0, 0, 0, 30, 0, 0, 0,
0, 0, 0, 31, 0, 0, 0, 32, 33, 0,
- 34, 0, 0, 0, 0, 0, 0, 38, 0, 0,
- 0, 41, 0, 0, 0, 0, 0, 0, 0, 0,
+ 34, 0, 0, 0, 35, 0, 36, 38, 39, 0,
+ 0, 41, 0, 0, 0, 42, 0, 43, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 46,
- 44, 45, 0, 47, 0, 0, 0, 0, 0, 0,
+ 44, 45, 0, 47, 0, 48, 0, 50, 0, 51,
0, 0, 0, 0, 40, 49, 29, 0, 0, 0,
- 37, 0, 0, 0, 0, 0, 0, 0, 0, 26,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ -123, 0, 0, 0, 26, 27, 28, 0, 0, 0,
+ 0, 0, 0, 0, 0, 30, 0, 0, 0, 0,
+ 0, 0, 31, 0, 0, 0, 32, 33, 0, 34,
+ 0, 0, 0, 35, 0, 36, 38, 39, 0, 0,
+ 41, 0, 0, 0, 42, 0, 43, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 46, 44,
+ 45, 0, 47, 0, 48, 0, 50, 0, 51, 0,
+ 0, 0, 0, 40, 49, 29, 0, 0, 0, 37,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 26,
27, 28, 0, 0, 0, 0, 0, 0, 0, 0,
30, 0, 0, 0, 0, 0, 0, 31, 0, 0,
0, 32, 33, 0, 34, 0, 0, 0, 35, 0,
36, 38, 39, 0, 0, 41, 0, 0, 0, 42,
0, 43, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 46, 44, 45, 0, 47, 0, 48,
- 0, 50, 0, 51, 0, 0, 0, 0, 40, 49,
+ 0, 50, 266, 51, 0, 0, 0, 0, 40, 49,
29, 0, 0, 0, 37, 0, 0, 0, 0, 0,
- 0, 0, 0, 26, 27, 28, 0, 0, 0, 0,
- 0, 0, 0, 0, 30, 0, 0, 0, 0, 0,
- 0, 31, 0, 0, 0, 32, 33, 0, 34, 0,
- 0, 0, 35, 0, 36, 38, 39, 0, 0, 41,
- 0, 0, 0, 42, 0, 43, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 46, 44, 45,
- 0, 47, 0, 48, 0, 50, 266, 51, 0, 0,
- 0, 0, 40, 49, 29, 0, 0, 0, 37, 0,
- 0, 0, 0, 0, 0, 0, 0, -112, 0, 0,
- 0, 26, 27, 28, 0, 0, 0, 0, 0, 0,
- 0, 0, 30, 0, 0, 0, 0, 0, 0, 31,
- 0, 0, 0, 32, 33, 0, 34, 0, 0, 0,
- 35, 0, 36, 38, 39, 0, 0, 41, 0, 0,
- 0, 42, 0, 43, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 46, 44, 45, 0, 47,
- 0, 48, 0, 50, 0, 51, 0, 0, 0, 0,
- 40, 49, 29, 0, 0, 0, 37, 0, 0, 0,
+ 0, 0, 0, 0, 470, 0, 0, 26, 27, 28,
+ 0, 0, 0, 0, 0, 0, 0, 0, 30, 0,
+ 0, 0, 0, 0, 0, 31, 0, 0, 0, 32,
+ 33, 0, 34, 0, 0, 0, 35, 0, 36, 38,
+ 39, 0, 0, 41, 0, 0, 0, 42, 0, 43,
+ 0, 0, 471, 0, 0, 0, 0, 0, 0, 0,
+ 0, 46, 44, 45, 0, 47, 0, 48, 0, 50,
+ 0, 51, 0, 0, 0, 0, 40, 49, 29, 0,
+ 0, 0, 37, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 478, 0, 0, 26, 27, 28, 0, 0,
+ 0, 0, 0, 0, 0, 0, 30, 0, 0, 0,
+ 0, 0, 0, 31, 0, 0, 0, 32, 33, 0,
+ 34, 0, 0, 0, 35, 0, 36, 38, 39, 0,
+ 0, 41, 0, 0, 0, 42, 0, 43, 0, 0,
+ 481, 0, 0, 0, 0, 0, 0, 0, 0, 46,
+ 44, 45, 0, 47, 0, 48, 0, 50, 0, 51,
+ 0, 0, 0, 0, 40, 49, 29, 0, 0, 0,
+ 37, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 26, 27, 28, 0, 0, 0, 0, 0, 0, 0,
+ 0, 30, 0, 0, 0, 0, 0, 0, 31, 212,
+ 0, 0, 590, 591, 0, 34, 0, 0, 0, 35,
+ 0, 36, 38, 39, 0, 0, 41, 0, 0, 0,
+ 42, 0, 43, 0, 0, 0, 0, 0, 0, 0,
+ 216, 0, 0, 0, 46, 44, 45, 0, 47, 0,
+ 48, 0, 50, 0, 51, 0, 0, 0, 0, 40,
+ 49, 29, 0, 0, 0, 37, 0, 0, 0, 0,
0, 0, 0, 0, 0, 470, 0, 0, 26, 27,
28, 0, 0, 0, 0, 0, 0, 0, 0, 30,
0, 0, 0, 0, 0, 0, 31, 0, 0, 0,
@@ -447,76 +482,60 @@ const int QmlJSGrammar::action_info [] = {
0, 0, 46, 44, 45, 0, 47, 0, 48, 0,
50, 0, 51, 0, 0, 0, 0, 40, 49, 29,
0, 0, 0, 37, 0, 0, 0, 0, 0, 0,
- 0, 0, 478, 0, 0, 26, 27, 28, 0, 0,
- 0, 0, 0, 0, 0, 0, 30, 0, 0, 0,
- 0, 0, 0, 31, 0, 0, 0, 32, 33, 0,
- 34, 0, 0, 0, 35, 0, 36, 38, 39, 0,
- 0, 41, 0, 0, 0, 42, 0, 43, 0, 0,
- 481, 0, 0, 0, 0, 0, 0, 0, 0, 46,
- 44, 45, 0, 47, 0, 48, 0, 50, 0, 51,
- 0, 0, 0, 0, 40, 49, 29, 0, 0, 0,
- 37, 0, 0, 0, 0, 0, 0, 0, 0, 478,
- 0, 0, 26, 27, 28, 0, 0, 0, 0, 0,
- 0, 0, 0, 30, 0, 0, 0, 0, 0, 0,
- 31, 0, 0, 0, 32, 33, 0, 34, 0, 0,
- 0, 35, 0, 36, 38, 39, 0, 0, 41, 0,
- 0, 0, 42, 0, 43, 0, 0, 479, 0, 0,
- 0, 0, 0, 0, 0, 0, 46, 44, 45, 0,
- 47, 0, 48, 0, 50, 0, 51, 0, 0, 0,
- 0, 40, 49, 29, 0, 0, 0, 37, 0, 0,
- 0, 0, 0, 0, 0, 0, 26, 27, 28, 0,
+ 0, 0, 0, 478, 0, 0, 26, 27, 28, 0,
0, 0, 0, 0, 0, 0, 0, 30, 0, 0,
- 0, 0, 0, 0, 31, 212, 0, 0, 579, 580,
+ 0, 0, 0, 0, 31, 0, 0, 0, 32, 33,
0, 34, 0, 0, 0, 35, 0, 36, 38, 39,
0, 0, 41, 0, 0, 0, 42, 0, 43, 0,
- 0, 0, 0, 0, 0, 0, 216, 0, 0, 0,
+ 0, 479, 0, 0, 0, 0, 0, 0, 0, 0,
46, 44, 45, 0, 47, 0, 48, 0, 50, 0,
51, 0, 0, 0, 0, 40, 49, 29, 0, 0,
0, 37, 0, 0, 0, 0, 0, 0, 0, 0,
- 470, 0, 0, 26, 27, 28, 0, 0, 0, 0,
- 0, 0, 0, 0, 30, 0, 0, 0, 0, 0,
- 0, 31, 0, 0, 0, 32, 33, 0, 34, 0,
- 0, 0, 35, 0, 36, 38, 39, 0, 0, 41,
- 0, 0, 0, 42, 0, 43, 0, 0, 471, 0,
- 0, 0, 0, 0, 0, 0, 0, 46, 44, 45,
- 0, 47, 0, 48, 0, 50, 0, 51, 0, 0,
- 0, 0, 40, 49, 29, 0, 0, 0, 37, 0,
- 0, 0, 0, 0, 0, 0, 0, 470, 0, 0,
- 26, 27, 28, 0, 0, 0, 0, 0, 0, 0,
- 0, 30, 0, 0, 0, 0, 0, 0, 31, 0,
- 0, 0, 32, 33, 0, 34, 0, 0, 0, 35,
- 0, 36, 38, 39, 0, 0, 41, 0, 0, 0,
- 42, 0, 43, 0, 0, 471, 0, 0, 499, 0,
- 0, 0, 0, 0, 46, 44, 45, 0, 47, 0,
- 48, 0, 50, 0, 51, 0, 0, 0, 0, 40,
- 49, 29, 0, 0, 498, 37, 0, 0, 0, 0,
- 0, 0, 0, 0, 104, 105, 106, 0, 0, 108,
- 110, 111, 0, 0, 112, 0, 113, 0, 0, 0,
- 115, 116, 117, 0, 0, 0, 0, 0, 0, 31,
- 118, 119, 120, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 121, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 124,
- 0, 0, 0, 0, 0, 0, 44, 45, 125, 126,
- 127, 0, 129, 130, 131, 132, 133, 134, 0, 0,
- 122, 128, 114, 107, 109, 123, 0, 0, 0, 0,
+ 0, 470, 0, 0, 26, 27, 28, 0, 0, 0,
+ 0, 0, 0, 0, 0, 30, 0, 0, 0, 0,
+ 0, 0, 31, 0, 0, 0, 32, 33, 0, 34,
+ 0, 0, 0, 35, 0, 36, 38, 39, 0, 0,
+ 41, 0, 0, 0, 42, 0, 43, 0, 0, 471,
+ 0, 0, 499, 0, 0, 0, 0, 0, 46, 44,
+ 45, 0, 47, 0, 48, 0, 50, 0, 51, 0,
+ 0, 0, 0, 40, 49, 29, 0, 0, 498, 37,
+ 525, 0, 0, 0, 0, 0, 0, 0, 0, 104,
+ 105, 106, 0, 0, 108, 110, 111, 0, 0, 112,
+ 0, 113, 0, 0, 0, 115, 116, 117, 0, 0,
+ 0, 0, 0, 0, 31, 118, 119, 120, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 121, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 124, 0, 0, 0, 0, 0,
+ 0, 44, 45, 125, 126, 127, 0, 129, 130, 131,
+ 132, 133, 134, 0, 0, 122, 128, 114, 107, 109,
+ 123, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 104, 105, 106, 0, 0, 108, 110, 111, 0,
+ 0, 112, 0, 113, 0, 0, 0, 115, 116, 117,
+ 0, 0, 0, 0, 0, 0, 31, 118, 119, 120,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 121, 0, 0, 0, 534, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 124, 0, 0, 0,
+ 0, 0, 0, 44, 45, 125, 126, 127, 0, 129,
+ 130, 131, 132, 133, 134, 0, 0, 122, 128, 114,
+ 107, 109, 123, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 104, 105, 106, 0, 0, 108, 110,
+ 111, 0, 0, 112, 0, 113, 0, 0, 0, 115,
+ 116, 117, 0, 0, 0, 0, 0, 0, 388, 118,
+ 119, 120, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 121, 0, 0, 0, 389, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 124, 0,
+ 0, 0, 0, 0, 393, 390, 392, 125, 126, 127,
+ 0, 129, 130, 131, 132, 133, 134, 0, 0, 122,
+ 128, 114, 107, 109, 123, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 104, 105, 106, 0, 0,
108, 110, 111, 0, 0, 112, 0, 113, 0, 0,
0, 115, 116, 117, 0, 0, 0, 0, 0, 0,
388, 118, 119, 120, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 121, 0, 0, 0, 389, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 391, 0, 0, 0,
124, 0, 0, 0, 0, 0, 393, 390, 392, 125,
126, 127, 0, 129, 130, 131, 132, 133, 134, 0,
0, 122, 128, 114, 107, 109, 123, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 104, 105, 106, 0,
- 0, 108, 110, 111, 0, 0, 112, 0, 113, 0,
- 0, 0, 115, 116, 117, 0, 0, 0, 0, 0,
- 0, 388, 118, 119, 120, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 121, 0, 0, 0, 389,
- 0, 0, 0, 0, 0, 0, 0, 391, 0, 0,
- 0, 124, 0, 0, 0, 0, 0, 393, 390, 392,
- 125, 126, 127, 0, 129, 130, 131, 132, 133, 134,
- 0, 0, 122, 128, 114, 107, 109, 123, 0, 0,
0, 0, 0, 0, 0, 0, 0, 204, 0, 0,
0, 0, 206, 0, 26, 27, 28, 208, 0, 0,
0, 0, 0, 0, 209, 30, 0, 0, 0, 0,
@@ -526,190 +545,219 @@ const int QmlJSGrammar::action_info [] = {
0, 0, 215, 0, 216, 0, 0, 0, 46, 214,
217, 218, 47, 219, 48, 220, 50, 221, 51, 222,
223, 0, 0, 40, 49, 29, 205, 207, 0, 37,
- 0, 0, 0, 0, 0, 0, 0, 0, 204, 0,
- 0, 0, 0, 206, 0, 26, 27, 28, 208, 0,
- 0, 0, 0, 0, 0, 209, 210, 0, 0, 0,
- 0, 0, 0, 211, 212, 0, 0, 213, 33, 0,
- 34, 0, 0, 0, 35, 0, 36, 38, 39, 0,
- 0, 41, 0, 0, 0, 42, 0, 43, 0, 0,
- 0, 0, 0, 215, 0, 216, 0, 0, 0, 46,
- 214, 217, 218, 47, 219, 48, 220, 50, 221, 51,
- 222, 223, 0, 0, 40, 49, 29, 205, 207, 0,
- 37, 0, 0, 0, 0, 0, 0, 0, 0, 582,
- 105, 106, 0, 0, 584, 110, 586, 27, 28, 587,
- 0, 113, 0, 0, 0, 115, 589, 590, 0, 0,
- 0, 0, 0, 0, 591, 592, 119, 120, 213, 33,
- 0, 34, 0, 0, 0, 35, 0, 36, 593, 39,
- 0, 0, 595, 0, 0, 0, 42, 0, 43, 0,
- 0, 0, 0, 0, 597, 0, 216, 0, 0, 0,
- 599, 596, 598, 600, 601, 602, 48, 604, 605, 606,
- 607, 608, 609, 0, 0, 594, 603, 588, 583, 585,
- 123, 37, 0, 0, 0, 0, 0, 0, 0, 0,
- 356, 105, 106, 0, 0, 358, 110, 360, 27, 28,
- 361, 0, 113, 0, 0, 0, 115, 363, 364, 0,
- 0, 0, 0, 0, 0, 365, 366, 119, 120, 213,
- 33, 0, 34, 0, 0, 0, 35, 0, 36, 367,
- 39, 0, 0, 369, 0, 0, 0, 42, 0, 43,
- 0, -258, 0, 0, 0, 371, 0, 216, 0, 0,
- 0, 373, 370, 372, 374, 375, 376, 48, 378, 379,
- 380, 381, 382, 383, 0, 0, 368, 377, 362, 357,
- 359, 123, 37, 0, 0, 0, 0, 0, 0, 0,
- 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 204,
+ 0, 0, 0, 0, 206, 0, 26, 27, 28, 208,
+ 0, 0, 0, 0, 0, 0, 209, 210, 0, 0,
+ 0, 0, 0, 0, 211, 212, 0, 0, 213, 33,
+ 0, 34, 0, 0, 0, 35, 0, 36, 38, 39,
+ 0, 0, 41, 0, 0, 0, 42, 0, 43, 0,
+ 0, 0, 0, 0, 215, 0, 216, 0, 0, 0,
+ 46, 214, 217, 218, 47, 219, 48, 220, 50, 221,
+ 51, 222, 223, 0, 0, 40, 49, 29, 205, 207,
+ 0, 37, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 593, 105, 106, 0, 0, 595, 110, 597, 27,
+ 28, 598, 0, 113, 0, 0, 0, 115, 600, 601,
+ 0, 0, 0, 0, 0, 0, 602, 603, 119, 120,
+ 213, 33, 0, 34, 0, 0, 0, 35, 0, 36,
+ 604, 39, 0, 0, 606, 0, 0, 0, 42, 0,
+ 43, 0, 0, 0, 0, 0, 608, 0, 216, 0,
+ 0, 0, 610, 607, 609, 611, 612, 613, 48, 615,
+ 616, 617, 618, 619, 620, 0, 0, 605, 614, 599,
+ 594, 596, 123, 37, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 356, 105, 106, 0, 0, 358, 110,
+ 360, 27, 28, 361, 0, 113, 0, 0, 0, 115,
+ 363, 364, 0, 0, 0, 0, 0, 0, 365, 366,
+ 119, 120, 213, 33, 0, 34, 0, 0, 0, 35,
+ 0, 36, 367, 39, 0, 0, 369, 0, 0, 0,
+ 42, 0, 43, 0, -269, 0, 0, 0, 371, 0,
+ 216, 0, 0, 0, 373, 370, 372, 374, 375, 376,
+ 48, 378, 379, 380, 381, 382, 383, 0, 0, 368,
+ 377, 362, 357, 359, 123, 37, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0,
- 233, 513, 304, 238, 183, 523, 164, 431, 145, 434,
- 177, 306, 245, 581, 505, 490, 166, 181, 482, 431,
- 520, 549, 565, 544, 558, 302, 385, 405, 434, 570,
- 171, 387, 430, 177, 567, 456, 467, 395, 552, 568,
- 13, 453, 333, 342, 238, 449, 344, 451, 420, 428,
- 455, 245, 462, 233, 346, 424, 427, 397, 138, 233,
- 238, 143, 440, 444, 348, 442, 158, 297, 412, 445,
- 334, 248, 431, 410, 434, 297, 202, 0, 297, 315,
- 135, 331, 177, 245, 477, 329, 0, 141, 0, 480,
- 0, 0, 0, 497, 516, 615, 202, 101, 0, 0,
- 55, 297, 315, 55, 202, 281, 55, 55, 486, 446,
- 0, 297, 0, 0, 399, 95, 55, 400, 181, 55,
- 103, 282, 55, 497, 283, 524, 55, 280, 487, 55,
- 261, 175, 55, 456, 484, 265, 55, 55, 175, 447,
- 55, 55, 485, 55, 55, 447, 279, 55, 84, 175,
- 55, 55, 55, 55, 85, 83, 55, 87, 90, 55,
- 55, 88, 325, 475, 89, 55, 55, 474, 55, 297,
- 97, 86, 327, 79, 55, 55, 324, 56, 65, 0,
- 55, 163, 447, 55, 55, 488, 446, 55, 399, 446,
- 141, 400, 55, 55, 489, 232, 173, 55, 339, 91,
- 297, 55, 55, 62, 336, 466, 0, 55, 92, 55,
- 55, 160, 63, 93, 55, 72, 55, 141, 64, 101,
- 55, 55, 67, 402, 293, 265, 265, 0, 0, 265,
- 298, 610, 293, 612, 55, 308, 0, 265, 311, 265,
- 0, 0, 103, 170, 293, 290, 321, 0, 55, 265,
- 0, 55, 467, 265, 292, 273, 265, 497, 501, 0,
- 55, 300, 0, 293, 288, 265, 295, 293, 265, 268,
- 55, 55, 265, 0, 55, 265, 265, 285, 284, 265,
- 0, 286, 497, 538, 0, 312, 572, 576, 0, 314,
- 0, 0, 0, 0, 0, 0, 529, 539, 0, 0,
- 574, 575, 577, 578, 0, 0, 0, 0, 0, 0,
+ 491, 434, 302, 632, 565, 562, 410, 166, 412, 557,
+ 13, 304, 183, 431, 420, 516, 171, 164, 520, 445,
+ 202, 387, 431, 542, 238, 629, 315, 248, 145, 233,
+ 245, 177, 297, 405, 385, 583, 434, 592, 571, 181,
+ 482, 177, 513, 306, 348, 627, 135, 581, 329, 578,
+ 297, 580, 245, 233, 177, 331, 427, 395, 238, 431,
+ 430, 434, 297, 467, 342, 346, 334, 333, 523, 344,
+ 453, 451, 462, 505, 449, 428, 141, 233, 455, 238,
+ 444, 424, 442, 397, 477, 245, 456, 480, 440, 138,
+ 143, 158, 202, 202, 0, 497, 0, 456, 628, 0,
+ 0, 297, 490, 0, 0, 0, 55, 475, 447, 0,
+ 315, 474, 0, 497, 501, 0, 0, 399, 141, 55,
+ 400, 175, 181, 402, 55, 55, 485, 484, 399, 55,
+ 261, 400, 55, 399, 280, 265, 400, 283, 55, 297,
+ 55, 55, 55, 281, 175, 282, 279, 55, 55, 447,
+ 175, 55, 101, 55, 297, 55, 55, 55, 86, 103,
+ 79, 55, 93, 91, 55, 160, 55, 325, 55, 67,
+ 72, 87, 85, 55, 466, 55, 55, 55, 530, 297,
+ 55, 84, 55, 97, 83, 531, 0, 95, 92, 324,
+ 55, 339, 163, 55, 55, 88, 0, 232, 90, 89,
+ 55, 55, 447, 489, 55, 298, 486, 55, 55, 488,
+ 446, 141, 55, 336, 487, 55, 173, 62, 55, 0,
+ 327, 65, 55, 55, 63, 55, 56, 64, 497, 55,
+ 293, 630, 55, 629, 265, 265, 530, 265, 0, 0,
+ 101, 293, 535, 531, 308, 300, 265, 103, 293, 311,
+ 55, 55, 292, 265, 55, 265, 265, 285, 0, 265,
+ 268, 286, 55, 314, 0, 0, 0, 265, 0, 170,
+ 312, 497, 0, 290, 537, 293, 0, 55, 293, 0,
+ 265, 55, 265, 265, 284, 55, 265, 497, 551, 0,
+ 265, 587, 273, 0, 288, 497, 551, 321, 0, 0,
+ 295, 0, 0, 0, 0, 633, 0, 544, 552, 0,
+ 585, 586, 588, 589, 0, 544, 552, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 497, 538, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 529, 539, 0, 0, 0,
+ 621, 0, 0, 624, 623, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 467, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0};
+ 0, 0, 0, 0, 0, 0, 0, 0, 0};
const int QmlJSGrammar::action_check [] = {
- 7, 55, 7, 61, 36, 36, 7, 7, 36, 7,
- 55, 8, 33, 60, 7, 88, 36, 36, 33, 55,
- 66, 60, 7, 29, 33, 7, 36, 16, 36, 17,
- 5, 7, 36, 7, 33, 7, 5, 33, 8, 29,
- 20, 36, 36, 55, 7, 5, 60, 60, 7, 36,
- 33, 7, 7, 7, 33, 36, 7, 60, 36, 7,
- 7, 29, 48, 36, 7, 36, 8, 2, 60, 33,
- 8, 2, 1, 1, 8, 36, 78, 61, 36, 36,
- 7, 48, 8, 60, 36, 7, 36, 78, 7, 33,
- 55, 36, 7, 2, 8, 48, 1, 17, 2, 7,
- 0, 31, 8, 10, -1, 8, 8, 48, -1, 8,
- 8, 60, 78, 8, 76, 6, 40, 50, 50, 8,
- 60, 54, 54, 8, 61, 61, 62, 51, 8, 20,
- 7, 8, 78, 8, 8, 7, 61, 62, 61, 62,
- 61, 62, 15, 61, 62, 61, 62, 8, 55, 88,
- 61, 62, 40, 56, 60, 8, 8, 40, 60, 40,
- 33, 60, 60, 51, 61, 62, 61, 56, 51, 12,
- 51, 61, 62, 42, 29, 60, 1, 61, 62, 25,
- 60, 27, 56, 7, 53, 60, 25, 29, 27, 61,
- 62, 29, 38, 8, 29, 56, 7, 29, 25, 38,
- 27, -1, 15, 25, 15, 27, 29, 60, -1, 61,
- 62, 38, 12, 8, 57, 29, 38, 29, -1, 74,
- 63, 34, 33, 36, 12, -1, -1, 29, 66, 67,
- 85, 25, 74, 27, 66, 67, 29, 61, 62, 74,
- 61, 62, 29, 85, 38, 29, 61, 62, 29, -1,
- 85, 74, 66, 67, 66, 67, 29, 57, 25, 25,
- 27, 27, 85, 63, 66, 67, 61, 62, 89, 57,
- 8, 38, 38, 66, 67, 63, 15, 29, -1, 66,
- 67, 29, 66, 67, 29, 66, 67, 15, 29, 61,
- 62, -1, -1, 66, 67, 34, 8, 36, 90, 91,
- 92, -1, -1, 25, -1, 27, 34, 25, 36, 27,
- 18, 19, -1, -1, 66, 67, 38, 89, 66, 67,
- 38, 66, 67, 61, 62, 66, 67, 25, 25, 27,
- 27, 25, 25, 27, 27, 8, 15, 45, 46, 29,
- 38, 38, 18, 19, 38, 38, 36, 29, -1, 61,
- 62, -1, -1, -1, 36, -1, -1, 29, -1, 29,
- 33, -1, -1, 29, -1, -1, 29, -1, 47, 45,
- 46, -1, -1, -1, 29, -1, 66, 67, -1, -1,
- -1, -1, 61, 62, 66, 67, -1, -1, 61, 62,
- -1, 61, 62, 59, 66, 67, 66, 67, 61, 62,
- 66, 67, -1, 66, 67, 29, 61, 62, 23, 24,
- 89, 66, 67, -1, -1, 29, -1, 32, -1, 85,
- 35, -1, 37, 18, 19, 23, 24, 29, -1, -1,
- 29, -1, 23, 24, 32, 59, 29, 35, -1, 37,
- 31, 32, 66, 67, 35, -1, 37, 61, 62, -1,
- 45, 46, 66, 67, -1, -1, -1, -1, -1, 61,
- 62, 85, 61, 62, 66, 67, 59, 66, 67, 23,
- 24, -1, 65, 66, 67, -1, -1, 31, 32, 23,
- 24, 35, -1, 37, -1, 10, -1, 31, 32, -1,
- -1, 35, 85, 37, 23, 24, -1, 22, -1, -1,
- 23, 24, 31, 32, 29, -1, 35, -1, 37, 32,
- 10, -1, 35, -1, 37, -1, -1, -1, -1, -1,
- -1, -1, 22, -1, -1, -1, -1, -1, -1, 29,
- 55, -1, -1, -1, 59, -1, -1, -1, -1, -1,
- -1, 66, 67, -1, -1, -1, -1, -1, -1, 74,
- -1, -1, -1, -1, 3, 55, -1, -1, 83, 59,
- 85, -1, -1, -1, 13, -1, 66, 67, 17, -1,
- -1, -1, 23, 24, 74, -1, -1, 26, -1, 28,
- 31, 32, 31, 83, 35, 85, 37, -1, -1, -1,
- 39, -1, 41, 42, -1, -1, 12, 13, -1, -1,
- 49, -1, -1, 52, 53, -1, 22, -1, -1, 58,
- -1, -1, -1, 29, -1, 64, -1, 33, 34, -1,
- 36, -1, -1, -1, -1, -1, -1, 43, -1, -1,
- 79, 47, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, 3, -1, -1, -1, -1, 65,
- 66, 67, -1, 69, 13, -1, -1, -1, 17, -1,
- -1, -1, -1, -1, 80, 81, 82, 26, -1, 28,
- 86, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 39, -1, 41, 42, -1, -1, -1, -1, -1, -1,
- 49, -1, -1, 52, 53, -1, -1, -1, -1, 58,
- -1, -1, -1, -1, -1, 64, -1, -1, -1, -1,
+ 7, 87, 36, 55, 33, 7, 36, 7, 7, 7,
+ 36, 7, 20, 36, 87, 60, 17, 7, 55, 60,
+ 36, 33, 16, 55, 60, 8, 8, 33, 66, 7,
+ 87, 36, 29, 7, 7, 89, 29, 7, 60, 5,
+ 5, 36, 5, 7, 36, 36, 33, 36, 7, 7,
+ 36, 55, 36, 7, 33, 36, 33, 7, 33, 7,
+ 17, 29, 7, 7, 36, 2, 7, 36, 8, 31,
+ 8, 1, 60, 8, 7, 60, 7, 48, 1, 7,
+ 60, 36, 33, 36, 8, 61, 33, 36, 1, 7,
+ 36, 1, 17, 60, 36, 2, 7, 0, 10, 55,
+ 8, -1, 36, 8, 8, 48, -1, 8, -1, 8,
+ 7, 8, -1, -1, 6, -1, 48, 78, 78, 8,
+ 8, 48, 61, 8, 76, 8, 40, 8, 20, -1,
+ -1, 50, 8, 8, 60, 54, -1, 51, -1, 8,
+ 61, -1, 78, 55, 61, 62, 61, 62, 8, 78,
+ 50, 42, 56, 8, 54, 56, 61, -1, 7, 61,
+ 62, 60, 53, 61, 62, 61, 62, 89, 61, 62,
+ 29, 60, 60, 55, 15, 60, 55, 60, 2, 60,
+ 56, 61, 62, 61, 62, 60, 40, 61, 62, 40,
+ 40, 60, 33, 61, 62, 8, 56, 51, 8, 29,
+ 51, 51, 29, 29, -1, 87, 61, 62, 87, 25,
+ 7, 27, 61, 62, 25, 74, 27, 12, 15, 12,
+ 29, -1, 38, 29, 61, 62, 85, 38, -1, 25,
+ 7, 27, -1, 91, 92, 93, 33, 29, 61, 62,
+ 66, 67, 38, 29, 74, 29, -1, 74, 61, 62,
+ 29, 61, 62, 90, 12, 85, 8, 29, 85, 29,
+ 66, 67, 57, 29, 57, 74, 29, 90, 63, 29,
+ 63, 8, 15, -1, 66, 67, 85, 25, 29, 27,
+ 66, 67, 66, 67, 61, 62, -1, 66, 67, 29,
+ 38, 34, 15, 36, 66, 67, 66, 67, 29, 57,
+ 66, 67, 29, 66, 67, 63, 66, 67, 29, 61,
+ 62, 34, 29, 36, 29, 66, 67, 8, -1, -1,
+ -1, 36, 15, -1, 61, 62, 66, 67, -1, 18,
+ 19, 18, 19, 18, 19, 66, 67, 29, -1, 66,
+ 67, 34, 33, 36, 36, 66, 67, 15, -1, 66,
+ 67, 66, 67, 25, -1, 27, 45, 46, 45, 46,
+ 45, 46, -1, -1, 23, 24, 38, 29, 23, 24,
+ 61, 62, 29, 32, 66, 67, 35, 32, 37, 47,
+ 35, 29, 37, 23, 24, -1, -1, -1, -1, -1,
+ -1, -1, 32, 61, 62, 35, -1, 37, 29, 61,
+ 62, -1, 59, 29, 66, 67, 29, -1, -1, 66,
+ 67, -1, -1, 61, 62, -1, 29, -1, 66, 67,
+ 23, 24, 90, 29, 18, 19, -1, -1, 85, 32,
+ 61, 62, 35, 59, 37, 66, 67, 29, 61, 62,
+ 66, 67, -1, 66, 67, -1, -1, -1, 61, 62,
+ -1, 45, 46, 66, 67, 61, 62, 23, 24, 85,
+ 66, 67, -1, -1, -1, 31, 32, 59, -1, 35,
+ 10, 37, -1, 65, 66, 67, 23, 24, -1, -1,
+ 10, -1, 22, 29, 31, 32, 23, 24, 35, 29,
+ 37, -1, 22, 85, 31, 32, 23, 24, 35, 29,
+ 37, -1, 23, 24, 31, 32, -1, -1, 35, -1,
+ 37, 32, -1, 59, 35, -1, 37, -1, -1, 59,
+ 66, 67, -1, -1, -1, -1, 66, 67, -1, 59,
+ -1, -1, -1, -1, 74, -1, 66, 67, -1, 85,
+ -1, 87, 3, 83, 74, 85, -1, -1, -1, -1,
+ -1, -1, 13, 83, -1, 85, 17, -1, -1, -1,
+ -1, -1, -1, -1, -1, 26, -1, 28, -1, -1,
+ -1, -1, -1, -1, -1, 23, 24, -1, 39, -1,
+ 41, 42, -1, 31, 32, 3, -1, 35, 49, 37,
+ -1, 52, 53, -1, -1, 13, -1, 58, -1, 17,
+ -1, -1, -1, 64, -1, -1, -1, -1, 26, -1,
+ 28, -1, -1, 31, -1, -1, -1, -1, 79, -1,
+ -1, 39, -1, 41, 42, -1, -1, -1, -1, -1,
+ -1, 49, -1, -1, 52, 53, -1, -1, -1, -1,
+ 58, -1, -1, -1, -1, -1, 64, -1, 3, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 13, -1,
+ -1, 79, 17, -1, -1, -1, -1, -1, -1, -1,
+ -1, 26, -1, 28, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 39, -1, 41, 42, -1, -1,
+ -1, -1, -1, -1, 49, -1, -1, 52, 53, -1,
+ -1, -1, -1, 58, -1, -1, -1, -1, -1, 64,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 79, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 12, 13, -1, -1, -1, -1, -1, -1, -1,
+ -1, 22, -1, -1, -1, -1, -1, -1, 29, -1,
+ -1, -1, 33, 34, -1, 36, -1, -1, -1, -1,
+ -1, -1, 43, -1, -1, -1, 47, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- 79, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, 12, 13, -1, -1,
+ -1, -1, -1, -1, 65, 66, 67, -1, 69, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 80,
+ 81, 82, -1, -1, -1, 86, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, 11, 12, 13, -1, -1,
-1, -1, -1, -1, -1, -1, 22, -1, -1, -1,
-1, -1, -1, 29, -1, -1, -1, 33, 34, -1,
- 36, -1, -1, -1, -1, -1, -1, 43, -1, -1,
- -1, 47, -1, -1, -1, -1, -1, -1, -1, -1,
+ 36, -1, -1, -1, 40, -1, 42, 43, 44, -1,
+ -1, 47, -1, -1, -1, 51, -1, 53, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 65,
- 66, 67, -1, 69, -1, -1, -1, -1, -1, -1,
+ 66, 67, -1, 69, -1, 71, -1, 73, -1, 75,
-1, -1, -1, -1, 80, 81, 82, -1, -1, -1,
- 86, -1, -1, -1, -1, -1, -1, -1, -1, 11,
+ 86, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 7, -1, -1, -1, 11, 12, 13, -1, -1, -1,
+ -1, -1, -1, -1, -1, 22, -1, -1, -1, -1,
+ -1, -1, 29, -1, -1, -1, 33, 34, -1, 36,
+ -1, -1, -1, 40, -1, 42, 43, 44, -1, -1,
+ 47, -1, -1, -1, 51, -1, 53, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 65, 66,
+ 67, -1, 69, -1, 71, -1, 73, -1, 75, -1,
+ -1, -1, -1, 80, 81, 82, -1, -1, -1, 86,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 11,
12, 13, -1, -1, -1, -1, -1, -1, -1, -1,
22, -1, -1, -1, -1, -1, -1, 29, -1, -1,
-1, 33, 34, -1, 36, -1, -1, -1, 40, -1,
42, 43, 44, -1, -1, 47, -1, -1, -1, 51,
-1, 53, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 65, 66, 67, -1, 69, -1, 71,
- -1, 73, -1, 75, -1, -1, -1, -1, 80, 81,
+ -1, 73, 74, 75, -1, -1, -1, -1, 80, 81,
82, -1, -1, -1, 86, -1, -1, -1, -1, -1,
- -1, -1, -1, 11, 12, 13, -1, -1, -1, -1,
- -1, -1, -1, -1, 22, -1, -1, -1, -1, -1,
- -1, 29, -1, -1, -1, 33, 34, -1, 36, -1,
- -1, -1, 40, -1, 42, 43, 44, -1, -1, 47,
- -1, -1, -1, 51, -1, 53, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, 65, 66, 67,
- -1, 69, -1, 71, -1, 73, 74, 75, -1, -1,
- -1, -1, 80, 81, 82, -1, -1, -1, 86, -1,
- -1, -1, -1, -1, -1, -1, -1, 7, -1, -1,
- -1, 11, 12, 13, -1, -1, -1, -1, -1, -1,
- -1, -1, 22, -1, -1, -1, -1, -1, -1, 29,
- -1, -1, -1, 33, 34, -1, 36, -1, -1, -1,
- 40, -1, 42, 43, 44, -1, -1, 47, -1, -1,
- -1, 51, -1, 53, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, 65, 66, 67, -1, 69,
- -1, 71, -1, 73, -1, 75, -1, -1, -1, -1,
- 80, 81, 82, -1, -1, -1, 86, -1, -1, -1,
+ -1, -1, -1, -1, 8, -1, -1, 11, 12, 13,
+ -1, -1, -1, -1, -1, -1, -1, -1, 22, -1,
+ -1, -1, -1, -1, -1, 29, -1, -1, -1, 33,
+ 34, -1, 36, -1, -1, -1, 40, -1, 42, 43,
+ 44, -1, -1, 47, -1, -1, -1, 51, -1, 53,
+ -1, -1, 56, -1, -1, -1, -1, -1, -1, -1,
+ -1, 65, 66, 67, -1, 69, -1, 71, -1, 73,
+ -1, 75, -1, -1, -1, -1, 80, 81, 82, -1,
+ -1, -1, 86, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 8, -1, -1, 11, 12, 13, -1, -1,
+ -1, -1, -1, -1, -1, -1, 22, -1, -1, -1,
+ -1, -1, -1, 29, -1, -1, -1, 33, 34, -1,
+ 36, -1, -1, -1, 40, -1, 42, 43, 44, -1,
+ -1, 47, -1, -1, -1, 51, -1, 53, -1, -1,
+ 56, -1, -1, -1, -1, -1, -1, -1, -1, 65,
+ 66, 67, -1, 69, -1, 71, -1, 73, -1, 75,
+ -1, -1, -1, -1, 80, 81, 82, -1, -1, -1,
+ 86, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 11, 12, 13, -1, -1, -1, -1, -1, -1, -1,
+ -1, 22, -1, -1, -1, -1, -1, -1, 29, 30,
+ -1, -1, 33, 34, -1, 36, -1, -1, -1, 40,
+ -1, 42, 43, 44, -1, -1, 47, -1, -1, -1,
+ 51, -1, 53, -1, -1, -1, -1, -1, -1, -1,
+ 61, -1, -1, -1, 65, 66, 67, -1, 69, -1,
+ 71, -1, 73, -1, 75, -1, -1, -1, -1, 80,
+ 81, 82, -1, -1, -1, 86, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 8, -1, -1, 11, 12,
13, -1, -1, -1, -1, -1, -1, -1, -1, 22,
-1, -1, -1, -1, -1, -1, 29, -1, -1, -1,
@@ -719,76 +767,60 @@ const int QmlJSGrammar::action_check [] = {
-1, -1, 65, 66, 67, -1, 69, -1, 71, -1,
73, -1, 75, -1, -1, -1, -1, 80, 81, 82,
-1, -1, -1, 86, -1, -1, -1, -1, -1, -1,
- -1, -1, 8, -1, -1, 11, 12, 13, -1, -1,
- -1, -1, -1, -1, -1, -1, 22, -1, -1, -1,
- -1, -1, -1, 29, -1, -1, -1, 33, 34, -1,
- 36, -1, -1, -1, 40, -1, 42, 43, 44, -1,
- -1, 47, -1, -1, -1, 51, -1, 53, -1, -1,
- 56, -1, -1, -1, -1, -1, -1, -1, -1, 65,
- 66, 67, -1, 69, -1, 71, -1, 73, -1, 75,
- -1, -1, -1, -1, 80, 81, 82, -1, -1, -1,
- 86, -1, -1, -1, -1, -1, -1, -1, -1, 8,
- -1, -1, 11, 12, 13, -1, -1, -1, -1, -1,
- -1, -1, -1, 22, -1, -1, -1, -1, -1, -1,
- 29, -1, -1, -1, 33, 34, -1, 36, -1, -1,
- -1, 40, -1, 42, 43, 44, -1, -1, 47, -1,
- -1, -1, 51, -1, 53, -1, -1, 56, -1, -1,
- -1, -1, -1, -1, -1, -1, 65, 66, 67, -1,
- 69, -1, 71, -1, 73, -1, 75, -1, -1, -1,
- -1, 80, 81, 82, -1, -1, -1, 86, -1, -1,
- -1, -1, -1, -1, -1, -1, 11, 12, 13, -1,
+ -1, -1, -1, 8, -1, -1, 11, 12, 13, -1,
-1, -1, -1, -1, -1, -1, -1, 22, -1, -1,
- -1, -1, -1, -1, 29, 30, -1, -1, 33, 34,
+ -1, -1, -1, -1, 29, -1, -1, -1, 33, 34,
-1, 36, -1, -1, -1, 40, -1, 42, 43, 44,
-1, -1, 47, -1, -1, -1, 51, -1, 53, -1,
- -1, -1, -1, -1, -1, -1, 61, -1, -1, -1,
+ -1, 56, -1, -1, -1, -1, -1, -1, -1, -1,
65, 66, 67, -1, 69, -1, 71, -1, 73, -1,
75, -1, -1, -1, -1, 80, 81, 82, -1, -1,
-1, 86, -1, -1, -1, -1, -1, -1, -1, -1,
- 8, -1, -1, 11, 12, 13, -1, -1, -1, -1,
- -1, -1, -1, -1, 22, -1, -1, -1, -1, -1,
- -1, 29, -1, -1, -1, 33, 34, -1, 36, -1,
- -1, -1, 40, -1, 42, 43, 44, -1, -1, 47,
- -1, -1, -1, 51, -1, 53, -1, -1, 56, -1,
- -1, -1, -1, -1, -1, -1, -1, 65, 66, 67,
- -1, 69, -1, 71, -1, 73, -1, 75, -1, -1,
- -1, -1, 80, 81, 82, -1, -1, -1, 86, -1,
- -1, -1, -1, -1, -1, -1, -1, 8, -1, -1,
- 11, 12, 13, -1, -1, -1, -1, -1, -1, -1,
- -1, 22, -1, -1, -1, -1, -1, -1, 29, -1,
- -1, -1, 33, 34, -1, 36, -1, -1, -1, 40,
- -1, 42, 43, 44, -1, -1, 47, -1, -1, -1,
- 51, -1, 53, -1, -1, 56, -1, -1, 59, -1,
- -1, -1, -1, -1, 65, 66, 67, -1, 69, -1,
- 71, -1, 73, -1, 75, -1, -1, -1, -1, 80,
- 81, 82, -1, -1, 85, 86, -1, -1, -1, -1,
- -1, -1, -1, -1, 4, 5, 6, -1, -1, 9,
- 10, 11, -1, -1, 14, -1, 16, -1, -1, -1,
- 20, 21, 22, -1, -1, -1, -1, -1, -1, 29,
- 30, 31, 32, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, 43, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, 59,
- -1, -1, -1, -1, -1, -1, 66, 67, 68, 69,
- 70, -1, 72, 73, 74, 75, 76, 77, -1, -1,
- 80, 81, 82, 83, 84, 85, -1, -1, -1, -1,
+ -1, 8, -1, -1, 11, 12, 13, -1, -1, -1,
+ -1, -1, -1, -1, -1, 22, -1, -1, -1, -1,
+ -1, -1, 29, -1, -1, -1, 33, 34, -1, 36,
+ -1, -1, -1, 40, -1, 42, 43, 44, -1, -1,
+ 47, -1, -1, -1, 51, -1, 53, -1, -1, 56,
+ -1, -1, 59, -1, -1, -1, -1, -1, 65, 66,
+ 67, -1, 69, -1, 71, -1, 73, -1, 75, -1,
+ -1, -1, -1, 80, 81, 82, -1, -1, 85, 86,
+ 87, -1, -1, -1, -1, -1, -1, -1, -1, 4,
+ 5, 6, -1, -1, 9, 10, 11, -1, -1, 14,
+ -1, 16, -1, -1, -1, 20, 21, 22, -1, -1,
+ -1, -1, -1, -1, 29, 30, 31, 32, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 43, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, 59, -1, -1, -1, -1, -1,
+ -1, 66, 67, 68, 69, 70, -1, 72, 73, 74,
+ 75, 76, 77, -1, -1, 80, 81, 82, 83, 84,
+ 85, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4, 5, 6, -1, -1, 9, 10, 11, -1,
+ -1, 14, -1, 16, -1, -1, -1, 20, 21, 22,
+ -1, -1, -1, -1, -1, -1, 29, 30, 31, 32,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 43, -1, -1, -1, 47, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 59, -1, -1, -1,
+ -1, -1, -1, 66, 67, 68, 69, 70, -1, 72,
+ 73, 74, 75, 76, 77, -1, -1, 80, 81, 82,
+ 83, 84, 85, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4, 5, 6, -1, -1, 9, 10,
+ 11, -1, -1, 14, -1, 16, -1, -1, -1, 20,
+ 21, 22, -1, -1, -1, -1, -1, -1, 29, 30,
+ 31, 32, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, 43, -1, -1, -1, 47, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, 59, -1,
+ -1, -1, -1, -1, 65, 66, 67, 68, 69, 70,
+ -1, 72, 73, 74, 75, 76, 77, -1, -1, 80,
+ 81, 82, 83, 84, 85, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 4, 5, 6, -1, -1,
9, 10, 11, -1, -1, 14, -1, 16, -1, -1,
-1, 20, 21, 22, -1, -1, -1, -1, -1, -1,
29, 30, 31, 32, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 43, -1, -1, -1, 47, -1,
- -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, 55, -1, -1, -1,
59, -1, -1, -1, -1, -1, 65, 66, 67, 68,
69, 70, -1, 72, 73, 74, 75, 76, 77, -1,
-1, 80, 81, 82, 83, 84, 85, -1, -1, -1,
- -1, -1, -1, -1, -1, -1, 4, 5, 6, -1,
- -1, 9, 10, 11, -1, -1, 14, -1, 16, -1,
- -1, -1, 20, 21, 22, -1, -1, -1, -1, -1,
- -1, 29, 30, 31, 32, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, 43, -1, -1, -1, 47,
- -1, -1, -1, -1, -1, -1, -1, 55, -1, -1,
- -1, 59, -1, -1, -1, -1, -1, 65, 66, 67,
- 68, 69, 70, -1, 72, 73, 74, 75, 76, 77,
- -1, -1, 80, 81, 82, 83, 84, 85, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 4, -1, -1,
-1, -1, 9, -1, 11, 12, 13, 14, -1, -1,
-1, -1, -1, -1, 21, 22, -1, -1, -1, -1,
@@ -798,79 +830,81 @@ const int QmlJSGrammar::action_check [] = {
-1, -1, 59, -1, 61, -1, -1, -1, 65, 66,
67, 68, 69, 70, 71, 72, 73, 74, 75, 76,
77, -1, -1, 80, 81, 82, 83, 84, -1, 86,
- -1, -1, -1, -1, -1, -1, -1, -1, 4, -1,
- -1, -1, -1, 9, -1, 11, 12, 13, 14, -1,
- -1, -1, -1, -1, -1, 21, 22, -1, -1, -1,
- -1, -1, -1, 29, 30, -1, -1, 33, 34, -1,
- 36, -1, -1, -1, 40, -1, 42, 43, 44, -1,
- -1, 47, -1, -1, -1, 51, -1, 53, -1, -1,
- -1, -1, -1, 59, -1, 61, -1, -1, -1, 65,
- 66, 67, 68, 69, 70, 71, 72, 73, 74, 75,
- 76, 77, -1, -1, 80, 81, 82, 83, 84, -1,
- 86, -1, -1, -1, -1, -1, -1, -1, -1, 4,
- 5, 6, -1, -1, 9, 10, 11, 12, 13, 14,
- -1, 16, -1, -1, -1, 20, 21, 22, -1, -1,
- -1, -1, -1, -1, 29, 30, 31, 32, 33, 34,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, 4,
+ -1, -1, -1, -1, 9, -1, 11, 12, 13, 14,
+ -1, -1, -1, -1, -1, -1, 21, 22, -1, -1,
+ -1, -1, -1, -1, 29, 30, -1, -1, 33, 34,
-1, 36, -1, -1, -1, 40, -1, 42, 43, 44,
-1, -1, 47, -1, -1, -1, 51, -1, 53, -1,
-1, -1, -1, -1, 59, -1, 61, -1, -1, -1,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, -1, -1, 80, 81, 82, 83, 84,
- 85, 86, -1, -1, -1, -1, -1, -1, -1, -1,
- 4, 5, 6, -1, -1, 9, 10, 11, 12, 13,
- 14, -1, 16, -1, -1, -1, 20, 21, 22, -1,
- -1, -1, -1, -1, -1, 29, 30, 31, 32, 33,
- 34, -1, 36, -1, -1, -1, 40, -1, 42, 43,
- 44, -1, -1, 47, -1, -1, -1, 51, -1, 53,
- -1, 55, -1, -1, -1, 59, -1, 61, -1, -1,
- -1, 65, 66, 67, 68, 69, 70, 71, 72, 73,
- 74, 75, 76, 77, -1, -1, 80, 81, 82, 83,
- 84, 85, 86, -1, -1, -1, -1, -1, -1, -1,
- -1,
+ -1, 86, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, 4, 5, 6, -1, -1, 9, 10, 11, 12,
+ 13, 14, -1, 16, -1, -1, -1, 20, 21, 22,
+ -1, -1, -1, -1, -1, -1, 29, 30, 31, 32,
+ 33, 34, -1, 36, -1, -1, -1, 40, -1, 42,
+ 43, 44, -1, -1, 47, -1, -1, -1, 51, -1,
+ 53, -1, -1, -1, -1, -1, 59, -1, 61, -1,
+ -1, -1, 65, 66, 67, 68, 69, 70, 71, 72,
+ 73, 74, 75, 76, 77, -1, -1, 80, 81, 82,
+ 83, 84, 85, 86, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, 4, 5, 6, -1, -1, 9, 10,
+ 11, 12, 13, 14, -1, 16, -1, -1, -1, 20,
+ 21, 22, -1, -1, -1, -1, -1, -1, 29, 30,
+ 31, 32, 33, 34, -1, 36, -1, -1, -1, 40,
+ -1, 42, 43, 44, -1, -1, 47, -1, -1, -1,
+ 51, -1, 53, -1, 55, -1, -1, -1, 59, -1,
+ 61, -1, -1, -1, 65, 66, 67, 68, 69, 70,
+ 71, 72, 73, 74, 75, 76, 77, -1, -1, 80,
+ 81, 82, 83, 84, 85, 86, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1,
- 9, 9, 3, 9, 9, 8, 30, 3, 63, 16,
- 9, 2, 2, 15, 9, 2, 30, 9, 3, 3,
- 9, 3, 20, 20, 3, 2, 30, 2, 16, 9,
- 3, 31, 77, 9, 20, 9, 30, 30, 9, 9,
- 3, 3, 2, 2, 9, 3, 3, 2, 92, 3,
- 2, 2, 30, 9, 2, 89, 77, 2, 30, 9,
- 9, 30, 94, 16, 2, 9, 30, 3, 3, 16,
- 9, 3, 3, 2, 16, 3, 2, -1, 3, 9,
- 3, 3, 9, 2, 30, 2, -1, 30, -1, 30,
- -1, -1, -1, 9, 9, 11, 2, 9, -1, -1,
- 40, 3, 9, 40, 2, 45, 40, 40, 42, 42,
- -1, 3, -1, -1, 34, 52, 40, 37, 9, 40,
- 32, 45, 40, 9, 45, 11, 40, 45, 42, 40,
- 40, 42, 40, 9, 42, 45, 40, 40, 42, 42,
- 40, 40, 42, 40, 40, 42, 45, 40, 44, 42,
- 40, 40, 40, 40, 44, 44, 40, 45, 45, 40,
- 40, 45, 64, 26, 45, 40, 40, 30, 40, 3,
- 50, 45, 64, 45, 40, 40, 83, 43, 43, -1,
- 40, 56, 42, 40, 40, 42, 42, 40, 34, 42,
- 30, 37, 40, 40, 42, 101, 36, 40, 96, 46,
- 3, 40, 40, 42, 95, 81, -1, 40, 46, 40,
- 40, 54, 42, 46, 40, 46, 40, 30, 42, 9,
- 40, 40, 48, 36, 40, 45, 45, -1, -1, 45,
- 64, 9, 40, 11, 40, 55, -1, 45, 57, 45,
- -1, -1, 32, 33, 40, 51, 62, -1, 40, 45,
- -1, 40, 30, 45, 62, 47, 45, 9, 10, -1,
- 40, 64, -1, 40, 53, 45, 62, 40, 45, 49,
- 40, 40, 45, -1, 40, 45, 45, 47, 47, 45,
- -1, 47, 9, 10, -1, 62, 13, 3, -1, 62,
- -1, -1, -1, -1, -1, -1, 23, 24, -1, -1,
- 16, 17, 18, 19, -1, -1, -1, -1, -1, -1,
+ 6, 22, 2, 11, 9, 3, 2, 36, 3, 26,
+ 3, 3, 9, 3, 97, 9, 3, 36, 9, 22,
+ 2, 37, 3, 11, 9, 14, 9, 3, 68, 9,
+ 2, 9, 3, 2, 36, 9, 22, 21, 3, 9,
+ 3, 9, 9, 2, 2, 11, 3, 9, 2, 26,
+ 3, 26, 2, 9, 9, 3, 82, 36, 9, 3,
+ 82, 22, 3, 36, 2, 2, 9, 2, 8, 3,
+ 3, 2, 36, 9, 3, 3, 36, 9, 2, 9,
+ 22, 94, 9, 2, 36, 2, 9, 36, 99, 36,
+ 36, 36, 2, 2, -1, 9, -1, 9, 12, -1,
+ -1, 3, 2, -1, -1, -1, 45, 32, 47, -1,
+ 9, 36, -1, 9, 10, -1, -1, 39, 36, 45,
+ 42, 47, 9, 41, 45, 45, 47, 47, 39, 45,
+ 45, 42, 45, 39, 50, 50, 42, 50, 45, 3,
+ 45, 45, 45, 50, 47, 50, 50, 45, 45, 47,
+ 47, 45, 9, 45, 3, 45, 45, 45, 50, 16,
+ 50, 45, 51, 51, 45, 59, 45, 69, 45, 53,
+ 51, 50, 49, 45, 86, 45, 45, 45, 9, 3,
+ 45, 49, 45, 55, 49, 16, -1, 57, 51, 88,
+ 45, 101, 61, 45, 45, 50, -1, 106, 50, 50,
+ 45, 45, 47, 47, 45, 69, 47, 45, 45, 47,
+ 47, 36, 45, 100, 47, 45, 41, 47, 45, -1,
+ 69, 48, 45, 45, 47, 45, 48, 47, 9, 45,
+ 45, 12, 45, 14, 50, 50, 9, 50, -1, -1,
+ 9, 45, 15, 16, 60, 69, 50, 16, 45, 62,
+ 45, 45, 67, 50, 45, 50, 50, 52, -1, 50,
+ 54, 52, 45, 67, -1, -1, -1, 50, -1, 38,
+ 67, 9, -1, 56, 12, 45, -1, 45, 45, -1,
+ 50, 45, 50, 50, 52, 45, 50, 9, 10, -1,
+ 50, 3, 52, -1, 58, 9, 10, 67, -1, -1,
+ 67, -1, -1, -1, -1, 19, -1, 29, 30, -1,
+ 22, 23, 24, 25, -1, 29, 30, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, 9, 10, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1, 23, 24, -1, -1, -1,
+ 9, -1, -1, 12, 13, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, 36, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
- -1, -1, -1, -1, -1};
+ -1, -1, -1, -1, -1, -1, -1, -1, -1};
diff --git a/src/declarative/qml/parser/qmljsgrammar_p.h b/src/declarative/qml/parser/qmljsgrammar_p.h
index c760564..7ffda6a 100644
--- a/src/declarative/qml/parser/qmljsgrammar_p.h
+++ b/src/declarative/qml/parser/qmljsgrammar_p.h
@@ -59,12 +59,13 @@ class QmlJSGrammar
public:
enum {
EOF_SYMBOL = 0,
- REDUCE_HERE = 94,
- SHIFT_THERE = 93,
+ REDUCE_HERE = 95,
+ SHIFT_THERE = 94,
T_AND = 1,
T_AND_AND = 2,
T_AND_EQ = 3,
- T_AS = 89,
+ T_AS = 90,
+ T_AT = 87,
T_AUTOMATIC_SEMICOLON = 62,
T_BREAK = 4,
T_CASE = 5,
@@ -85,9 +86,9 @@ public:
T_EQ_EQ = 18,
T_EQ_EQ_EQ = 19,
T_FALSE = 82,
- T_FEED_JS_EXPRESSION = 92,
- T_FEED_JS_STATEMENT = 91,
- T_FEED_UI_PROGRAM = 90,
+ T_FEED_JS_EXPRESSION = 93,
+ T_FEED_JS_STATEMENT = 92,
+ T_FEED_UI_PROGRAM = 91,
T_FINALLY = 20,
T_FOR = 21,
T_FUNCTION = 22,
@@ -99,7 +100,7 @@ public:
T_GT_GT_GT_EQ = 28,
T_IDENTIFIER = 29,
T_IF = 30,
- T_IMPORT = 88,
+ T_IMPORT = 89,
T_IN = 31,
T_INSTANCEOF = 32,
T_LBRACE = 33,
@@ -126,7 +127,7 @@ public:
T_PLUS_EQ = 52,
T_PLUS_PLUS = 53,
T_PROPERTY = 66,
- T_PUBLIC = 87,
+ T_PUBLIC = 88,
T_QUESTION = 54,
T_RBRACE = 55,
T_RBRACKET = 56,
@@ -154,15 +155,15 @@ public:
T_XOR = 78,
T_XOR_EQ = 79,
- ACCEPT_STATE = 616,
- RULE_COUNT = 337,
- STATE_COUNT = 617,
- TERMINAL_COUNT = 95,
- NON_TERMINAL_COUNT = 103,
+ ACCEPT_STATE = 634,
+ RULE_COUNT = 348,
+ STATE_COUNT = 635,
+ TERMINAL_COUNT = 96,
+ NON_TERMINAL_COUNT = 108,
- GOTO_INDEX_OFFSET = 617,
- GOTO_INFO_OFFSET = 2231,
- GOTO_CHECK_OFFSET = 2231
+ GOTO_INDEX_OFFSET = 635,
+ GOTO_INFO_OFFSET = 2345,
+ GOTO_CHECK_OFFSET = 2345
};
static const char *const spell [];
diff --git a/src/declarative/qml/parser/qmljslexer.cpp b/src/declarative/qml/parser/qmljslexer.cpp
index a22169d..0756f10 100644
--- a/src/declarative/qml/parser/qmljslexer.cpp
+++ b/src/declarative/qml/parser/qmljslexer.cpp
@@ -1038,6 +1038,7 @@ int Lexer::matchPunctuator(ushort c1, ushort c2,
case '[': shift(1); return QmlJSGrammar::T_LBRACKET;
case ']': shift(1); return QmlJSGrammar::T_RBRACKET;
case ';': shift(1); return QmlJSGrammar::T_SEMICOLON;
+ case '@': shift(1); return QmlJSGrammar::T_AT;
default: return -1;
}
diff --git a/src/declarative/qml/parser/qmljsparser.cpp b/src/declarative/qml/parser/qmljsparser.cpp
index a1236d5..93f9fda 100644
--- a/src/declarative/qml/parser/qmljsparser.cpp
+++ b/src/declarative/qml/parser/qmljsparser.cpp
@@ -292,51 +292,100 @@ case 20: {
} break;
case 21: {
- sym(1).Node = makeAstNode<AST::UiObjectMemberList> (driver->nodePool(), sym(1).UiObjectMember);
+ sym(1).Node = makeAstNode<AST::UiObjectMemberList> (driver->nodePool(),
+ sym(1).UiAttributeList, sym(2).UiObjectMember);
} break;
-case 22: {
- sym(1).Node = makeAstNode<AST::UiObjectMemberList> (driver->nodePool(), sym(1).UiObjectMember);
+case 23: {
+ sym(1).UiAttributeList = sym(1).UiAttributeList->finish();
} break;
-case 23: {
+case 24: {
+ sym(1).UiAttributeList = makeAstNode<AST::UiAttributeList>(driver->nodePool(), sym(1).UiAttribute);
+} break;
+
+case 25: {
+ sym(1).UiAttributeList = makeAstNode<AST::UiAttributeList>(driver->nodePool(),
+ sym(1).UiAttributeList, sym(2).UiAttribute);
+} break;
+
+case 28: {
+ AST::UiAttribute *ast = makeAstNode<AST::UiAttribute>(driver->nodePool(), sym(2).sval);
+ ast->atToken = loc(1);
+ ast->nameToken = loc(2);
+ sym(1).UiAttribute = ast;
+} break;
+
+case 29: {
+ AST::UiAttribute *ast = makeAstNode<AST::UiAttribute>(driver->nodePool(),
+ sym(2).sval, sym(4).Expression);
+ ast->atToken = loc(1);
+ ast->nameToken = loc(2);
+ ast->equalToken = loc(3);
+ sym(1).UiAttribute = ast;
+} break;
+
+case 30: {
+ AST::IdentifierExpression *node = makeAstNode<AST::IdentifierExpression> (driver->nodePool(), sym(1).sval);
+ node->identifierToken = loc(1);
+ sym(1).Node = node;
+} break;
+
+case 31: {
+ AST::NumericLiteral *node = makeAstNode<AST::NumericLiteral> (driver->nodePool(), sym(1).dval, lexer->flags);
+ node->literalToken = loc(1);
+ sym(1).Node = node;
+} break;
+
+case 32: {
+ sym(1).Node = makeAstNode<AST::UiObjectMemberList> (driver->nodePool(),
+ sym(1).UiAttributeList, sym(2).UiObjectMember);
+} break;
+
+case 33: {
AST::UiObjectMemberList *node = makeAstNode<AST:: UiObjectMemberList> (driver->nodePool(),
- sym(1).UiObjectMemberList, sym(2).UiObjectMember);
+ sym(1).UiObjectMemberList, sym(2).UiAttributeList, sym(3).UiObjectMember);
sym(1).Node = node;
} break;
-case 24: {
+case 34: {
sym(1).Node = makeAstNode<AST::UiArrayMemberList> (driver->nodePool(), sym(1).UiObjectMember);
} break;
-case 25: {
+case 35: {
+ sym(2).UiObjectMember->attributes = sym(1).UiAttributeList->finish();
+ sym(1).Node = makeAstNode<AST::UiArrayMemberList> (driver->nodePool(), sym(2).UiObjectMember);
+} break;
+
+case 36: {
+ sym(4).UiObjectMember->attributes = sym(3).UiAttributeList;
AST::UiArrayMemberList *node = makeAstNode<AST::UiArrayMemberList> (driver->nodePool(),
sym(1).UiArrayMemberList, sym(3).UiObjectMember);
node->commaToken = loc(2);
sym(1).Node = node;
} break;
-case 26: {
+case 37: {
AST::UiObjectInitializer *node = makeAstNode<AST::UiObjectInitializer> (driver->nodePool(), (AST::UiObjectMemberList*)0);
node->lbraceToken = loc(1);
node->rbraceToken = loc(2);
sym(1).Node = node;
} break;
-case 27: {
+case 38: {
AST::UiObjectInitializer *node = makeAstNode<AST::UiObjectInitializer> (driver->nodePool(), sym(2).UiObjectMemberList->finish());
node->lbraceToken = loc(1);
node->rbraceToken = loc(3);
sym(1).Node = node;
} break;
-case 28: {
+case 39: {
AST::UiObjectDefinition *node = makeAstNode<AST::UiObjectDefinition> (driver->nodePool(), sym(1).UiQualifiedId->finish(),
sym(2).UiObjectInitializer);
sym(1).Node = node;
} break;
-case 30: {
+case 41: {
AST::UiArrayBinding *node = makeAstNode<AST::UiArrayBinding> (driver->nodePool(), sym(1).UiQualifiedId->finish(),
sym(4).UiArrayMemberList->finish());
node->colonToken = loc(2);
@@ -345,7 +394,7 @@ case 30: {
sym(1).Node = node;
} break;
-case 31: {
+case 42: {
if (AST::UiQualifiedId *qualifiedId = reparseAsQualifiedId(sym(3).Expression)) {
AST::UiObjectBinding *node = makeAstNode<AST::UiObjectBinding> (driver->nodePool(),
sym(1).UiQualifiedId->finish(), qualifiedId, sym(4).UiObjectInitializer);
@@ -360,7 +409,7 @@ case 31: {
return false; // ### recover
}
} break;
-case 32:case 33:case 34:case 35:
+case 43:case 44:case 45:case 46:
{
AST::UiScriptBinding *node = makeAstNode<AST::UiScriptBinding> (driver->nodePool(), sym(1).UiQualifiedId->finish(),
sym(3).Statement);
@@ -368,35 +417,35 @@ case 32:case 33:case 34:case 35:
sym(1).Node = node;
} break;
-case 36:
+case 47:
-case 37: {
+case 48: {
sym(1).sval = driver->intern(lexer->characterBuffer(), lexer->characterCount());
break;
}
-case 39: {
+case 50: {
sym(1).Node = 0;
} break;
-case 40: {
+case 51: {
sym(1).Node = sym(1).UiParameterList->finish ();
} break;
-case 41: {
+case 52: {
AST::UiParameterList *node = makeAstNode<AST::UiParameterList> (driver->nodePool(), sym(1).sval, sym(2).sval);
node->identifierToken = loc(2);
sym(1).Node = node;
} break;
-case 42: {
+case 53: {
AST::UiParameterList *node = makeAstNode<AST::UiParameterList> (driver->nodePool(), sym(1).UiParameterList, sym(3).sval, sym(4).sval);
node->commaToken = loc(2);
node->identifierToken = loc(4);
sym(1).Node = node;
} break;
-case 43: {
+case 54: {
AST::UiPublicMember *node = makeAstNode<AST::UiPublicMember> (driver->nodePool(), (NameId *)0, sym(2).sval);
node->type = AST::UiPublicMember::Signal;
node->propertyToken = loc(1);
@@ -406,7 +455,7 @@ case 43: {
sym(1).Node = node;
} break;
-case 44: {
+case 55: {
AST::UiPublicMember *node = makeAstNode<AST::UiPublicMember> (driver->nodePool(), (NameId *)0, sym(2).sval);
node->type = AST::UiPublicMember::Signal;
node->propertyToken = loc(1);
@@ -415,7 +464,7 @@ case 44: {
sym(1).Node = node;
} break;
-case 46: {
+case 57: {
AST::UiPublicMember *node = makeAstNode<AST::UiPublicMember> (driver->nodePool(), sym(2).sval, sym(3).sval);
node->propertyToken = loc(1);
node->typeToken = loc(2);
@@ -424,7 +473,7 @@ case 46: {
sym(1).Node = node;
} break;
-case 48: {
+case 59: {
AST::UiPublicMember *node = makeAstNode<AST::UiPublicMember> (driver->nodePool(), sym(3).sval, sym(4).sval);
node->isDefaultMember = true;
node->defaultToken = loc(1);
@@ -435,7 +484,7 @@ case 48: {
sym(1).Node = node;
} break;
-case 50: {
+case 61: {
AST::UiPublicMember *node = makeAstNode<AST::UiPublicMember> (driver->nodePool(), sym(2).sval, sym(3).sval,
sym(5).Expression);
node->propertyToken = loc(1);
@@ -446,7 +495,7 @@ case 50: {
sym(1).Node = node;
} break;
-case 52: {
+case 63: {
AST::UiPublicMember *node = makeAstNode<AST::UiPublicMember> (driver->nodePool(), sym(3).sval, sym(4).sval,
sym(6).Expression);
node->isDefaultMember = true;
@@ -459,76 +508,76 @@ case 52: {
sym(1).Node = node;
} break;
-case 53: {
+case 64: {
sym(1).Node = makeAstNode<AST::UiSourceElement>(driver->nodePool(), sym(1).Node);
} break;
-case 54: {
+case 65: {
sym(1).Node = makeAstNode<AST::UiSourceElement>(driver->nodePool(), sym(1).Node);
} break;
-case 55:
-case 56:
+case 66:
+case 67:
{
AST::UiQualifiedId *node = makeAstNode<AST::UiQualifiedId> (driver->nodePool(), driver->intern(lexer->characterBuffer(), lexer->characterCount()));
node->identifierToken = loc(1);
sym(1).Node = node;
} break;
-case 58: {
+case 69: {
QString s = QLatin1String(QmlJSGrammar::spell[T_PROPERTY]);
sym(1).sval = driver->intern(s.constData(), s.length());
break;
}
-case 59: {
+case 70: {
QString s = QLatin1String(QmlJSGrammar::spell[T_SIGNAL]);
sym(1).sval = driver->intern(s.constData(), s.length());
break;
}
-case 60: {
+case 71: {
AST::ThisExpression *node = makeAstNode<AST::ThisExpression> (driver->nodePool());
node->thisToken = loc(1);
sym(1).Node = node;
} break;
-case 61: {
+case 72: {
AST::IdentifierExpression *node = makeAstNode<AST::IdentifierExpression> (driver->nodePool(), sym(1).sval);
node->identifierToken = loc(1);
sym(1).Node = node;
} break;
-case 62: {
+case 73: {
AST::NullExpression *node = makeAstNode<AST::NullExpression> (driver->nodePool());
node->nullToken = loc(1);
sym(1).Node = node;
} break;
-case 63: {
+case 74: {
AST::TrueLiteral *node = makeAstNode<AST::TrueLiteral> (driver->nodePool());
node->trueToken = loc(1);
sym(1).Node = node;
} break;
-case 64: {
+case 75: {
AST::FalseLiteral *node = makeAstNode<AST::FalseLiteral> (driver->nodePool());
node->falseToken = loc(1);
sym(1).Node = node;
} break;
-case 65: {
+case 76: {
AST::NumericLiteral *node = makeAstNode<AST::NumericLiteral> (driver->nodePool(), sym(1).dval, lexer->flags);
node->literalToken = loc(1);
sym(1).Node = node;
} break;
-case 66:
-case 67: {
+case 77:
+case 78: {
AST::StringLiteral *node = makeAstNode<AST::StringLiteral> (driver->nodePool(), sym(1).sval);
node->literalToken = loc(1);
sym(1).Node = node;
} break;
-case 68: {
+case 79: {
bool rx = lexer->scanRegExp(Lexer::NoPrefix);
if (!rx) {
diagnostic_messages.append(DiagnosticMessage(DiagnosticMessage::Error, location(lexer), lexer->errorMessage()));
@@ -539,7 +588,7 @@ case 68: {
sym(1).Node = node;
} break;
-case 69: {
+case 80: {
bool rx = lexer->scanRegExp(Lexer::EqualPrefix);
if (!rx) {
diagnostic_messages.append(DiagnosticMessage(DiagnosticMessage::Error, location(lexer), lexer->errorMessage()));
@@ -550,28 +599,28 @@ case 69: {
sym(1).Node = node;
} break;
-case 70: {
+case 81: {
AST::ArrayLiteral *node = makeAstNode<AST::ArrayLiteral> (driver->nodePool(), (AST::Elision *) 0);
node->lbracketToken = loc(1);
node->rbracketToken = loc(2);
sym(1).Node = node;
} break;
-case 71: {
+case 82: {
AST::ArrayLiteral *node = makeAstNode<AST::ArrayLiteral> (driver->nodePool(), sym(2).Elision->finish());
node->lbracketToken = loc(1);
node->rbracketToken = loc(3);
sym(1).Node = node;
} break;
-case 72: {
+case 83: {
AST::ArrayLiteral *node = makeAstNode<AST::ArrayLiteral> (driver->nodePool(), sym(2).ElementList->finish ());
node->lbracketToken = loc(1);
node->rbracketToken = loc(3);
sym(1).Node = node;
} break;
-case 73: {
+case 84: {
AST::ArrayLiteral *node = makeAstNode<AST::ArrayLiteral> (driver->nodePool(), sym(2).ElementList->finish (),
(AST::Elision *) 0);
node->lbracketToken = loc(1);
@@ -580,7 +629,7 @@ case 73: {
sym(1).Node = node;
} break;
-case 74: {
+case 85: {
AST::ArrayLiteral *node = makeAstNode<AST::ArrayLiteral> (driver->nodePool(), sym(2).ElementList->finish (),
sym(4).Elision->finish());
node->lbracketToken = loc(1);
@@ -589,7 +638,7 @@ case 74: {
sym(1).Node = node;
} break;
-case 75: {
+case 86: {
AST::ObjectLiteral *node = 0;
if (sym(2).Node)
node = makeAstNode<AST::ObjectLiteral> (driver->nodePool(),
@@ -601,7 +650,7 @@ case 75: {
sym(1).Node = node;
} break;
-case 76: {
+case 87: {
AST::ObjectLiteral *node = makeAstNode<AST::ObjectLiteral> (driver->nodePool(),
sym(2).PropertyNameAndValueList->finish ());
node->lbraceToken = loc(1);
@@ -609,67 +658,67 @@ case 76: {
sym(1).Node = node;
} break;
-case 77: {
+case 88: {
AST::NestedExpression *node = makeAstNode<AST::NestedExpression>(driver->nodePool(), sym(2).Expression);
node->lparenToken = loc(1);
node->rparenToken = loc(3);
sym(1).Node = node;
} break;
-case 78: {
+case 89: {
AST::UiQualifiedId *node = makeAstNode<AST::UiQualifiedId> (driver->nodePool(), sym(1).sval);
node->identifierToken = loc(1);
sym(1).Node = node;
} break;
-case 79: {
+case 90: {
AST::UiQualifiedId *node = makeAstNode<AST::UiQualifiedId> (driver->nodePool(), sym(1).UiQualifiedId, sym(3).sval);
node->identifierToken = loc(3);
sym(1).Node = node;
} break;
-case 80: {
+case 91: {
sym(1).Node = makeAstNode<AST::ElementList> (driver->nodePool(), (AST::Elision *) 0, sym(1).Expression);
} break;
-case 81: {
+case 92: {
sym(1).Node = makeAstNode<AST::ElementList> (driver->nodePool(), sym(1).Elision->finish(), sym(2).Expression);
} break;
-case 82: {
+case 93: {
AST::ElementList *node = makeAstNode<AST::ElementList> (driver->nodePool(), sym(1).ElementList,
(AST::Elision *) 0, sym(3).Expression);
node->commaToken = loc(2);
sym(1).Node = node;
} break;
-case 83: {
+case 94: {
AST::ElementList *node = makeAstNode<AST::ElementList> (driver->nodePool(), sym(1).ElementList, sym(3).Elision->finish(),
sym(4).Expression);
node->commaToken = loc(2);
sym(1).Node = node;
} break;
-case 84: {
+case 95: {
AST::Elision *node = makeAstNode<AST::Elision> (driver->nodePool());
node->commaToken = loc(1);
sym(1).Node = node;
} break;
-case 85: {
+case 96: {
AST::Elision *node = makeAstNode<AST::Elision> (driver->nodePool(), sym(1).Elision);
node->commaToken = loc(2);
sym(1).Node = node;
} break;
-case 86: {
+case 97: {
AST::PropertyNameAndValueList *node = makeAstNode<AST::PropertyNameAndValueList> (driver->nodePool(),
sym(1).PropertyName, sym(3).Expression);
node->colonToken = loc(2);
sym(1).Node = node;
} break;
-case 87: {
+case 98: {
AST::PropertyNameAndValueList *node = makeAstNode<AST::PropertyNameAndValueList> (driver->nodePool(),
sym(1).PropertyNameAndValueList, sym(3).PropertyName, sym(5).Expression);
node->commaToken = loc(2);
@@ -677,58 +726,36 @@ case 87: {
sym(1).Node = node;
} break;
-case 88: {
+case 99: {
AST::IdentifierPropertyName *node = makeAstNode<AST::IdentifierPropertyName> (driver->nodePool(), sym(1).sval);
node->propertyNameToken = loc(1);
sym(1).Node = node;
} break;
-case 89:
-case 90: {
+case 100:
+case 101: {
AST::IdentifierPropertyName *node = makeAstNode<AST::IdentifierPropertyName> (driver->nodePool(), driver->intern(lexer->characterBuffer(), lexer->characterCount()));
node->propertyNameToken = loc(1);
sym(1).Node = node;
} break;
-case 91: {
+case 102: {
AST::StringLiteralPropertyName *node = makeAstNode<AST::StringLiteralPropertyName> (driver->nodePool(), sym(1).sval);
node->propertyNameToken = loc(1);
sym(1).Node = node;
} break;
-case 92: {
+case 103: {
AST::NumericLiteralPropertyName *node = makeAstNode<AST::NumericLiteralPropertyName> (driver->nodePool(), sym(1).dval);
node->propertyNameToken = loc(1);
sym(1).Node = node;
} break;
-case 93: {
+case 104: {
AST::IdentifierPropertyName *node = makeAstNode<AST::IdentifierPropertyName> (driver->nodePool(), sym(1).sval);
node->propertyNameToken = loc(1);
sym(1).Node = node;
} break;
-case 94:
-
-case 95:
-
-case 96:
-
-case 97:
-
-case 98:
-
-case 99:
-
-case 100:
-
-case 101:
-
-case 102:
-
-case 103:
-
-case 104:
-
case 105:
case 106:
@@ -768,25 +795,47 @@ case 122:
case 123:
case 124:
+
+case 125:
+
+case 126:
+
+case 127:
+
+case 128:
+
+case 129:
+
+case 130:
+
+case 131:
+
+case 132:
+
+case 133:
+
+case 134:
+
+case 135:
{
sym(1).sval = driver->intern(lexer->characterBuffer(), lexer->characterCount());
} break;
-case 129: {
+case 140: {
AST::ArrayMemberExpression *node = makeAstNode<AST::ArrayMemberExpression> (driver->nodePool(), sym(1).Expression, sym(3).Expression);
node->lbracketToken = loc(2);
node->rbracketToken = loc(4);
sym(1).Node = node;
} break;
-case 130: {
+case 141: {
AST::FieldMemberExpression *node = makeAstNode<AST::FieldMemberExpression> (driver->nodePool(), sym(1).Expression, sym(3).sval);
node->dotToken = loc(2);
node->identifierToken = loc(3);
sym(1).Node = node;
} break;
-case 131: {
+case 142: {
AST::NewMemberExpression *node = makeAstNode<AST::NewMemberExpression> (driver->nodePool(), sym(2).Expression, sym(4).ArgumentList);
node->newToken = loc(1);
node->lparenToken = loc(3);
@@ -794,384 +843,384 @@ case 131: {
sym(1).Node = node;
} break;
-case 133: {
+case 144: {
AST::NewExpression *node = makeAstNode<AST::NewExpression> (driver->nodePool(), sym(2).Expression);
node->newToken = loc(1);
sym(1).Node = node;
} break;
-case 134: {
+case 145: {
AST::CallExpression *node = makeAstNode<AST::CallExpression> (driver->nodePool(), sym(1).Expression, sym(3).ArgumentList);
node->lparenToken = loc(2);
node->rparenToken = loc(4);
sym(1).Node = node;
} break;
-case 135: {
+case 146: {
AST::CallExpression *node = makeAstNode<AST::CallExpression> (driver->nodePool(), sym(1).Expression, sym(3).ArgumentList);
node->lparenToken = loc(2);
node->rparenToken = loc(4);
sym(1).Node = node;
} break;
-case 136: {
+case 147: {
AST::ArrayMemberExpression *node = makeAstNode<AST::ArrayMemberExpression> (driver->nodePool(), sym(1).Expression, sym(3).Expression);
node->lbracketToken = loc(2);
node->rbracketToken = loc(4);
sym(1).Node = node;
} break;
-case 137: {
+case 148: {
AST::FieldMemberExpression *node = makeAstNode<AST::FieldMemberExpression> (driver->nodePool(), sym(1).Expression, sym(3).sval);
node->dotToken = loc(2);
node->identifierToken = loc(3);
sym(1).Node = node;
} break;
-case 138: {
+case 149: {
sym(1).Node = 0;
} break;
-case 139: {
+case 150: {
sym(1).Node = sym(1).ArgumentList->finish();
} break;
-case 140: {
+case 151: {
sym(1).Node = makeAstNode<AST::ArgumentList> (driver->nodePool(), sym(1).Expression);
} break;
-case 141: {
+case 152: {
AST::ArgumentList *node = makeAstNode<AST::ArgumentList> (driver->nodePool(), sym(1).ArgumentList, sym(3).Expression);
node->commaToken = loc(2);
sym(1).Node = node;
} break;
-case 145: {
+case 156: {
AST::PostIncrementExpression *node = makeAstNode<AST::PostIncrementExpression> (driver->nodePool(), sym(1).Expression);
node->incrementToken = loc(2);
sym(1).Node = node;
} break;
-case 146: {
+case 157: {
AST::PostDecrementExpression *node = makeAstNode<AST::PostDecrementExpression> (driver->nodePool(), sym(1).Expression);
node->decrementToken = loc(2);
sym(1).Node = node;
} break;
-case 148: {
+case 159: {
AST::DeleteExpression *node = makeAstNode<AST::DeleteExpression> (driver->nodePool(), sym(2).Expression);
node->deleteToken = loc(1);
sym(1).Node = node;
} break;
-case 149: {
+case 160: {
AST::VoidExpression *node = makeAstNode<AST::VoidExpression> (driver->nodePool(), sym(2).Expression);
node->voidToken = loc(1);
sym(1).Node = node;
} break;
-case 150: {
+case 161: {
AST::TypeOfExpression *node = makeAstNode<AST::TypeOfExpression> (driver->nodePool(), sym(2).Expression);
node->typeofToken = loc(1);
sym(1).Node = node;
} break;
-case 151: {
+case 162: {
AST::PreIncrementExpression *node = makeAstNode<AST::PreIncrementExpression> (driver->nodePool(), sym(2).Expression);
node->incrementToken = loc(1);
sym(1).Node = node;
} break;
-case 152: {
+case 163: {
AST::PreDecrementExpression *node = makeAstNode<AST::PreDecrementExpression> (driver->nodePool(), sym(2).Expression);
node->decrementToken = loc(1);
sym(1).Node = node;
} break;
-case 153: {
+case 164: {
AST::UnaryPlusExpression *node = makeAstNode<AST::UnaryPlusExpression> (driver->nodePool(), sym(2).Expression);
node->plusToken = loc(1);
sym(1).Node = node;
} break;
-case 154: {
+case 165: {
AST::UnaryMinusExpression *node = makeAstNode<AST::UnaryMinusExpression> (driver->nodePool(), sym(2).Expression);
node->minusToken = loc(1);
sym(1).Node = node;
} break;
-case 155: {
+case 166: {
AST::TildeExpression *node = makeAstNode<AST::TildeExpression> (driver->nodePool(), sym(2).Expression);
node->tildeToken = loc(1);
sym(1).Node = node;
} break;
-case 156: {
+case 167: {
AST::NotExpression *node = makeAstNode<AST::NotExpression> (driver->nodePool(), sym(2).Expression);
node->notToken = loc(1);
sym(1).Node = node;
} break;
-case 158: {
+case 169: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Mul, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 159: {
+case 170: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Div, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 160: {
+case 171: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Mod, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 162: {
+case 173: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Add, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 163: {
+case 174: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Sub, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 165: {
+case 176: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::LShift, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 166: {
+case 177: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::RShift, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 167: {
+case 178: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::URShift, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 169: {
+case 180: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Lt, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 170: {
+case 181: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Gt, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 171: {
+case 182: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Le, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 172: {
+case 183: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Ge, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 173: {
+case 184: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::InstanceOf, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 174: {
+case 185: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::In, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 176: {
+case 187: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Lt, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 177: {
+case 188: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Gt, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 178: {
+case 189: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Le, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 179: {
+case 190: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Ge, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 180: {
+case 191: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::InstanceOf, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 182: {
+case 193: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Equal, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 183: {
+case 194: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::NotEqual, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 184: {
+case 195: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::StrictEqual, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 185: {
+case 196: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::StrictNotEqual, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 187: {
+case 198: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Equal, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 188: {
+case 199: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::NotEqual, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 189: {
+case 200: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::StrictEqual, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 190: {
+case 201: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::StrictNotEqual, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 192: {
+case 203: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::BitAnd, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 194: {
+case 205: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::BitAnd, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 196: {
+case 207: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::BitXor, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 198: {
+case 209: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::BitXor, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 200: {
+case 211: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::BitOr, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 202: {
+case 213: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::BitOr, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 204: {
+case 215: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::And, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 206: {
+case 217: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::And, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 208: {
+case 219: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Or, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 210: {
+case 221: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
QSOperator::Or, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 212: {
+case 223: {
AST::ConditionalExpression *node = makeAstNode<AST::ConditionalExpression> (driver->nodePool(), sym(1).Expression,
sym(3).Expression, sym(5).Expression);
node->questionToken = loc(2);
@@ -1179,7 +1228,7 @@ case 212: {
sym(1).Node = node;
} break;
-case 214: {
+case 225: {
AST::ConditionalExpression *node = makeAstNode<AST::ConditionalExpression> (driver->nodePool(), sym(1).Expression,
sym(3).Expression, sym(5).Expression);
node->questionToken = loc(2);
@@ -1187,112 +1236,112 @@ case 214: {
sym(1).Node = node;
} break;
-case 216: {
+case 227: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
sym(2).ival, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 218: {
+case 229: {
AST::BinaryExpression *node = makeAstNode<AST::BinaryExpression> (driver->nodePool(), sym(1).Expression,
sym(2).ival, sym(3).Expression);
node->operatorToken = loc(2);
sym(1).Node = node;
} break;
-case 219: {
+case 230: {
sym(1).ival = QSOperator::Assign;
} break;
-case 220: {
+case 231: {
sym(1).ival = QSOperator::InplaceMul;
} break;
-case 221: {
+case 232: {
sym(1).ival = QSOperator::InplaceDiv;
} break;
-case 222: {
+case 233: {
sym(1).ival = QSOperator::InplaceMod;
} break;
-case 223: {
+case 234: {
sym(1).ival = QSOperator::InplaceAdd;
} break;
-case 224: {
+case 235: {
sym(1).ival = QSOperator::InplaceSub;
} break;
-case 225: {
+case 236: {
sym(1).ival = QSOperator::InplaceLeftShift;
} break;
-case 226: {
+case 237: {
sym(1).ival = QSOperator::InplaceRightShift;
} break;
-case 227: {
+case 238: {
sym(1).ival = QSOperator::InplaceURightShift;
} break;
-case 228: {
+case 239: {
sym(1).ival = QSOperator::InplaceAnd;
} break;
-case 229: {
+case 240: {
sym(1).ival = QSOperator::InplaceXor;
} break;
-case 230: {
+case 241: {
sym(1).ival = QSOperator::InplaceOr;
} break;
-case 232: {
+case 243: {
AST::Expression *node = makeAstNode<AST::Expression> (driver->nodePool(), sym(1).Expression, sym(3).Expression);
node->commaToken = loc(2);
sym(1).Node = node;
} break;
-case 233: {
+case 244: {
sym(1).Node = 0;
} break;
-case 236: {
+case 247: {
AST::Expression *node = makeAstNode<AST::Expression> (driver->nodePool(), sym(1).Expression, sym(3).Expression);
node->commaToken = loc(2);
sym(1).Node = node;
} break;
-case 237: {
+case 248: {
sym(1).Node = 0;
} break;
-case 254: {
+case 265: {
AST::Block *node = makeAstNode<AST::Block> (driver->nodePool(), sym(2).StatementList);
node->lbraceToken = loc(1);
node->rbraceToken = loc(3);
sym(1).Node = node;
} break;
-case 255: {
+case 266: {
sym(1).Node = makeAstNode<AST::StatementList> (driver->nodePool(), sym(1).Statement);
} break;
-case 256: {
+case 267: {
sym(1).Node = makeAstNode<AST::StatementList> (driver->nodePool(), sym(1).StatementList, sym(2).Statement);
} break;
-case 257: {
+case 268: {
sym(1).Node = 0;
} break;
-case 258: {
+case 269: {
sym(1).Node = sym(1).StatementList->finish ();
} break;
-case 260: {
+case 271: {
AST::VariableStatement *node = makeAstNode<AST::VariableStatement> (driver->nodePool(),
sym(2).VariableDeclarationList->finish (/*readOnly=*/sym(1).ival == T_CONST));
node->declarationKindToken = loc(1);
@@ -1300,76 +1349,76 @@ case 260: {
sym(1).Node = node;
} break;
-case 261: {
+case 272: {
sym(1).ival = T_CONST;
} break;
-case 262: {
+case 273: {
sym(1).ival = T_VAR;
} break;
-case 263: {
+case 274: {
sym(1).Node = makeAstNode<AST::VariableDeclarationList> (driver->nodePool(), sym(1).VariableDeclaration);
} break;
-case 264: {
+case 275: {
AST::VariableDeclarationList *node = makeAstNode<AST::VariableDeclarationList> (driver->nodePool(),
sym(1).VariableDeclarationList, sym(3).VariableDeclaration);
node->commaToken = loc(2);
sym(1).Node = node;
} break;
-case 265: {
+case 276: {
sym(1).Node = makeAstNode<AST::VariableDeclarationList> (driver->nodePool(), sym(1).VariableDeclaration);
} break;
-case 266: {
+case 277: {
sym(1).Node = makeAstNode<AST::VariableDeclarationList> (driver->nodePool(), sym(1).VariableDeclarationList, sym(3).VariableDeclaration);
} break;
-case 267: {
+case 278: {
AST::VariableDeclaration *node = makeAstNode<AST::VariableDeclaration> (driver->nodePool(), sym(1).sval, sym(2).Expression);
node->identifierToken = loc(1);
sym(1).Node = node;
} break;
-case 268: {
+case 279: {
AST::VariableDeclaration *node = makeAstNode<AST::VariableDeclaration> (driver->nodePool(), sym(1).sval, sym(2).Expression);
node->identifierToken = loc(1);
sym(1).Node = node;
} break;
-case 269: {
+case 280: {
// ### TODO: AST for initializer
sym(1) = sym(2);
} break;
-case 270: {
+case 281: {
sym(1).Node = 0;
} break;
-case 272: {
+case 283: {
// ### TODO: AST for initializer
sym(1) = sym(2);
} break;
-case 273: {
+case 284: {
sym(1).Node = 0;
} break;
-case 275: {
+case 286: {
AST::EmptyStatement *node = makeAstNode<AST::EmptyStatement> (driver->nodePool());
node->semicolonToken = loc(1);
sym(1).Node = node;
} break;
-case 277: {
+case 288: {
AST::ExpressionStatement *node = makeAstNode<AST::ExpressionStatement> (driver->nodePool(), sym(1).Expression);
node->semicolonToken = loc(2);
sym(1).Node = node;
} break;
-case 278: {
+case 289: {
AST::IfStatement *node = makeAstNode<AST::IfStatement> (driver->nodePool(), sym(3).Expression, sym(5).Statement, sym(7).Statement);
node->ifToken = loc(1);
node->lparenToken = loc(2);
@@ -1378,7 +1427,7 @@ case 278: {
sym(1).Node = node;
} break;
-case 279: {
+case 290: {
AST::IfStatement *node = makeAstNode<AST::IfStatement> (driver->nodePool(), sym(3).Expression, sym(5).Statement);
node->ifToken = loc(1);
node->lparenToken = loc(2);
@@ -1386,7 +1435,7 @@ case 279: {
sym(1).Node = node;
} break;
-case 281: {
+case 292: {
AST::DoWhileStatement *node = makeAstNode<AST::DoWhileStatement> (driver->nodePool(), sym(2).Statement, sym(5).Expression);
node->doToken = loc(1);
node->whileToken = loc(3);
@@ -1396,7 +1445,7 @@ case 281: {
sym(1).Node = node;
} break;
-case 282: {
+case 293: {
AST::WhileStatement *node = makeAstNode<AST::WhileStatement> (driver->nodePool(), sym(3).Expression, sym(5).Statement);
node->whileToken = loc(1);
node->lparenToken = loc(2);
@@ -1404,7 +1453,7 @@ case 282: {
sym(1).Node = node;
} break;
-case 283: {
+case 294: {
AST::ForStatement *node = makeAstNode<AST::ForStatement> (driver->nodePool(), sym(3).Expression,
sym(5).Expression, sym(7).Expression, sym(9).Statement);
node->forToken = loc(1);
@@ -1415,7 +1464,7 @@ case 283: {
sym(1).Node = node;
} break;
-case 284: {
+case 295: {
AST::LocalForStatement *node = makeAstNode<AST::LocalForStatement> (driver->nodePool(),
sym(4).VariableDeclarationList->finish (/*readOnly=*/false), sym(6).Expression,
sym(8).Expression, sym(10).Statement);
@@ -1428,7 +1477,7 @@ case 284: {
sym(1).Node = node;
} break;
-case 285: {
+case 296: {
AST:: ForEachStatement *node = makeAstNode<AST::ForEachStatement> (driver->nodePool(), sym(3).Expression,
sym(5).Expression, sym(7).Statement);
node->forToken = loc(1);
@@ -1438,7 +1487,7 @@ case 285: {
sym(1).Node = node;
} break;
-case 286: {
+case 297: {
AST::LocalForEachStatement *node = makeAstNode<AST::LocalForEachStatement> (driver->nodePool(),
sym(4).VariableDeclaration, sym(6).Expression, sym(8).Statement);
node->forToken = loc(1);
@@ -1449,14 +1498,14 @@ case 286: {
sym(1).Node = node;
} break;
-case 288: {
+case 299: {
AST::ContinueStatement *node = makeAstNode<AST::ContinueStatement> (driver->nodePool());
node->continueToken = loc(1);
node->semicolonToken = loc(2);
sym(1).Node = node;
} break;
-case 290: {
+case 301: {
AST::ContinueStatement *node = makeAstNode<AST::ContinueStatement> (driver->nodePool(), sym(2).sval);
node->continueToken = loc(1);
node->identifierToken = loc(2);
@@ -1464,14 +1513,14 @@ case 290: {
sym(1).Node = node;
} break;
-case 292: {
+case 303: {
AST::BreakStatement *node = makeAstNode<AST::BreakStatement> (driver->nodePool());
node->breakToken = loc(1);
node->semicolonToken = loc(2);
sym(1).Node = node;
} break;
-case 294: {
+case 305: {
AST::BreakStatement *node = makeAstNode<AST::BreakStatement> (driver->nodePool(), sym(2).sval);
node->breakToken = loc(1);
node->identifierToken = loc(2);
@@ -1479,14 +1528,14 @@ case 294: {
sym(1).Node = node;
} break;
-case 296: {
+case 307: {
AST::ReturnStatement *node = makeAstNode<AST::ReturnStatement> (driver->nodePool(), sym(2).Expression);
node->returnToken = loc(1);
node->semicolonToken = loc(3);
sym(1).Node = node;
} break;
-case 297: {
+case 308: {
AST::WithStatement *node = makeAstNode<AST::WithStatement> (driver->nodePool(), sym(3).Expression, sym(5).Statement);
node->withToken = loc(1);
node->lparenToken = loc(2);
@@ -1494,7 +1543,7 @@ case 297: {
sym(1).Node = node;
} break;
-case 298: {
+case 309: {
AST::SwitchStatement *node = makeAstNode<AST::SwitchStatement> (driver->nodePool(), sym(3).Expression, sym(5).CaseBlock);
node->switchToken = loc(1);
node->lparenToken = loc(2);
@@ -1502,90 +1551,90 @@ case 298: {
sym(1).Node = node;
} break;
-case 299: {
+case 310: {
AST::CaseBlock *node = makeAstNode<AST::CaseBlock> (driver->nodePool(), sym(2).CaseClauses);
node->lbraceToken = loc(1);
node->rbraceToken = loc(3);
sym(1).Node = node;
} break;
-case 300: {
+case 311: {
AST::CaseBlock *node = makeAstNode<AST::CaseBlock> (driver->nodePool(), sym(2).CaseClauses, sym(3).DefaultClause, sym(4).CaseClauses);
node->lbraceToken = loc(1);
node->rbraceToken = loc(5);
sym(1).Node = node;
} break;
-case 301: {
+case 312: {
sym(1).Node = makeAstNode<AST::CaseClauses> (driver->nodePool(), sym(1).CaseClause);
} break;
-case 302: {
+case 313: {
sym(1).Node = makeAstNode<AST::CaseClauses> (driver->nodePool(), sym(1).CaseClauses, sym(2).CaseClause);
} break;
-case 303: {
+case 314: {
sym(1).Node = 0;
} break;
-case 304: {
+case 315: {
sym(1).Node = sym(1).CaseClauses->finish ();
} break;
-case 305: {
+case 316: {
AST::CaseClause *node = makeAstNode<AST::CaseClause> (driver->nodePool(), sym(2).Expression, sym(4).StatementList);
node->caseToken = loc(1);
node->colonToken = loc(3);
sym(1).Node = node;
} break;
-case 306: {
+case 317: {
AST::DefaultClause *node = makeAstNode<AST::DefaultClause> (driver->nodePool(), sym(3).StatementList);
node->defaultToken = loc(1);
node->colonToken = loc(2);
sym(1).Node = node;
} break;
-case 307:
-case 308: {
+case 318:
+case 319: {
AST::LabelledStatement *node = makeAstNode<AST::LabelledStatement> (driver->nodePool(), driver->intern(lexer->characterBuffer(), lexer->characterCount()), sym(3).Statement);
node->identifierToken = loc(1);
node->colonToken = loc(2);
sym(1).Node = node;
} break;
-case 309: {
+case 320: {
AST::LabelledStatement *node = makeAstNode<AST::LabelledStatement> (driver->nodePool(), sym(1).sval, sym(3).Statement);
node->identifierToken = loc(1);
node->colonToken = loc(2);
sym(1).Node = node;
} break;
-case 311: {
+case 322: {
AST::ThrowStatement *node = makeAstNode<AST::ThrowStatement> (driver->nodePool(), sym(2).Expression);
node->throwToken = loc(1);
node->semicolonToken = loc(3);
sym(1).Node = node;
} break;
-case 312: {
+case 323: {
AST::TryStatement *node = makeAstNode<AST::TryStatement> (driver->nodePool(), sym(2).Statement, sym(3).Catch);
node->tryToken = loc(1);
sym(1).Node = node;
} break;
-case 313: {
+case 324: {
AST::TryStatement *node = makeAstNode<AST::TryStatement> (driver->nodePool(), sym(2).Statement, sym(3).Finally);
node->tryToken = loc(1);
sym(1).Node = node;
} break;
-case 314: {
+case 325: {
AST::TryStatement *node = makeAstNode<AST::TryStatement> (driver->nodePool(), sym(2).Statement, sym(3).Catch, sym(4).Finally);
node->tryToken = loc(1);
sym(1).Node = node;
} break;
-case 315: {
+case 326: {
AST::Catch *node = makeAstNode<AST::Catch> (driver->nodePool(), sym(3).sval, sym(5).Block);
node->catchToken = loc(1);
node->lparenToken = loc(2);
@@ -1594,20 +1643,20 @@ case 315: {
sym(1).Node = node;
} break;
-case 316: {
+case 327: {
AST::Finally *node = makeAstNode<AST::Finally> (driver->nodePool(), sym(2).Block);
node->finallyToken = loc(1);
sym(1).Node = node;
} break;
-case 318: {
+case 329: {
AST::DebuggerStatement *node = makeAstNode<AST::DebuggerStatement> (driver->nodePool());
node->debuggerToken = loc(1);
node->semicolonToken = loc(2);
sym(1).Node = node;
} break;
-case 319: {
+case 330: {
AST::FunctionDeclaration *node = makeAstNode<AST::FunctionDeclaration> (driver->nodePool(), sym(2).sval, sym(4).FormalParameterList, sym(7).FunctionBody);
node->functionToken = loc(1);
node->identifierToken = loc(2);
@@ -1618,7 +1667,7 @@ case 319: {
sym(1).Node = node;
} break;
-case 320: {
+case 331: {
AST::FunctionExpression *node = makeAstNode<AST::FunctionExpression> (driver->nodePool(), sym(2).sval, sym(4).FormalParameterList, sym(7).FunctionBody);
node->functionToken = loc(1);
if (sym(2).sval)
@@ -1630,56 +1679,56 @@ case 320: {
sym(1).Node = node;
} break;
-case 321: {
+case 332: {
AST::FormalParameterList *node = makeAstNode<AST::FormalParameterList> (driver->nodePool(), sym(1).sval);
node->identifierToken = loc(1);
sym(1).Node = node;
} break;
-case 322: {
+case 333: {
AST::FormalParameterList *node = makeAstNode<AST::FormalParameterList> (driver->nodePool(), sym(1).FormalParameterList, sym(3).sval);
node->commaToken = loc(2);
node->identifierToken = loc(3);
sym(1).Node = node;
} break;
-case 323: {
+case 334: {
sym(1).Node = 0;
} break;
-case 324: {
+case 335: {
sym(1).Node = sym(1).FormalParameterList->finish ();
} break;
-case 325: {
+case 336: {
sym(1).Node = 0;
} break;
-case 327: {
+case 338: {
sym(1).Node = makeAstNode<AST::FunctionBody> (driver->nodePool(), sym(1).SourceElements->finish ());
} break;
-case 328: {
+case 339: {
sym(1).Node = makeAstNode<AST::SourceElements> (driver->nodePool(), sym(1).SourceElement);
} break;
-case 329: {
+case 340: {
sym(1).Node = makeAstNode<AST::SourceElements> (driver->nodePool(), sym(1).SourceElements, sym(2).SourceElement);
} break;
-case 330: {
+case 341: {
sym(1).Node = makeAstNode<AST::StatementSourceElement> (driver->nodePool(), sym(1).Statement);
} break;
-case 331: {
+case 342: {
sym(1).Node = makeAstNode<AST::FunctionSourceElement> (driver->nodePool(), sym(1).FunctionDeclaration);
} break;
-case 332: {
+case 343: {
sym(1).sval = 0;
} break;
-case 334: {
+case 345: {
sym(1).Node = 0;
} break;
diff --git a/src/declarative/qml/parser/qmljsparser_p.h b/src/declarative/qml/parser/qmljsparser_p.h
index 6f36484..74d3c84 100644
--- a/src/declarative/qml/parser/qmljsparser_p.h
+++ b/src/declarative/qml/parser/qmljsparser_p.h
@@ -120,6 +120,8 @@ public:
AST::UiObjectMemberList *UiObjectMemberList;
AST::UiArrayMemberList *UiArrayMemberList;
AST::UiQualifiedId *UiQualifiedId;
+ AST::UiAttributeList *UiAttributeList;
+ AST::UiAttribute *UiAttribute;
};
public:
@@ -219,9 +221,9 @@ protected:
-#define J_SCRIPT_REGEXPLITERAL_RULE1 68
+#define J_SCRIPT_REGEXPLITERAL_RULE1 79
-#define J_SCRIPT_REGEXPLITERAL_RULE2 69
+#define J_SCRIPT_REGEXPLITERAL_RULE2 80
QT_END_NAMESPACE
diff --git a/src/declarative/qml/qml.h b/src/declarative/qml/qml.h
index d43e693..e7fbff3 100644
--- a/src/declarative/qml/qml.h
+++ b/src/declarative/qml/qml.h
@@ -73,17 +73,14 @@ QT_MODULE(Declarative)
QT_BEGIN_NAMESPACE
-//#define QML_FORCE_NAMESPACE "Qt/4.6/"
-#define QML_FORCE_NAMESPACE
-
#define QML_DEFINE_INTERFACE(INTERFACE) \
template<> QmlPrivate::InstanceType QmlPrivate::Define<INTERFACE *>::instance(qmlRegisterInterface<INTERFACE>(#INTERFACE));
-#define QML_DEFINE_EXTENDED_TYPE(TYPE, NAME, EXTENSION) \
- template<> QmlPrivate::InstanceType QmlPrivate::Define<TYPE *>::instance(qmlRegisterExtendedType<TYPE,EXTENSION>(QML_FORCE_NAMESPACE #NAME, #TYPE));
+#define QML_DEFINE_EXTENDED_TYPE(URI, VERSION_MAJ, VERSION_MIN_FROM, VERSION_MIN_TO, NAME, TYPE, EXTENSION) \
+ template<> QmlPrivate::InstanceType QmlPrivate::Define<TYPE *>::instance(qmlRegisterExtendedType<TYPE,EXTENSION>(#URI, VERSION_MAJ, VERSION_MIN_FROM, VERSION_MIN_TO, #NAME, #TYPE));
-#define QML_DEFINE_TYPE(TYPE, NAME) \
- template<> QmlPrivate::InstanceType QmlPrivate::Define<TYPE *>::instance(qmlRegisterType<TYPE>(QML_FORCE_NAMESPACE #NAME, #TYPE));
+#define QML_DEFINE_TYPE(URI, VERSION_MAJ, VERSION_MIN_FROM, VERSION_MIN_TO, NAME, TYPE) \
+ template<> QmlPrivate::InstanceType QmlPrivate::Define<TYPE *>::instance(qmlRegisterType<TYPE>(#URI, VERSION_MAJ, VERSION_MIN_FROM, VERSION_MIN_TO, #NAME, #TYPE));
#define QML_DEFINE_EXTENDED_NOCREATE_TYPE(TYPE, EXTENSION) \
template<> QmlPrivate::InstanceType QmlPrivate::Define<TYPE *>::instance(qmlRegisterExtendedType<TYPE,EXTENSION>(#TYPE));
diff --git a/src/declarative/qml/qmlbindablecomponent.cpp b/src/declarative/qml/qmlbindablecomponent.cpp
index ed9924a..6938592 100644
--- a/src/declarative/qml/qmlbindablecomponent.cpp
+++ b/src/declarative/qml/qmlbindablecomponent.cpp
@@ -85,6 +85,31 @@ QScriptValue QmlBindableComponent::createObject()
return QmlEngine::qmlScriptObject(ret, d->engine);
}
+/*!
+ Return the list of errors that occured during the last compile or create
+ operation, as a single string. An empty string is returned if isError()
+ is not set.
+
+ This function is similar to errors(), except more useful when called from
+ QML. C++ code should usually use errors().
+
+ \sa errors()
+*/
+QString QmlBindableComponent::errorsString() const
+{
+ Q_D(const QmlBindableComponent);
+ QString ret;
+ if(!isError())
+ return ret;
+ foreach(const QmlError &e, d->errors) {
+ ret += e.url().toString() + QLatin1String(":") +
+ QString::number(e.line()) + QLatin1String(" ") +
+ e.description() + QLatin1String("\n");
+ }
+ return ret;
+}
+
+
void QmlBindableComponent::statusChange(QmlComponent::Status newStatus)
{
Q_D(QmlBindableComponent);
diff --git a/src/declarative/qml/qmlbindablecomponent.h b/src/declarative/qml/qmlbindablecomponent.h
index 2b3e0ce..43e3537 100644
--- a/src/declarative/qml/qmlbindablecomponent.h
+++ b/src/declarative/qml/qmlbindablecomponent.h
@@ -72,6 +72,7 @@ public:
Q_PROPERTY(bool isLoading READ isLoading NOTIFY isLoadingChanged);
Q_INVOKABLE QScriptValue createObject();
+ Q_INVOKABLE QString errorsString() const;
void setContext(QmlContext* c);
Q_SIGNALS:
diff --git a/src/declarative/qml/qmlcompiler.cpp b/src/declarative/qml/qmlcompiler.cpp
index 407314a..94710c6 100644
--- a/src/declarative/qml/qmlcompiler.cpp
+++ b/src/declarative/qml/qmlcompiler.cpp
@@ -1035,7 +1035,7 @@ bool QmlCompiler::buildSubObject(Object *obj, const BindingContext &ctxt)
int QmlCompiler::componentTypeRef()
{
- QmlType *t = QmlMetaType::qmlType("Component");
+ QmlType *t = QmlMetaType::qmlType("Qt/4.6/Component");
for (int ii = output->types.count() - 1; ii >= 0; --ii) {
if (output->types.at(ii).type == t)
return ii;
@@ -1147,7 +1147,7 @@ bool QmlCompiler::buildProperty(QmlParser::Property *prop,
COMPILE_EXCEPTION(prop, "Attached properties cannot be used here");
}
- QmlType *type = QmlMetaType::qmlType(prop->name);
+ QmlType *type = QmlMetaType::qmlType("Qt/4.6/"+prop->name); // XXX Should not hard-code namespace
if (!type || !type->attachedPropertiesType())
COMPILE_EXCEPTION(prop, "Non-existant attached object");
@@ -1426,7 +1426,7 @@ bool QmlCompiler::buildAttachedProperty(QmlParser::Property *prop,
const BindingContext &ctxt)
{
Q_ASSERT(prop->value);
- int id = QmlMetaType::attachedPropertiesFuncId(prop->name);
+ int id = QmlMetaType::attachedPropertiesFuncId("Qt/4.6/"+prop->name); // XXX Should not hard-code namespace
Q_ASSERT(id != -1); // This is checked in compileProperty()
prop->index = id;
diff --git a/src/declarative/qml/qmlcomponent.cpp b/src/declarative/qml/qmlcomponent.cpp
index 0fdba64..214d2fa 100644
--- a/src/declarative/qml/qmlcomponent.cpp
+++ b/src/declarative/qml/qmlcomponent.cpp
@@ -95,7 +95,7 @@ Item {
}
\endqml
*/
-QML_DEFINE_TYPE(QmlComponent,Component);
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Component,QmlComponent);
/*!
\enum QmlComponent::Status
@@ -390,30 +390,6 @@ QList<QmlError> QmlComponent::errors() const
}
/*!
- Return the list of errors that occured during the last compile or create
- operation, as a single string. An empty string is returned if isError()
- is not set.
-
- This function is similar to errors(), except more useful when called from
- QML. C++ code should usually use errors().
-
- \sa errors()
-*/
-QString QmlComponent::errorsString() const
-{
- Q_D(const QmlComponent);
- QString ret;
- if(!isError())
- return ret;
- foreach(const QmlError &e, d->errors) {
- ret += e.url().toString() + QLatin1String(":") +
- QString::number(e.line()) + QLatin1String(" ") +
- e.description() + QLatin1String("\n");
- }
- return ret;
-}
-
-/*!
Return the component URL. This is the URL passed to either the constructor,
or the loadUrl() or setData() methods.
*/
diff --git a/src/declarative/qml/qmlcomponent.h b/src/declarative/qml/qmlcomponent.h
index 45b26eb..60b7ccd 100644
--- a/src/declarative/qml/qmlcomponent.h
+++ b/src/declarative/qml/qmlcomponent.h
@@ -83,7 +83,6 @@ public:
bool isLoading() const;
QList<QmlError> errors() const;
- Q_INVOKABLE QString errorsString() const;
QUrl url() const;
diff --git a/src/declarative/qml/qmlcustomparser_p.h b/src/declarative/qml/qmlcustomparser_p.h
index 914ddbd..3d55d3e 100644
--- a/src/declarative/qml/qmlcustomparser_p.h
+++ b/src/declarative/qml/qmlcustomparser_p.h
@@ -112,8 +112,8 @@ public:
virtual QByteArray compile(const QList<QmlCustomParserProperty> &, bool *ok);
virtual void setCustomData(QObject *, const QByteArray &);
};
-#define QML_DEFINE_CUSTOM_TYPE(TYPE, NAME, CUSTOMTYPE) \
- template<> QmlPrivate::InstanceType QmlPrivate::Define<TYPE *>::instance(qmlRegisterCustomType<TYPE>(#NAME, #TYPE, new CUSTOMTYPE));
+#define QML_DEFINE_CUSTOM_TYPE(URI, VERSION_MAJ, VERSION_MIN_FROM, VERSION_MAJ_TO, NAME, TYPE, CUSTOMTYPE) \
+ template<> QmlPrivate::InstanceType QmlPrivate::Define<TYPE *>::instance(qmlRegisterCustomType<TYPE>(#URI, VERSION_MAJ, VERSION_MIN_FROM, VERSION_MAJ_TO, #NAME, #TYPE, new CUSTOMTYPE));
QT_END_NAMESPACE
diff --git a/src/declarative/qml/qmlengine.cpp b/src/declarative/qml/qmlengine.cpp
index 6549e5c..2229916 100644
--- a/src/declarative/qml/qmlengine.cpp
+++ b/src/declarative/qml/qmlengine.cpp
@@ -85,7 +85,7 @@ QT_BEGIN_NAMESPACE
DEFINE_BOOL_CONFIG_OPTION(qmlDebugger, QML_DEBUGGER)
DEFINE_BOOL_CONFIG_OPTION(qmlImportTrace, QML_IMPORT_TRACE)
-QML_DEFINE_TYPE(QObject,Object)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Object,QObject)
struct StaticQtMetaObject : public QObject
{
diff --git a/src/declarative/qml/qmlmetatype.cpp b/src/declarative/qml/qmlmetatype.cpp
index 16baf08..3552b44 100644
--- a/src/declarative/qml/qmlmetatype.cpp
+++ b/src/declarative/qml/qmlmetatype.cpp
@@ -56,6 +56,7 @@
#include <qstringlist.h>
#include <qvector.h>
#include <qlocale.h>
+//#include <ctypes.h>
#include <QtCore/qcryptographichash.h>
#include <private/qmlcustomparser_p.h>
@@ -416,26 +417,66 @@ int QmlMetaType::registerInterface(const QmlPrivate::MetaTypeIds &id,
return index;
}
-int QmlMetaType::registerType(const QmlPrivate::MetaTypeIds &id, QmlPrivate::Func func, const char *cname, const QMetaObject *mo, QmlAttachedPropertiesFunc attach, const QMetaObject *attachMo, int pStatus, int object, QmlPrivate::CreateFunc extFunc, const QMetaObject *extmo, QmlCustomParser *parser)
+int QmlMetaType::registerType(const QmlPrivate::MetaTypeIds &id, QmlPrivate::Func func,
+ const char *uri, int version_maj, int version_min_from, int version_min_to, const char *cname,
+ const QMetaObject *mo, QmlAttachedPropertiesFunc attach, const QMetaObject *attachMo,
+ int pStatus, int object, QmlPrivate::CreateFunc extFunc, const QMetaObject *extmo, QmlCustomParser *parser)
+{
+ QByteArray version;
+ if (uri && (version_maj || version_min_from || version_min_to)) {
+ if (version_min_from != version_min_to) {
+ int r=-1;
+ for (int min=version_min_from; min<=version_min_to; ++min) {
+ int e = registerType(id,func,uri,version_maj,min,min,cname,mo,attach,attachMo,pStatus,object,extFunc,extmo,parser);
+ if (e<0) return -1;
+ if (r<0) r = e;
+ }
+ return r; // returns index of FIRST version of type (not currently used anywhere though)
+ }
+ version = QByteArray::number(version_maj) + '.' + QByteArray::number(version_min_from);
+ } else {
+ // No URI? No version!
+ Q_ASSERT(!version_maj && !version_min_from && !version_min_to);
+ }
+ return registerType(id,func,uri,version,cname,mo,attach,attachMo,pStatus,object,extFunc,extmo,parser);
+}
+
+
+int QmlMetaType::registerType(const QmlPrivate::MetaTypeIds &id, QmlPrivate::Func func,
+ const char *uri, const char *version, const char *cname,
+ const QMetaObject *mo, QmlAttachedPropertiesFunc attach, const QMetaObject *attachMo,
+ int pStatus, int object, QmlPrivate::CreateFunc extFunc, const QMetaObject *extmo, QmlCustomParser *parser)
{
Q_UNUSED(object);
- QWriteLocker lock(metaTypeDataLock());
- QmlMetaTypeData *data = metaTypeData();
+ QByteArray name = cname;
- QString name = QLatin1String(cname);
+ if (uri) {
+ if (version) {
+ name = QByteArray(uri) + '/' + version + '/' + name;
+ } else {
+ name = QByteArray(uri) + '/' + name;
+ }
+ } else {
+ // No URI? No version!
+ Q_ASSERT(!version);
+ }
- for (int ii = 0; ii < name.count(); ++ii) {
- QChar ch = name.at(ii);
- if (!ch.isLetterOrNumber() && ch != QChar::fromLatin1('/') && ch != QChar::fromLatin1('.')) {
- qWarning("QmlMetaType: Invalid QML name %s", cname);
- return -1;
+ if (cname) {
+ for (int ii = 0; cname[ii]; ++ii) {
+ if (!isalnum(cname[ii])) {
+ qWarning("QmlMetaType: Invalid QML name %s", cname);
+ return -1;
+ }
}
}
+ QWriteLocker lock(metaTypeDataLock());
+ QmlMetaTypeData *data = metaTypeData();
+
int index = data->types.count();
QmlType *type = new QmlType(id.typeId, id.listId, id.qmlListId,
- func, cname, mo, attach, attachMo, pStatus, extFunc,
+ func, name, mo, attach, attachMo, pStatus, extFunc,
extmo, index, parser);
data->types.append(type);
@@ -458,7 +499,7 @@ int QmlMetaType::registerType(const QmlPrivate::MetaTypeIds &id, QmlPrivate::Fun
data->qmllists.setBit(id.qmlListId, true);
data->lists.setBit(id.listId, true);
- return index;
+ return index; // Note: multi-version call only uses first.
}
int QmlMetaType::qmlParserStatusCast(int userType)
@@ -634,7 +675,7 @@ int QmlMetaType::attachedPropertiesFuncId(const QByteArray &name)
QReadLocker lock(metaTypeDataLock());
QmlMetaTypeData *data = metaTypeData();
- QmlType *type = data->nameToType.value(name);
+ QmlType *type = data->nameToType.value("Qt/4.6/"+name); // XXX Should not hard-code namespace
if (type && type->attachedPropertiesFunction())
return type->index();
else
diff --git a/src/declarative/qml/qmlmetatype.h b/src/declarative/qml/qmlmetatype.h
index d10a0f0..e023e83 100644
--- a/src/declarative/qml/qmlmetatype.h
+++ b/src/declarative/qml/qmlmetatype.h
@@ -59,7 +59,8 @@ class QmlCustomParser;
class Q_DECLARATIVE_EXPORT QmlMetaType
{
public:
- static int registerType(const QmlPrivate::MetaTypeIds &, QmlPrivate::Func, const char *, const QMetaObject *, QmlAttachedPropertiesFunc, const QMetaObject *, int pStatus, int object, QmlPrivate::CreateFunc extFunc, const QMetaObject *extmo, QmlCustomParser *);
+ static int registerType(const QmlPrivate::MetaTypeIds &, QmlPrivate::Func, const char *, const char *version, const char *qmlName, const QMetaObject *, QmlAttachedPropertiesFunc, const QMetaObject *, int pStatus, int object, QmlPrivate::CreateFunc extFunc, const QMetaObject *extmo, QmlCustomParser *);
+ static int registerType(const QmlPrivate::MetaTypeIds &, QmlPrivate::Func, const char *, int vmaj, int vmin_from, int vmin_to, const char *qmlName, const QMetaObject *, QmlAttachedPropertiesFunc, const QMetaObject *, int pStatus, int object, QmlPrivate::CreateFunc extFunc, const QMetaObject *extmo, QmlCustomParser *);
static int registerInterface(const QmlPrivate::MetaTypeIds &, QmlPrivate::Func, const char *);
static bool copy(int type, void *data, const void *copy = 0);
@@ -163,7 +164,7 @@ int qmlRegisterType(const char *typeName)
qRegisterMetaType<T *>(QByteArray("QmlList<" + name + "*>*").constData())
};
- return QmlMetaType::registerType(ids, QmlPrivate::list_nocreate_op<T>, 0,
+ return QmlMetaType::registerType(ids, QmlPrivate::list_nocreate_op<T>, 0, 0, 0,
&T::staticMetaObject,
QmlPrivate::attachedPropertiesFunc<T>(),
QmlPrivate::attachedPropertiesMetaObject<T>(),
@@ -173,7 +174,7 @@ int qmlRegisterType(const char *typeName)
}
template<typename T>
-int qmlRegisterType(const char *qmlName, const char *typeName)
+int qmlRegisterType(const char *uri, int version_maj, int version_min_from, int version_min_to, const char *qmlName, const char *typeName)
{
QByteArray name(typeName);
QmlPrivate::MetaTypeIds ids = {
@@ -182,7 +183,8 @@ int qmlRegisterType(const char *qmlName, const char *typeName)
qRegisterMetaType<T *>(QByteArray("QmlList<" + name + "*>*").constData())
};
- return QmlMetaType::registerType(ids, QmlPrivate::list_op<T>, qmlName,
+ return QmlMetaType::registerType(ids, QmlPrivate::list_op<T>,
+ uri, version_maj, version_min_from, version_min_to, qmlName,
&T::staticMetaObject,
QmlPrivate::attachedPropertiesFunc<T>(),
QmlPrivate::attachedPropertiesMetaObject<T>(),
@@ -210,7 +212,7 @@ int qmlRegisterExtendedType(const char *typeName)
attachedMo = QmlPrivate::attachedPropertiesMetaObject<T>();
}
- return QmlMetaType::registerType(ids, QmlPrivate::list_nocreate_op<T>, 0,
+ return QmlMetaType::registerType(ids, QmlPrivate::list_nocreate_op<T>, 0, 0, 0,
&T::staticMetaObject, attached, attachedMo,
QmlPrivate::StaticCastSelector<T,QmlParserStatus>::cast(),
QmlPrivate::StaticCastSelector<T,QObject>::cast(),
@@ -218,7 +220,7 @@ int qmlRegisterExtendedType(const char *typeName)
}
template<typename T, typename E>
-int qmlRegisterExtendedType(const char *qmlName, const char *typeName)
+int qmlRegisterExtendedType(const char *uri, int version_maj, int version_min_from, int version_min_to, const char *qmlName, const char *typeName)
{
QByteArray name(typeName);
QmlPrivate::MetaTypeIds ids = {
@@ -237,7 +239,7 @@ int qmlRegisterExtendedType(const char *qmlName, const char *typeName)
}
return QmlMetaType::registerType(ids, QmlPrivate::list_op<T>,
- qmlName,
+ uri, version_maj, version_min_from, version_min_to, qmlName,
&T::staticMetaObject,
attached, attachedMo,
QmlPrivate::StaticCastSelector<T,QmlParserStatus>::cast(),
@@ -262,7 +264,7 @@ int qmlRegisterInterface(const char *typeName)
}
template<typename T>
-int qmlRegisterCustomType(const char *qmlName, const char *typeName, QmlCustomParser *parser)
+int qmlRegisterCustomType(const char *uri, int version_maj, int version_min_from, int version_min_to, const char *qmlName, const char *typeName, QmlCustomParser *parser)
{
QByteArray name(typeName);
QmlPrivate::MetaTypeIds ids = {
@@ -271,7 +273,8 @@ int qmlRegisterCustomType(const char *qmlName, const char *typeName, QmlCustomPa
qRegisterMetaType<T *>(QByteArray("QmlList<" + name + "*>*").constData())
};
- return QmlMetaType::registerType(ids, QmlPrivate::list_op<T>, qmlName,
+ return QmlMetaType::registerType(ids, QmlPrivate::list_op<T>,
+ uri, version_maj, version_min_from, version_min_to, qmlName,
&T::staticMetaObject,
QmlPrivate::attachedPropertiesFunc<T>(),
QmlPrivate::attachedPropertiesMetaObject<T>(),
diff --git a/src/declarative/util/qmlanimation.cpp b/src/declarative/util/qmlanimation.cpp
index 1ea6575..27caf20 100644
--- a/src/declarative/util/qmlanimation.cpp
+++ b/src/declarative/util/qmlanimation.cpp
@@ -639,7 +639,7 @@ void QmlAbstractAnimation::timelineComplete()
\l{xmlPauseAnimation} {&lt;PauseAnimation&gt;}.
*/
-QML_DEFINE_TYPE(QmlPauseAnimation,PauseAnimation)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,PauseAnimation,QmlPauseAnimation)
QmlPauseAnimation::QmlPauseAnimation(QObject *parent)
: QmlAbstractAnimation(*(new QmlPauseAnimationPrivate), parent)
{
@@ -771,7 +771,7 @@ void QmlColorAnimation::setTo(const QColor &t)
QmlPropertyAnimation::setTo(t);
}
-QML_DEFINE_TYPE(QmlColorAnimation,ColorAnimation)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,ColorAnimation,QmlColorAnimation)
/*!
\qmlclass RunScriptAction QmlRunScriptAction
@@ -865,7 +865,7 @@ QAbstractAnimation *QmlRunScriptAction::qtAnimation()
return d->rsa;
}
-QML_DEFINE_TYPE(QmlRunScriptAction, RunScriptAction)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,RunScriptAction,QmlRunScriptAction)
/*!
\qmlclass SetPropertyAction QmlSetPropertyAction
@@ -1073,7 +1073,7 @@ void QmlSetPropertyAction::transition(QmlStateActions &actions,
}
}
-QML_DEFINE_TYPE(QmlSetPropertyAction,SetPropertyAction)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,SetPropertyAction,QmlSetPropertyAction)
/*!
\qmlclass ParentChangeAction QmlParentChangeAction
@@ -1170,7 +1170,7 @@ void QmlParentChangeAction::transition(QmlStateActions &actions,
}
}
-QML_DEFINE_TYPE(QmlParentChangeAction,ParentChangeAction)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,ParentChangeAction,QmlParentChangeAction)
/*!
\qmlclass NumberAnimation QmlNumberAnimation
@@ -1248,7 +1248,7 @@ void QmlNumberAnimation::setTo(qreal t)
QmlPropertyAnimation::setTo(t);
}
-QML_DEFINE_TYPE(QmlNumberAnimation,NumberAnimation)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,NumberAnimation,QmlNumberAnimation)
QmlAnimationGroup::QmlAnimationGroup(QObject *parent)
: QmlAbstractAnimation(*(new QmlAnimationGroupPrivate), parent)
@@ -1338,7 +1338,7 @@ void QmlSequentialAnimation::transition(QmlStateActions &actions,
}
}
-QML_DEFINE_TYPE(QmlSequentialAnimation,SequentialAnimation)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,SequentialAnimation,QmlSequentialAnimation)
/*!
\qmlclass ParallelAnimation QmlParallelAnimation
@@ -1420,7 +1420,7 @@ void QmlParallelAnimation::transition(QmlStateActions &actions,
}
}
-QML_DEFINE_TYPE(QmlParallelAnimation,ParallelAnimation)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,ParallelAnimation,QmlParallelAnimation)
//convert a variant from string type to another animatable type
void QmlPropertyAnimationPrivate::convertVariant(QVariant &variant, int type)
@@ -1883,6 +1883,6 @@ void QmlPropertyAnimation::transition(QmlStateActions &actions,
}
}
-QML_DEFINE_TYPE(QmlPropertyAnimation,PropertyAnimation)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,PropertyAnimation,QmlPropertyAnimation)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmlbind.cpp b/src/declarative/util/qmlbind.cpp
index 7493b12..2ba8802 100644
--- a/src/declarative/util/qmlbind.cpp
+++ b/src/declarative/util/qmlbind.cpp
@@ -63,7 +63,7 @@ public:
QmlNullableValue<QVariant> value;
};
-QML_DEFINE_TYPE(QmlBind,Bind)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Bind,QmlBind)
/*!
\qmlclass Bind QmlBind
\brief The Bind element allows arbitrary property bindings to be created.
diff --git a/src/declarative/util/qmlconnection.cpp b/src/declarative/util/qmlconnection.cpp
index 95f4573..d506782 100644
--- a/src/declarative/util/qmlconnection.cpp
+++ b/src/declarative/util/qmlconnection.cpp
@@ -294,6 +294,6 @@ void QmlConnection::setSignal(const QString& sig)
connectIfValid();
}
-QML_DEFINE_TYPE(QmlConnection,Connection)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Connection,QmlConnection)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmlfollow.cpp b/src/declarative/util/qmlfollow.cpp
index cfd2dde..36e7f14 100644
--- a/src/declarative/util/qmlfollow.cpp
+++ b/src/declarative/util/qmlfollow.cpp
@@ -48,7 +48,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QmlFollow,Follow)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Follow,QmlFollow)
class QmlFollowPrivate : public QObjectPrivate
{
diff --git a/src/declarative/util/qmlfont.cpp b/src/declarative/util/qmlfont.cpp
index 3075b82..06e8769 100644
--- a/src/declarative/util/qmlfont.cpp
+++ b/src/declarative/util/qmlfont.cpp
@@ -51,7 +51,7 @@ public:
QFont font;
};
-QML_DEFINE_TYPE(QmlFont,Font)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Font,QmlFont)
/*!
\internal
diff --git a/src/declarative/util/qmllistmodel.cpp b/src/declarative/util/qmllistmodel.cpp
index 0c167c0..718040e 100644
--- a/src/declarative/util/qmllistmodel.cpp
+++ b/src/declarative/util/qmllistmodel.cpp
@@ -500,14 +500,14 @@ void QmlListModelParser::setCustomData(QObject *obj, const QByteArray &d)
}
}
-QML_DEFINE_CUSTOM_TYPE(QmlListModel, ListModel, QmlListModelParser)
+QML_DEFINE_CUSTOM_TYPE(Qt, 4,6, (QT_VERSION&0x00ff00)>>8, ListModel, QmlListModel, QmlListModelParser)
// ### FIXME
class QmlListElement : public QObject
{
Q_OBJECT
};
-QML_DEFINE_TYPE(QmlListElement,ListElement)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,ListElement,QmlListElement)
static void dump(ModelNode *node, int ind)
{
diff --git a/src/declarative/util/qmlpackage.cpp b/src/declarative/util/qmlpackage.cpp
index eec769e..8483080 100644
--- a/src/declarative/util/qmlpackage.cpp
+++ b/src/declarative/util/qmlpackage.cpp
@@ -147,7 +147,7 @@ QmlPackageAttached *QmlPackage::qmlAttachedProperties(QObject *o)
return new QmlPackageAttached(o);
}
-QML_DEFINE_TYPE(QmlPackage, Package)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Package,QmlPackage)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmlpalette.cpp b/src/declarative/util/qmlpalette.cpp
index 40cfa71..01b5ad3 100644
--- a/src/declarative/util/qmlpalette.cpp
+++ b/src/declarative/util/qmlpalette.cpp
@@ -52,7 +52,7 @@ public:
QPalette::ColorGroup group;
};
-QML_DEFINE_TYPE(QmlPalette,Palette)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Palette,QmlPalette)
/*!
\internal
diff --git a/src/declarative/util/qmlscript.cpp b/src/declarative/util/qmlscript.cpp
index 7199341..cfe5a1e 100644
--- a/src/declarative/util/qmlscript.cpp
+++ b/src/declarative/util/qmlscript.cpp
@@ -99,7 +99,7 @@ public:
avoided.
*/
-QML_DEFINE_TYPE(QmlScript,Script)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Script,QmlScript)
QmlScript::QmlScript(QObject *parent) : QObject(*(new QmlScriptPrivate), parent)
{
}
diff --git a/src/declarative/util/qmlsetproperties.cpp b/src/declarative/util/qmlsetproperties.cpp
index ffd1e6a..bbbc6a9 100644
--- a/src/declarative/util/qmlsetproperties.cpp
+++ b/src/declarative/util/qmlsetproperties.cpp
@@ -357,6 +357,6 @@ void QmlSetProperties::setIsExplicit(bool e)
d->isExplicit = e;
}
-QML_DEFINE_CUSTOM_TYPE(QmlSetProperties,SetProperties,QmlSetPropertiesParser)
+QML_DEFINE_CUSTOM_TYPE(Qt, 4,6, (QT_VERSION&0x00ff00)>>8, SetProperties, QmlSetProperties, QmlSetPropertiesParser)
QT_END_NAMESPACE
diff --git a/src/declarative/util/qmlstate.cpp b/src/declarative/util/qmlstate.cpp
index 1aa7ffe..a5fe8a7 100644
--- a/src/declarative/util/qmlstate.cpp
+++ b/src/declarative/util/qmlstate.cpp
@@ -126,7 +126,7 @@ QmlStateOperation::QmlStateOperation(QObjectPrivate &dd, QObject *parent)
\sa {states-transitions}{States and Transitions}
*/
-QML_DEFINE_TYPE(QmlState,State)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,State,QmlState)
QmlState::QmlState(QObject *parent)
: QObject(*(new QmlStatePrivate), parent)
{
diff --git a/src/declarative/util/qmlstategroup.cpp b/src/declarative/util/qmlstategroup.cpp
index 946569c..13a0023 100644
--- a/src/declarative/util/qmlstategroup.cpp
+++ b/src/declarative/util/qmlstategroup.cpp
@@ -49,7 +49,7 @@ QT_BEGIN_NAMESPACE
DEFINE_BOOL_CONFIG_OPTION(stateChangeDebug, STATECHANGE_DEBUG);
-QML_DEFINE_TYPE(QmlStateGroup,StateGroup)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,StateGroup,QmlStateGroup)
class QmlStateGroupPrivate : public QObjectPrivate
{
diff --git a/src/declarative/util/qmlstateoperations.cpp b/src/declarative/util/qmlstateoperations.cpp
index 3e114d2..791628c 100644
--- a/src/declarative/util/qmlstateoperations.cpp
+++ b/src/declarative/util/qmlstateoperations.cpp
@@ -122,7 +122,7 @@ void QmlParentChangePrivate::doChange(QFxItem *targetParent)
\brief The ParentChange element allows you to reparent an object in a state.
*/
-QML_DEFINE_TYPE(QmlParentChange,ParentChange)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,ParentChange,QmlParentChange)
QmlParentChange::QmlParentChange(QObject *parent)
: QmlStateOperation(*(new QmlParentChangePrivate), parent)
{
@@ -215,7 +215,7 @@ public:
\qmlclass RunScript QmlRunScript
\brief The RunScript element allows you to run a script in a state.
*/
-QML_DEFINE_TYPE(QmlRunScript,RunScript)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,RunScript,QmlRunScript)
QmlRunScript::QmlRunScript(QObject *parent)
: QmlStateOperation(*(new QmlRunScriptPrivate), parent)
{
diff --git a/src/declarative/util/qmltimer.cpp b/src/declarative/util/qmltimer.cpp
index 4af83d3..456b2ef 100644
--- a/src/declarative/util/qmltimer.cpp
+++ b/src/declarative/util/qmltimer.cpp
@@ -47,7 +47,7 @@
QT_BEGIN_NAMESPACE
-QML_DEFINE_TYPE(QmlTimer,Timer)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Timer,QmlTimer)
class QmlTimerPrivate : public QObjectPrivate
{
diff --git a/src/declarative/util/qmltransition.cpp b/src/declarative/util/qmltransition.cpp
index dffa6b5..eb8bf53 100644
--- a/src/declarative/util/qmltransition.cpp
+++ b/src/declarative/util/qmltransition.cpp
@@ -135,7 +135,7 @@ void ParallelAnimationWrapper::updateState(QAbstractAnimation::State oldState, Q
}
-QML_DEFINE_TYPE(QmlTransition,Transition)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,Transition,QmlTransition)
QmlTransition::QmlTransition(QObject *parent)
: QObject(*(new QmlTransitionPrivate), parent)
{
diff --git a/src/declarative/widgets/graphicslayouts.cpp b/src/declarative/widgets/graphicslayouts.cpp
index f2d8dbc..35f1e35 100644
--- a/src/declarative/widgets/graphicslayouts.cpp
+++ b/src/declarative/widgets/graphicslayouts.cpp
@@ -89,7 +89,7 @@ private:
Qt::Alignment _alignment;
};
-QML_DEFINE_TYPE(QGraphicsLinearLayoutStretchItemObject,QGraphicsLinearLayoutStretchItem)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,QGraphicsLinearLayoutStretchItem,QGraphicsLinearLayoutStretchItemObject)
QGraphicsLinearLayoutStretchItemObject::QGraphicsLinearLayoutStretchItemObject(QObject *parent)
: QObject(parent)
@@ -103,7 +103,7 @@ QSizeF QGraphicsLinearLayoutStretchItemObject::sizeHint(Qt::SizeHint which, cons
return QSizeF();
}
-QML_DEFINE_TYPE(QGraphicsLinearLayoutObject,QGraphicsLinearLayout)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,QGraphicsLinearLayout,QGraphicsLinearLayoutObject)
QGraphicsLinearLayoutObject::QGraphicsLinearLayoutObject(QObject *parent)
: QObject(parent), _children(this)
@@ -246,7 +246,7 @@ private:
Qt::Alignment _alignment;
};
-QML_DEFINE_TYPE(QGraphicsGridLayoutObject,QGraphicsGridLayout)
+QML_DEFINE_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,QGraphicsGridLayout,QGraphicsGridLayoutObject)
QGraphicsGridLayoutObject::QGraphicsGridLayoutObject(QObject *parent)
diff --git a/src/declarative/widgets/graphicswidgets.cpp b/src/declarative/widgets/graphicswidgets.cpp
index e7d01e3..4c6dcf9 100644
--- a/src/declarative/widgets/graphicswidgets.cpp
+++ b/src/declarative/widgets/graphicswidgets.cpp
@@ -59,7 +59,7 @@ public:
static_cast<QGraphicsView *>(parent())->setScene(scene);
}
};
-QML_DEFINE_EXTENDED_TYPE(QGraphicsView,QGraphicsView,QGraphicsViewDeclarativeUI)
+QML_DEFINE_EXTENDED_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,QGraphicsView,QGraphicsView,QGraphicsViewDeclarativeUI)
class QGraphicsSceneDeclarativeUI : public QObject
{
@@ -111,7 +111,7 @@ private:
};
Children _children;
};
-QML_DEFINE_EXTENDED_TYPE(QGraphicsScene,QGraphicsScene,QGraphicsSceneDeclarativeUI)
+QML_DEFINE_EXTENDED_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,QGraphicsScene,QGraphicsScene,QGraphicsSceneDeclarativeUI)
class QGraphicsWidgetDeclarativeUI : public QObject
{
@@ -164,7 +164,7 @@ private:
QmlConcreteList<QObject *> _data;
};
-QML_DEFINE_EXTENDED_TYPE(QGraphicsWidget,QGraphicsWidget,QGraphicsWidgetDeclarativeUI)
+QML_DEFINE_EXTENDED_TYPE(Qt,4,6,(QT_VERSION&0x00ff00)>>8,QGraphicsWidget,QGraphicsWidget,QGraphicsWidgetDeclarativeUI)
QML_DEFINE_INTERFACE(QGraphicsItem)