struct Location
{
- Location() : line(-1), column(-1) {}
- int line;
- int column;
+ Location() : line(0), column(0) {}
+ quint16 line;
+ quint16 column;
inline bool operator<(const Location &other) {
return line < other.line ||
QQmlPropertyCache *synthCache; // Generated by compiler
Property *getDefaultProperty();
- // name ptr must be guarenteed to remain valid
+ // name ptr must be guaranteed to remain valid
Property *getProperty(const QHashedStringRef &name, bool create=true);
Property *getProperty(const QStringRef &name, bool create=true);
Property *getProperty(const QString &name, bool create=true);
DynamicProperty();
enum Type { Var, Variant, Int, Bool, Real, String, Url, Color,
- Time, Date, DateTime, Rect, Alias, Custom, CustomList };
+ Font, Time, Date, DateTime, Rect, Point, Size,
+ Vector2D, Vector3D, Vector4D, Matrix4x4, Quaternion,
+ Alias, Custom, CustomList };
quint32 isDefaultProperty:1;
quint32 isReadOnly:1;
QHashedStringRef name;
QQmlPool::List<DynamicProperty::Type> parameterTypes;
+ QQmlPool::List<QHashedStringRef> parameterTypeNames;
QQmlPool::List<QHashedStringRef> parameterNames;
// Used by Object::DynamicSignalList
};
static QQmlScript::Object::ScriptBlock::Pragmas extractPragmas(QString &);
- static JavaScriptMetaData extractMetaData(QString &);
+ static JavaScriptMetaData extractMetaData(QString &, QQmlError *error);
// ### private: