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

(8675b636fbbb23dde2e2d1cdb29d414dc0379580)

#include "qqmljslintervisitor_p.h"
#include "qqmljsutils_p.h"
#include <stack>
Include dependency graph for qqmljslintervisitor.cpp:

Go to the source code of this file.

Namespaces

namespace  QQmlJS

Enumerations

enum  QQmlJS::OverrideInformation {
  QQmlJS::WithoutOverride = 0 , QQmlJS::WithFinal = 1 , QQmlJS::WithOverride = 2 , QQmlJS::WithoutOverride = 0 ,
  QQmlJS::WithFinal = 1 , QQmlJS::WithOverride = 2
}
enum  QQmlJS::MethodOrProperty { QQmlJS::Method , QQmlJS::Property , QQmlJS::Method , QQmlJS::Property }
enum  QQmlJS::OverrideInformation {
  QQmlJS::WithoutOverride = 0 , QQmlJS::WithFinal = 1 , QQmlJS::WithOverride = 2 , QQmlJS::WithoutOverride = 0 ,
  QQmlJS::WithFinal = 1 , QQmlJS::WithOverride = 2
}
enum  QQmlJS::MethodOrProperty { QQmlJS::Method , QQmlJS::Property , QQmlJS::Method , QQmlJS::Property }

Functions

static void QQmlJS::warnAboutLiteralConstructors (NewMemberExpression *expression, QQmlJSLogger *logger)
static SourceLocation QQmlJS::confusingPluses (BinaryExpression *exp)
static SourceLocation QQmlJS::confusingMinuses (BinaryExpression *exp)
static bool QQmlJS::allCodePathsReturnInsideCase (Node *statement)
static bool QQmlJS::isUselessExpressionStatement (ExpressionNode *ast)
static bool QQmlJS::canHaveUselessExpressionStatement (Node *parent)
 QQmlJS::Q_DECLARE_FLAGS (OverrideInformations, OverrideInformation)
static void QQmlJS::warnForMethodShadowingInBase (const QQmlJSScope::ConstPtr &base, const QString &name, const QQmlJS::SourceLocation &location, QQmlJSLogger *logger)
static void QQmlJS::warnForPropertyShadowingInBase (const QQmlJSScope::ConstPtr &base, const QString &name, const QQmlJS::SourceLocation &location, OverrideInformations overrideFlags, QQmlJSLogger *logger)
static void QQmlJS::warnForDuplicates (const QQmlJSScope::ConstPtr &scope, const QString &name, QLatin1String type, const QQmlJS::SourceLocation &location, OverrideInformations overrideFlags, QQmlJSLogger *logger)
void QQmlJS::warnForShadowsInCurrentScope (const QQmlJSScope::ConstPtr &scopeWithId, const QString &name, const QQmlJSScope::ConstPtr &currentScope, const QQmlJS::SourceLocation &location, MethodOrProperty mode, QQmlJSLogger *logger)

Variables

static constexpr QLatin1String QQmlJS::s_method = "method"_L1
static constexpr QLatin1String QQmlJS::s_signal = "signal"_L1
static constexpr QLatin1String QQmlJS::s_property = "property"_L1