3#ifndef QV4PROPERTYDESCRIPTOR_H
4#define QV4PROPERTYDESCRIPTOR_H
32 if (!
attrs->hasType()) {
36 attrs->clearWritable();
51 if (!
attrs->hasWritable())
52 attrs->setWritable(
false);
57 if (!
attrs->hasEnumerable())
58 attrs->setEnumerable(
false);
59 if (!
attrs->hasConfigurable())
60 attrs->setConfigurable(
false);
66 inline Heap::FunctionObject *
getter()
const {
return reinterpret_cast<Heap::FunctionObject *
>(
value.heapObject()); }
67 inline Heap::FunctionObject *
setter()
const {
return reinterpret_cast<Heap::FunctionObject *
>(
set.
heapObject()); }
73 if (
attrs.isAccessor())
81 if (!
attrs.isConfigurable()) {
90 if (!
attrs.isConfigurable())
93 if (!
attrs.isConfigurable() && !
attrs.isWritable()) {
100 if (!
attrs.isConfigurable()) {
133 if (
value.heapObject() !=
other->value.heapObject())
151 if (!
other->value.isEmpty())
153 if (!
other->set.isEmpty())
Combined button and popup list for selecting options.
void write(EngineBase *engine, Heap::Base *base, ReturnedValue *slot, ReturnedValue value)
\qmltype Particle \inqmlmodule QtQuick.Particles
static struct AttrInfo attrs[]
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
static constexpr ReturnedValue undefined()
bool isEnumerable() const
bool hasConfigurable() const
bool isConfigurable() const
bool hasEnumerable() const
const Value * operator->() const
const Value & operator*() const
void set(EngineBase *e, Value newVal)
void setGetter(FunctionObject *g)
Heap::FunctionObject * getter() const
void setSetter(FunctionObject *s)
void merge(PropertyAttributes &attrs, const Property *other, PropertyAttributes otherAttrs)
void fullyPopulated(PropertyAttributes *attrs)
bool isCompatible(PropertyAttributes &attrs, const Property *other, PropertyAttributes otherAttrs) const
void copy(const Property *other, PropertyAttributes attrs)
void completed(PropertyAttributes *attrs)
Property(Heap::FunctionObject *getter, Heap::FunctionObject *setter)
Heap::FunctionObject * setter() const
bool isSubset(const PropertyAttributes &attrs, const Property *other, PropertyAttributes otherAttrs) const
constexpr ReturnedValue asReturnedValue() const
ReturnedValue * data_ptr()
static constexpr Value undefinedValue()
static Value fromHeapObject(HeapBasePtr m)
bool sameValue(Value other) const
QML_NEARLY_ALWAYS_INLINE Value::HeapBasePtr heapObject() const