Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqmljsregistercontent_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3// Qt-Security score:significant
4
5#ifndef QQMLJSREGISTERCONTENT_P_H
6#define QQMLJSREGISTERCONTENT_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17
18#include "qqmljsscope_p.h"
19#include <QtCore/qhash.h>
20#include <QtCore/qstring.h>
21
23
25class Q_QMLCOMPILER_EXPORT QQmlJSRegisterContent
26{
27public:
28 // ContentVariant determines the relation between this register content and its scope().
29 // For example, a property is always a property of a type. That type is given as scope.
30 // Most content variants can carry either a specific kind of content, as commented below,
31 // or a conversion. If two or more register contents of the same content variant are merged,
32 // they retain their content variant but become a conversion with the original register
33 // contents linked as conversion origins.
34
35 enum ContentVariant {
36 ObjectById, // type (scope is QML scope of binding/function)
37 TypeByName, // type (TODO: scope is not guaranteed to be useful)
38 Singleton, // type (scope is either import namespace or QML scope)
39 Script, // type (scope is either import namespace or QML scope)
40 MetaType, // type (always QMetaObject, scope is the type reprented by the metaobject)
41 Extension, // type (scope is the type being extended)
42 ScopeObject, // type (QML scope of binding/function)
43 GlobalObject, // type (JS global object, no scope)
44 ContextObject, // type (context object, scope is the QML scope of binding/function)
45 ParentScope, // type (scope is the child scope)
46
47 Property, // property (scope is the owner (hasOwnProperty) of the property)
48 Method, // method (retrieved as property, including overloads), like property
49 Enum, // enumeration (scope is the type the enumeration belongs to)
50
51 Attachment, // type (scope is attacher; use attacher() and attachee() for clarity)
52 ModulePrefix, // import namespace (scope is either QML scope or type the prefix is used on)
53
54 MethodCall, // method call (resolved to specific overload), like property
55
56 ListValue, // property (scope is list retrieved from)
57 ListIterator, // property (scope is list being iterated)
58
59 Literal, // type (scope does not exist)
60 Operation, // type (scope does not exist)
61
62 BaseType, // type (scope is derived type)
63 Cast, // type (scope is type casted from)
64
65 Storage, // type (scope does not exist)
66
67 // Either a synthetic type or a merger of multiple different variants.
68 // In the latter case, look at conversion origins to find out more.
69 // Synthetic types should be short lived.
70 Unknown,
71 };
72
73 enum { InvalidLookupIndex = -1 };
74
75 QQmlJSRegisterContent() = default;
76
77
78 // General properties of the register content, (mostly) independent of kind or variant
79
80 bool isNull() const { return !d; }
81 bool isValid() const;
82
83 bool isList() const;
84 bool isWritable() const;
85
86 ContentVariant variant() const;
87
88 QString descriptiveName() const;
89 QString containedTypeName() const;
90
91 int resultLookupIndex() const;
92
93 QQmlJSScope::ConstPtr storedType() const;
94 QQmlJSScope::ConstPtr containedType() const;
95 QQmlJSScope::ConstPtr scopeType() const;
96
97 bool contains(const QQmlJSScope::ConstPtr &type) const { return type == containedType(); }
98 bool isStoredIn(const QQmlJSScope::ConstPtr &type) const { return type == storedType(); }
99
100
101 // Properties of specific kinds of register contents
102
103 bool isType() const;
104 QQmlJSScope::ConstPtr type() const;
105
106 bool isProperty() const;
107 QQmlJSMetaProperty property() const;
108 int baseLookupIndex() const;
109
110 bool isEnumeration() const;
111 QQmlJSMetaEnum enumeration() const;
112 QString enumMember() const;
113
114 bool isMethod() const;
115 QList<QQmlJSMetaMethod> method() const;
116 QQmlJSScope::ConstPtr methodType() const;
117
118 bool isImportNamespace() const;
119 uint importNamespace() const;
120 QQmlJSScope::ConstPtr importNamespaceType() const;
121
122 bool isConversion() const;
123 QQmlJSScope::ConstPtr conversionResultType() const;
124 QQmlJSRegisterContent conversionResultScope() const;
125 const QList<QQmlJSRegisterContent> &conversionOrigins() const;
126
127 bool isMethodCall() const;
128 QQmlJSMetaMethod methodCall() const;
129 bool isJavaScriptReturnValue() const;
130
131
132 // Linked register contents
133
134 QQmlJSRegisterContent attacher() const;
135 QQmlJSRegisterContent attachee() const;
136
137 QQmlJSRegisterContent scope() const;
138 QQmlJSRegisterContent storage() const;
139 QQmlJSRegisterContent original() const;
140 QQmlJSRegisterContent shadowed() const;
141
142 quintptr id() const { return quintptr(d); }
143
144private:
145 friend class QQmlJSRegisterContentPool;
146 // TODO: Constant string/number/bool/enumval
147
148 QQmlJSRegisterContent(QQmlJSRegisterContentPrivate *dd) : d(dd) {};
149
150 friend bool operator==(QQmlJSRegisterContent a, QQmlJSRegisterContent b)
151 {
152 return a.d == b.d;
153 }
154
155 friend bool operator!=(QQmlJSRegisterContent a, QQmlJSRegisterContent b)
156 {
157 return !(a == b);
158 }
159
160 friend size_t qHash(QQmlJSRegisterContent registerContent, size_t seed = 0)
161 {
162 return qHash(registerContent.d, seed);
163 }
164
165 QQmlJSRegisterContentPrivate *d = nullptr;
166};
167
168class Q_QMLCOMPILER_EXPORT QQmlJSRegisterContentPool
169{
170 Q_DISABLE_COPY_MOVE(QQmlJSRegisterContentPool)
171public:
172 using ContentVariant = QQmlJSRegisterContent::ContentVariant;
173
175 ~QQmlJSRegisterContentPool();
176
177
178 // Create new register contents of specific kinds
179
181 const QQmlJSScope::ConstPtr &type, int resultLookupIndex, ContentVariant variant,
182 QQmlJSRegisterContent scope = {});
183
185 const QQmlJSMetaProperty &property, int baseLookupIndex, int resultLookupIndex,
186 ContentVariant variant, QQmlJSRegisterContent scope);
187
189 const QQmlJSMetaEnum &enumeration, const QString &enumMember, ContentVariant variant,
190 QQmlJSRegisterContent scope);
191
193 const QList<QQmlJSMetaMethod> &methods, const QQmlJSScope::ConstPtr &methodType,
194 ContentVariant variant, QQmlJSRegisterContent scope);
195
197 const QQmlJSMetaMethod &method, const QQmlJSScope::ConstPtr &returnType,
198 QQmlJSRegisterContent scope);
199
201 uint importNamespaceStringId, const QQmlJSScope::ConstPtr &importNamespaceType,
202 ContentVariant variant, QQmlJSRegisterContent scope);
203
205 const QList<QQmlJSRegisterContent> &origins, const QQmlJSScope::ConstPtr &conversion,
206 QQmlJSRegisterContent conversionScope, ContentVariant variant,
207 QQmlJSRegisterContent scope);
208
209
210 // Clone and possibly adapt register contents. This leaves the original intact.
211
213 QQmlJSRegisterContent content, const QQmlJSScope::ConstPtr &newStoredType);
214
216 QQmlJSRegisterContent content, const QQmlJSScope::ConstPtr &newContainedType);
217
218 QQmlJSRegisterContent clone(QQmlJSRegisterContent from) { return clone(from.d); }
219
220
221 // Change the internals of the given register content. Adjusting and generalizing store a
222 // copy of the previous content as original() and shadowed(), respectively. Storing creates
223 // a new register content for storage(). All of those assume you only do this once per
224 // register content (although you can adjust and generalize the storage, for example).
225
226 void storeType(
227 QQmlJSRegisterContent content, const QQmlJSScope::ConstPtr &stored);
228 void adjustType(
229 QQmlJSRegisterContent content, const QQmlJSScope::ConstPtr &adjusted);
230 void generalizeType(
231 QQmlJSRegisterContent content, const QQmlJSScope::ConstPtr &generalized);
232
235 void clearTemporaries();
236
237private:
238 struct Deleter {
239 // It's a template so that we only need the QQmlJSRegisterContentPrivate dtor on usage.
240 template<typename Private>
241 constexpr void operator()(Private *d) const { delete d; }
242 };
243
244 using Pool = std::vector<std::unique_ptr<QQmlJSRegisterContentPrivate, Deleter>>;
245
247 QQmlJSRegisterContentPrivate *create() { return clone(nullptr); }
248 QQmlJSRegisterContentPrivate *create(QQmlJSRegisterContent scope, ContentVariant variant);
249
250 Pool m_pool;
251 qsizetype m_checkpoint = -1;
252};
253
254QT_END_NAMESPACE
255
256#endif // REGISTERCONTENT_H
friend bool operator==(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs) noexcept
Returns true if lhs and rhs are equal, otherwise returns false.
Definition qbytearray.h:834
friend bool operator!=(const QByteArray::FromBase64Result &lhs, const QByteArray::FromBase64Result &rhs) noexcept
Returns true if lhs and rhs are different, otherwise returns false.
Definition qbytearray.h:845
bool isValid() const
QString fileName() const
If the currently assigned device is a QFile, or if setFileName() has been called, this function retur...
void setFileName(const QString &fileName)
Sets the file name of QImageReader to fileName.
QJSManagedValue & operator=(QJSManagedValue &&other)
Move-assigns a QJSManagedValue from other.
virtual Type type() const =0
Reimplement this function to return the paint engine \l{Type}.
virtual bool isValid() const
virtual QString location() const
QString typeName() const
void setIsFlag(bool isFlag)
void setLineNumber(int lineNumber)
friend bool operator!=(const QQmlJSMetaEnum &a, const QQmlJSMetaEnum &b)
void setName(const QString &name)
QQmlJSMetaEnum()=default
int lineNumber() const
friend size_t qHash(const QQmlJSMetaEnum &e, size_t seed=0)
friend bool operator==(const QQmlJSMetaEnum &a, const QQmlJSMetaEnum &b)
void setTypeName(const QString &typeName)
bool hasKey(const QString &key) const
void setIsScoped(bool v)
void setType(const QSharedPointer< const QQmlJSScope > &type)
QSharedPointer< const QQmlJSScope > type() const
int value(const QString &key) const
bool isQml() const
void setIsQml(bool v)
void addValue(int value)
bool isScoped() const
QList< int > values() const
bool isFlag() const
QString alias() const
QStringList keys() const
bool isValid() const
void addKey(const QString &key)
void setAlias(const QString &alias)
QString name() const
QQmlJSMetaEnum(QString name)
bool hasValues() const
QQmlJSMetaReturnType returnValue() const
QQmlJSMetaMethod()=default
void setSourceLocation(QQmlJS::SourceLocation location)
QQmlJS::SourceLocation sourceLocation() const
QString methodName() const
QQmlJSMetaMethodType MethodType
void setMethodName(const QString &name)
QDeferredSharedPointer< const QQmlJSScope > returnType() const
void setReturnTypeName(const QString &typeName)
void setReturnType(QDeferredWeakPointer< const QQmlJSScope > type)
QString returnTypeName() const
QQmlJSMetaMethod(QString name, QString returnType=QString())
QList< QQmlJSMetaParameter > parameters() const
void setReturnValue(const QQmlJSMetaReturnType returnValue)
void setIsPointer(bool isPointer)
QQmlJSMetaParameter(QString name=QString(), QString typeName=QString(), Constness typeQualifier=NonConst, QDeferredWeakPointer< const QQmlJSScope > type={ })
QDeferredSharedPointer< const QQmlJSScope > type() const
void setIsList(bool isList)
friend bool operator!=(const QQmlJSMetaParameter &a, const QQmlJSMetaParameter &b)
friend size_t qHash(const QQmlJSMetaParameter &e, size_t seed=0)
void setName(const QString &name)
void setTypeName(const QString &typeName)
void setTypeQualifier(Constness typeQualifier)
void setType(QDeferredWeakPointer< const QQmlJSScope > type)
Constness typeQualifier() const
QString typeName() const
friend bool operator==(const QQmlJSMetaParameter &a, const QQmlJSMetaParameter &b)
\inmodule QtQmlCompiler
friend bool operator!=(const QQmlJSMetaProperty &a, const QQmlJSMetaProperty &b)
QString notify() const
QSharedPointer< const QQmlJSScope > aliasTargetScope() const
void setType(const QDeferredSharedPointer< const QQmlJSScope > &type)
QString aliasExpression() const
friend bool operator==(const QQmlJSMetaProperty &a, const QQmlJSMetaProperty &b)
void setIsOverride(bool isOverride)
void setPropertyName(const QString &propertyName)
QString aliasTargetName() const
void setAnnotations(const QList< QQmlJSAnnotation > &annotation)
void setIsList(bool isList)
QString bindable() const
void setPrivateClass(const QString &privateClass)
void setRead(const QString &read)
friend size_t qHash(const QQmlJSMetaProperty &prop, size_t seed=0)
void setBindable(const QString &bindable)
void setWrite(const QString &write)
void setIsPropertyConstant(bool isPropertyConstant)
QString reset() const
void setRevision(int revision)
void setIsFinal(bool isFinal)
QDeferredSharedPointer< const QQmlJSScope > type() const
QString typeName() const
void setAliasTargetScope(const QSharedPointer< const QQmlJSScope > &scope)
void setSourceLocation(const QQmlJS::SourceLocation &newSourceLocation)
QString write() const
void setIsTypeConstant(bool isTypeConstant)
const QList< QQmlJSAnnotation > & annotations() const
QQmlJS::SourceLocation sourceLocation() const
void setTypeName(const QString &typeName)
QQmlJSMetaProperty()=default
void setReset(const QString &reset)
QString privateClass() const
void setIsVirtual(bool isVirtual)
void setIsWritable(bool isWritable)
void setAliasExpression(const QString &aliasString)
void setAliasTargetName(const QString &name)
void setIndex(int index)
void setNotify(const QString &notify)
bool isPropertyConstant() const
bool isTypeConstant() const
QString propertyName() const
void setIsPointer(bool isPointer)
QQmlJSRegisterContent createMethod(const QList< QQmlJSMetaMethod > &methods, const QQmlJSScope::ConstPtr &methodType, ContentVariant variant, QQmlJSRegisterContent scope)
QQmlJSRegisterContent createImportNamespace(uint importNamespaceStringId, const QQmlJSScope::ConstPtr &importNamespaceType, ContentVariant variant, QQmlJSRegisterContent scope)
QQmlJSRegisterContent createProperty(const QQmlJSMetaProperty &property, int baseLookupIndex, int resultLookupIndex, ContentVariant variant, QQmlJSRegisterContent scope)
void adjustType(QQmlJSRegisterContent content, const QQmlJSScope::ConstPtr &adjusted)
void generalizeType(QQmlJSRegisterContent content, const QQmlJSScope::ConstPtr &generalized)
void storeType(QQmlJSRegisterContent content, const QQmlJSScope::ConstPtr &stored)
QQmlJSRegisterContent castTo(QQmlJSRegisterContent content, const QQmlJSScope::ConstPtr &newContainedType)
QQmlJSRegisterContent createEnumeration(const QQmlJSMetaEnum &enumeration, const QString &enumMember, ContentVariant variant, QQmlJSRegisterContent scope)
void setAllocationMode(AllocationMode mode)
QQmlJSRegisterContent storedIn(QQmlJSRegisterContent content, const QQmlJSScope::ConstPtr &newStoredType)
QQmlJSRegisterContent clone(QQmlJSRegisterContent from)
QQmlJSRegisterContent createType(const QQmlJSScope::ConstPtr &type, int resultLookupIndex, ContentVariant variant, QQmlJSRegisterContent scope={})
QQmlJSRegisterContent createConversion(const QList< QQmlJSRegisterContent > &origins, const QQmlJSScope::ConstPtr &conversion, QQmlJSRegisterContent conversionScope, ContentVariant variant, QQmlJSRegisterContent scope)
QQmlJSRegisterContent createMethodCall(const QQmlJSMetaMethod &method, const QQmlJSScope::ConstPtr &returnType, QQmlJSRegisterContent scope)
virtual QQmlSourceLocation sourceLocation() const
\inmodule QtQmlCompiler
Definition qqmlsa.h:53
Element attachedType() const
Returns the attached type if the content type of this binding is AttachedProperty,...
Definition qqmlsa.cpp:385
BindingType bindingType() const
Returns the type of this binding.
Definition qqmlsa.cpp:351
Element bindingScope() const
Returns the Element scope in which the binding is defined.
Definition qqmlsa.cpp:343
friend bool operator!=(const Binding &lhs, const Binding &rhs)
Returns true if lhs and rhs are not equal, and false otherwise.
Definition qqmlsa.h:107
bool hasUndefinedScriptValue() const
Returns whether this binding has script value type undefined like when it is assigned undefined.
Definition qqmlsa.cpp:452
Binding(const Binding &)
Creates a copy of other.
Definition qqmlsa.cpp:255
Binding & operator=(const Binding &)
Assigns other to this Binding instance.
Definition qqmlsa.cpp:267
bool isAttached() const
Returns true if this type is attached to another one, false otherwise.
Definition qqmlsa.cpp:376
bool hasObject() const
Returns true if this binding has an objects, otherwise returns false.
Definition qqmlsa.cpp:433
friend bool operator==(const Binding &lhs, const Binding &rhs)
Returns true if lhs and rhs are equal, and false otherwise.
Definition qqmlsa.h:103
static bool isLiteralBinding(BindingType)
Returns true if bindingType is a literal type, and false otherwise.
Definition qqmlsa.cpp:476
QString propertyName() const
Returns the name of the property bound with this binding.
Definition qqmlsa.cpp:368
Binding()
Constructs a new Binding object.
Definition qqmlsa.cpp:248
QString stringValue() const
Returns the associated string literal if the content type of this binding is StringLiteral,...
Definition qqmlsa.cpp:360
Element objectType() const
Returns the type of the associated object if the content type of this binding is Object,...
Definition qqmlsa.cpp:442
Binding & operator=(Binding &&) noexcept
Move-assigns other to this Binding instance.
Definition qqmlsa.cpp:283
QQmlSA::SourceLocation sourceLocation() const
Returns the location in the QML code where this binding is defined.
Definition qqmlsa.cpp:406
ScriptBindingKind scriptKind() const
Returns the kind of the associated script if the content type of this binding is Script,...
Definition qqmlsa.cpp:425
double numberValue() const
Returns the associated number if the content type of this binding is NumberLiteral,...
Definition qqmlsa.cpp:416
Element groupType() const
Returns the type of the property of this binding if it is a grouped property, otherwise returns an in...
Definition qqmlsa.cpp:335
bool hasFunctionScriptValue() const
Returns whether this binding has script value type function like when it is assigned a (lambda) metho...
Definition qqmlsa.cpp:465
\inmodule QtQmlCompiler
Definition qqmlsa.h:378
QString replacement() const
Returns the replacement string of the edit.
Definition qqmlsa.cpp:2129
QString filename() const
Returns the file this edit applies to.
Definition qqmlsa.cpp:2111
DocumentEdit(const DocumentEdit &)
Creates a copy of other.
Definition qqmlsa.cpp:2064
\inmodule QtQmlCompiler
Definition qqmlsa.h:369
\inmodule QtQmlCompiler
Definition qqmlsa.h:203
\inmodule QtQmlCompiler
Definition qqmlsa.h:406
FixSuggestion(const QString &description, const QQmlSA::SourceLocation &location, const QList< DocumentEdit > &documentEdits={})
Creates a FixSuggestion object.
Definition qqmlsa.cpp:2220
void addDocumentEdit(const DocumentEdit &)
Adds a document edit to the list of edits for this fix.
Definition qqmlsa.cpp:2292
FixSuggestion(const FixSuggestion &)
Creates a copy of other.
Definition qqmlsa.cpp:2229
QString description() const
Returns the description of the fix.
Definition qqmlsa.cpp:2274
bool isAutoApplicable() const
Returns whether this suggested fix can be applied automatically.
Definition qqmlsa.cpp:2336
void setAutoApplicable(bool autoApplicable=true)
Sets autoApplicable to determine whether this suggested fix can be applied automatically.
Definition qqmlsa.cpp:2327
QList< DocumentEdit > documentEdits() const
Returns the list of document edits that applying this fix would make.
Definition qqmlsa.cpp:2301
\inmodule QtQmlCompiler
Definition qqmlsa.h:284
void emitWarning(QAnyStringView diagnostic, LoggerWarningId id)
Emits a warning message diagnostic about an issue of type id.
Definition qqmlsa.cpp:1270
Element resolveLiteralType(const Binding &binding)
Returns the element representing the type of literal in binding.
Definition qqmlsa.cpp:1388
void emitWarning(QAnyStringView diagnostic, LoggerWarningId id, QQmlSA::SourceLocation srcLocation, const QQmlSA::FixSuggestion &fix)
Emits a warning message diagnostic about an issue of type id located at srcLocation and with suggeste...
Definition qqmlsa.cpp:1293
void emitWarning(QAnyStringView diagnostic, LoggerWarningId id, QQmlSA::SourceLocation srcLocation)
Emits warning message diagnostic about an issue of type id located at srcLocation.
Definition qqmlsa.cpp:1279
Element resolveBuiltinType(QAnyStringView typeName) const
Returns the type of the built-in type identified by typeName.
Definition qqmlsa.cpp:1355
Element resolveAttached(QAnyStringView moduleName, QAnyStringView typeName)
Returns the attached type of typeName defined in module moduleName.
Definition qqmlsa.cpp:1373
QString resolveElementToId(const Element &element, const Element &context)
Returns the id of element in a given context.
Definition qqmlsa.cpp:1411
Element resolveTypeInFileScope(QAnyStringView typeName)
Returns the type corresponding to typeName inside the currently analysed file.
Definition qqmlsa.cpp:1308
QString sourceCode(QQmlSA::SourceLocation location)
Returns the source code located within location.
Definition qqmlsa.cpp:1423
Element resolveAttachedInFileScope(QAnyStringView typeName)
Returns the attached type corresponding to typeName used inside the currently analysed file.
Definition qqmlsa.cpp:1320
Element resolveIdToElement(QAnyStringView id, const Element &context)
Returns the element in context that has id id.
Definition qqmlsa.cpp:1399
Element resolveType(QAnyStringView moduleName, QAnyStringView typeName)
Returns the type of typeName defined in module moduleName.
Definition qqmlsa.cpp:1338
\inmodule QtQmlCompiler
Definition qqmlsa.h:341
\inmodule QtQmlCompiler
Definition qqmlsa.h:121
MethodType methodType() const
Returns the type of this method.
Definition qqmlsa.cpp:652
Method(const Method &)
Creates a copy of other.
Definition qqmlsa.cpp:599
Method()
Constructs a new Method object.
Definition qqmlsa.cpp:594
Method & operator=(const Method &)
Assigns other to this Method instance.
Definition qqmlsa.cpp:612
QString methodName() const
Returns the name of the this method.
Definition qqmlsa.cpp:643
\inmodule QtQmlCompiler
Definition qqmlsa.h:315
void analyze(const Element &root)
Runs the element passes over root and all its children.
Definition qqmlsa.cpp:1613
bool isCategoryEnabled(LoggerWarningId category) const
Returns true if warnings of category are enabled, false otherwise.
Definition qqmlsa.cpp:1724
bool registerPropertyPass(std::shared_ptr< PropertyPass > pass, QAnyStringView moduleName, QAnyStringView typeName, QAnyStringView propertyName=QAnyStringView(), bool allowInheritance=true)
Registers a static analysis pass for properties.
Definition qqmlsa.cpp:1515
std::unordered_map< quint32, Binding > bindingsByLocation() const
Returns bindings by their source location.
Definition qqmlsa.cpp:1954
bool hasImportedModule(QAnyStringView name) const
Returns true if the module named module has been imported by the QML to be analyzed,...
Definition qqmlsa.cpp:1716
\inmodule QtQmlCompiler
Definition qqmlsa.h:352
\inmodule QtQmlCompiler
Definition qqmlsa.h:170
Property(const Property &)
Creates a copy of other.
Definition qqmlsa.cpp:780
QString typeName() const
Returns the name of the type of this property.
Definition qqmlsa.cpp:825
bool isReadonly() const
Returns true if this property is read-only, false otherwise.
Definition qqmlsa.cpp:843
\inmodule QtQmlCompiler
MethodType
Definition qqmlsa.h:49
AccessSemantics
Definition qqmlsa.h:50
Combined button and popup list for selecting options.
Q_DECLARE_INTERFACE(QNetworkAccessBackendFactory, QNetworkAccessBackendFactory_iid)
static QString toNumericString(double value)
static QString messageTypeForMethod(const QString &method)
static QString derefContentPointer(const QString &contentPointer)
static bool canTypeBeAffectedBySideEffects(const QQmlJSTypeResolver *typeResolver, const QQmlJSRegisterContent &baseType)
#define BYTECODE_UNIMPLEMENTED()
#define INJECT_TRACE_INFO(function)
#define REJECT
static QString registerName(int registerIndex, int offset)
static QString minExpression(int argc)
static QString maxExpression(int argc)
static bool isTypeStorable(const QQmlJSTypeResolver *resolver, const QQmlJSScope::ConstPtr &type)
QQmlSA::MethodType QQmlJSMetaMethodType
QQmlJSMetaParameter QQmlJSMetaReturnType
ScriptBindingValueType
@ ScriptValue_Function
@ ScriptValue_Unknown
@ ScriptValue_Undefined
void resetFactoryImpl(QDeferredSharedPointer< T > &pointer, U &&factory)
#define QmlLintPluginInterface_iid
Definition qqmlsa.h:450