42 #include "private/qdeclarativecustomparser_p.h" 43 #include "private/qdeclarativecustomparser_p_p.h" 45 #include "private/qdeclarativeparser_p.h" 46 #include "private/qdeclarativecompiler_p.h" 48 #include <QtCore/qdebug.h> 133 for (
int ii = 0; ii < props.
count(); ++ii)
136 for(
int ii = 0; ii < p->
values.count(); ++ii) {
254 error.
setLine(object->location.start.line);
255 error.
setColumn(object->location.start.column);
298 return compiler->evaluateEnum(script);
307 return compiler->resolveType(name);
317 return compiler->rewriteBinding(expression, name);
QList< QDeclarativeCustomParserProperty > properties() const
QDeclarativeCustomParserNode()
QDeclarativeBinding::Identifier rewriteBinding(const QString &, const QByteArray &)
Rewrites expression and returns an identifier that can be used to construct the binding later...
#define QT_END_NAMESPACE
This macro expands to.
QList< QDeclarativeCustomParserProperty > properties
void setDescription(const QString &)
Sets the error description.
static QDeclarativeCustomParserNode fromObject(QDeclarativeParser::Object *)
QDeclarativeParser::Location location() const
const QMetaObject * resolveType(const QByteArray &) const
Resolves name to a type, or 0 if it is not a type.
QDeclarativeCustomParserProperty()
The QByteArray class provides an array of bytes.
void setColumn(int)
Sets the error column number.
QList< QVariant > assignedValues() const
Property * defaultProperty
int count(const T &t) const
Returns the number of occurrences of value in the list.
QDeclarativeParser::Location location() const
The QString class provides a Unicode character string.
void error(const QString &description)
Reports an error with the given description.
QDeclarativeParser::Location location
#define QT_BEGIN_NAMESPACE
This macro expands to.
const T & at(int i) const
Returns the item at index position i in the list.
The QDeclarativeError class encapsulates a QML error.
static QVariant fromValue(const T &value)
Returns a QVariant containing a copy of value.
Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4)
void setLine(int)
Sets the error line number.
static QDeclarativeCustomParserProperty fromProperty(QDeclarativeParser::Property *)
QDeclarativeParser::Location location
QDeclarativeCustomParserProperty & operator=(const QDeclarativeCustomParserProperty &)
QDeclarativeCustomParserNode & operator=(const QDeclarativeCustomParserNode &)
QDeclarativeCustomParserPropertyPrivate * d
~QDeclarativeCustomParserNode()
The QHash::iterator class provides an STL-style non-const iterator for QHash and QMultiHash.
int evaluateEnum(const QByteArray &) const
If script is a simply enum expression (eg.
~QDeclarativeCustomParserProperty()
QDeclarativeCustomParserNodePrivate * d
QHash< QByteArray, Property * > properties