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
qqmljstyperesolver.cpp File Reference

(e309b6f5a9c55d513d030dc9f5bd32fcaed3db49)

#include "qqmljstyperesolver_p.h"
#include "qqmljsimporter_p.h"
#include "qqmljsimportvisitor_p.h"
#include "qqmljslogger_p.h"
#include "qqmljsutils_p.h"
#include <private/qv4codegen_p.h>
#include <private/qv4value_p.h>
#include <private/qduplicatetracker_p.h>
#include <QtCore/qloggingcategory.h>
#include <QtCore/qtyperevision.h>
Include dependency graph for qqmljstyperesolver.cpp:

Go to the source code of this file.

Typedefs

using ComponentBehavior = QmlIR::Pragma::ComponentBehaviorValue

Functions

 Q_STATIC_LOGGING_CATEGORY (lcTypeResolver, "qt.qml.compiler.typeresolver", QtInfoMsg)
static void assertExtension (const QQmlJSScope::ConstPtr &typetype, QLatin1String extension)
static QQmlJSRegisterContent::ContentVariant mergeVariants (QQmlJSRegisterContent::ContentVariant aa, QQmlJSRegisterContent::ContentVariant bb)
static QQmlJSRegisterContent::ContentVariant scopeContentVariant (QQmlJSScope::ExtensionKind modemode, bool isMethod)
static bool isRevisionAllowed (int memberRevision, const QQmlJSScope::ConstPtr &scope)
static ComponentBehavior componentBehavior (const QQmlJSScopesById &objectsById)
static QQmlJSScope::ConstPtr contextObjectWithName (const QQmlJSScope::ConstPtr &scope, const QString &namename, ComponentBehavior behavior)
static QQmlJSRegisterContent doConvert (QQmlJSRegisterContent from, const QQmlJSScope::ConstPtr &to, QQmlJSRegisterContent scope, QQmlJSRegisterContentPool *pool)

Typedef Documentation

◆ ComponentBehavior

Function Documentation

◆ assertExtension()

void assertExtension ( const QQmlJSScope::ConstPtr & type,
QLatin1String extension )
inlinestatic

Definition at line 25 of file qqmljstyperesolver.cpp.

◆ componentBehavior()

ComponentBehavior componentBehavior ( const QQmlJSScopesById & objectsById)
static

Definition at line 1072 of file qqmljstyperesolver.cpp.

◆ contextObjectWithName()

QQmlJSScope::ConstPtr contextObjectWithName ( const QQmlJSScope::ConstPtr & scope,
const QString & name,
ComponentBehavior behavior )
static

Returns the context object type of the context scope belongs to, if it has a property or method called name. The context object is the root object of the surrounding component. If behavior is Bound, the context objects of the lexically enclosing contexts are searched as well, up to the root of the document or of an inline component. Returns nullptr if no root has the name, or we cannot tell where the component starts.

Definition at line 1086 of file qqmljstyperesolver.cpp.

References QQmlSA::QMLScope.

◆ doConvert()

Definition at line 2009 of file qqmljstyperesolver.cpp.

◆ isRevisionAllowed()

bool isRevisionAllowed ( int memberRevision,
const QQmlJSScope::ConstPtr & scope )
static

Definition at line 1028 of file qqmljstyperesolver.cpp.

◆ mergeVariants()

◆ Q_STATIC_LOGGING_CATEGORY()

Q_STATIC_LOGGING_CATEGORY ( lcTypeResolver ,
"qt.qml.compiler.typeresolver" ,
QtInfoMsg  )

◆ scopeContentVariant()

QQmlJSRegisterContent::ContentVariant scopeContentVariant ( QQmlJSScope::ExtensionKind mode,
bool isMethod )
static

Definition at line 1012 of file qqmljstyperesolver.cpp.