41 m_annotations = annotations;
110void QQmlJSShadowCheck::checkShadowing(
140 u
"Member %1 of %2 can be shadowed"_s.arg(
151 currentAnnotation.changedRegister.storedType(), varType);
156 for (
auto it = currentAnnotation.readRegisters.
begin(),
157 end = currentAnnotation.readRegisters.end();
159 if (
it.key() != baseRegister)
qsizetype size() const noexcept
Returns the number of bytes in this byte array.
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
iterator find(const Key &key)
const QV4::Compiler::JSUnitGenerator * m_jsUnitGenerator
const Function * m_function
const QQmlJSTypeResolver * m_typeResolver
QQmlJS::DiagnosticMessage * m_error
State initialState(const Function *function)
State nextStateFromAnnotations(const State &oldState, const InstructionAnnotations &annotations)
QQmlJS::SourceLocation currentSourceLocation() const
void log(const QString &message, QQmlJS::LoggerWarningId id, const QQmlJS::SourceLocation &srcLocation, bool showContext=true, bool showFileName=true, const std::optional< QQmlJSFixSuggestion > &suggestion={}, const QString overrideFileName=QString())
QString descriptiveName() const
QQmlJSMetaProperty property() const
ContentVariant variant() const
QQmlJSScope::ConstPtr storedType() const
@ ExtensionObjectProperty
AccessSemantics accessSemantics() const
void endInstruction(QV4::Moth::Instr::Type) override
void generate_CallPropertyLookup(int nameIndex, int base, int argc, int argv) override
QV4::Moth::ByteCodeHandler::Verdict startInstruction(QV4::Moth::Instr::Type) override
void generate_SetLookup(int index, int base) override
void generate_LoadProperty(int nameIndex) override
void generate_CallProperty(int nameIndex, int base, int argc, int argv) override
void generate_GetLookup(int index) override
void generate_StoreProperty(int nameIndex, int base) override
void run(InstructionAnnotations *annotations, const Function *function, QQmlJS::DiagnosticMessage *error)
QQmlJSRegisterContent memberType(const QQmlJSRegisterContent &type, const QString &name) const
QQmlJSScope::ConstPtr containedType(const QQmlJSRegisterContent &container) const
bool isPrefix(const QString &name) const
QQmlJSRegisterContent globalType(const QQmlJSScope::ConstPtr &type) const
QQmlJSRegisterContent convert(const QQmlJSRegisterContent &from, const QQmlJSRegisterContent &to) const
void adjustOriginalType(const QQmlJSScope::ConstPtr &tracked, const QQmlJSScope::ConstPtr &conversion) const
QQmlJSScope::ConstPtr varType() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
int currentInstructionOffset() const
QSet< QString >::iterator it
Combined button and popup list for selecting options.
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction function
DBusConnection const char DBusError * error
const QQmlJS::LoggerWarningId qmlCompiler
const QQmlJSRegisterContent & accumulatorIn() const
VirtualRegisters registers
int changedRegisterIndex() const
bool readsRegister(int registerIndex) const
bool hasSideEffects() const
QString lookupName(int index) const
QString stringForIndex(int index) const