Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qqmljssourcelocation_p.h>
Public Member Functions | |
SourceLocation (quint32 offset=0, quint32 length=0, quint32 line=0, quint32 column=0) | |
bool | isValid () const |
quint32 | begin () const |
quint32 | end () const |
SourceLocation | startZeroLengthLocation () const |
SourceLocation | endZeroLengthLocation (QStringView text) const |
Public Attributes | |
quint32 | offset |
quint32 | length |
quint32 | startLine |
quint32 | startColumn |
Friends | |
size_t | qHash (const SourceLocation &location, size_t seed=0) |
bool | operator== (const SourceLocation &a, const SourceLocation &b) |
bool | operator!= (const SourceLocation &a, const SourceLocation &b) |
SourceLocation | combine (const SourceLocation &l1, const SourceLocation &l2) |
Definition at line 25 of file qqmljssourcelocation_p.h.
|
inlineexplicit |
Definition at line 28 of file qqmljssourcelocation_p.h.
Referenced by endZeroLengthLocation(), isValid(), and startZeroLengthLocation().
|
inline |
Definition at line 35 of file qqmljssourcelocation_p.h.
References offset.
Referenced by QQmlJS::AST::UiPropertyAttributes::compareLocationsByBegin(), filterItemsFromTextLocation(), QV4::Compiler::Codegen::referenceForName(), and QQmlJS::Dom::FileLocations::updateFullLocation().
|
inline |
Definition at line 36 of file qqmljssourcelocation_p.h.
References length.
Referenced by endZeroLengthLocation(), QV4::Compiler::Context::Member::requiresTDZCheck(), QQmlJS::Dom::FileLocations::updateFullLocation(), and QV4::Compiler::ScanFunctions::visit().
|
inline |
Definition at line 44 of file qqmljssourcelocation_p.h.
References SourceLocation(), QString::at(), end(), i, offset, Q_FALLTHROUGH, startColumn, startLine, and text.
Referenced by QQmlSA::SourceLocation::endZeroLengthLocation().
|
inline |
Definition at line 33 of file qqmljssourcelocation_p.h.
References SourceLocation().
Referenced by QQmlJSScope::addOwnPropertyBinding(), QQmlJS::AST::UiPropertyAttributes::compareLocationsByBegin(), findUsagesOfNonJSIdentifiers(), QQmlJS::AST::PatternElement::firstSourceLocation(), QQmlJS::AST::UiParameterList::firstSourceLocation(), QQmlJS::AST::UiPropertyAttributes::isDefaultMember(), QQmlJS::AST::UiPublicMember::isDefaultMember(), QQmlJS::AST::UiPropertyAttributes::isRequired(), QQmlJS::AST::UiPublicMember::isRequired(), QQmlJS::AST::UiParameterList::lastOwnSourceLocation(), QQmlJS::AST::UiVersionSpecifier::lastSourceLocation(), QQmlJS::AST::PatternProperty::lastSourceLocation(), QQmlJS::AST::ExportSpecifier::lastSourceLocation(), QV4::Compiler::Codegen::referenceForName(), QV4::Compiler::Context::Member::requiresTDZCheck(), QQmlJSImportVisitor::rootScopeIsValid(), QQmlJS::Dom::ScriptFormatter::visit(), QQmlJSImportVisitor::visit(), QQmlJSImportVisitor::visit(), and QV4::Compiler::ScanFunctions::visit().
|
inline |
Definition at line 39 of file qqmljssourcelocation_p.h.
References SourceLocation(), startColumn, and startLine.
|
friend |
Definition at line 91 of file qqmljssourcelocation_p.h.
|
friend |
Definition at line 87 of file qqmljssourcelocation_p.h.
|
friend |
Definition at line 81 of file qqmljssourcelocation_p.h.
|
friend |
Definition at line 75 of file qqmljssourcelocation_p.h.
quint32 QQmlJS::SourceLocation::length |
Definition at line 71 of file qqmljssourcelocation_p.h.
Referenced by end(), QQmlJS::Dom::ScriptFormatter::out(), QQmlJS::Dom::sourceLocationToQCborValue(), QmlIR::IRBuilder::textRefAt(), QmlIR::IRBuilder::textRefAt(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::ScriptFormatter::visit(), QQmlJS::Dom::ScriptFormatter::visit(), QQmlJS::Dom::ScriptFormatter::visit(), QQmlJS::Dom::ScriptFormatter::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QV4::Compiler::ScanFunctions::visit(), QV4::Compiler::ScanFunctions::visit(), and QV4::Compiler::ScanFunctions::visit().
quint32 QQmlJS::SourceLocation::offset |
Definition at line 70 of file qqmljssourcelocation_p.h.
Referenced by QQmlJSLinter::applyFixes(), begin(), endZeroLengthLocation(), QQmlJS::Dom::ScriptExpression::locationToGlobalF(), QQmlJS::Dom::sourceLocationToQCborValue(), QmlIR::IRBuilder::textRefAt(), QmlIR::IRBuilder::textRefAt(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QV4::Compiler::ScanFunctions::visit(), and QV4::Compiler::ScanFunctions::visit().
quint32 QQmlJS::SourceLocation::startColumn |
Definition at line 73 of file qqmljssourcelocation_p.h.
Referenced by QmlIR::IRBuilder::appendAlias(), endZeroLengthLocation(), QQmlJS::Dom::ScriptExpression::locationToGlobalF(), QV4::Compiler::Module::newContext(), QV4::Compiler::CodegenWarningInterface::reportVarUsedBeforeDeclaration(), CodegenWarningInterface::reportVarUsedBeforeDeclaration(), QmlIR::IRBuilder::setBindingValue(), QQmlDirParser::setError(), QQmlJS::Dom::sourceLocationToQCborValue(), startZeroLengthLocation(), QV4::RuntimeCodegen::throwReferenceError(), QV4::RuntimeCodegen::throwSyntaxError(), QmlIR::IRBuilder::visit(), QmlIR::IRBuilder::visit(), QmlIR::IRBuilder::visit(), QmlIR::IRBuilder::visit(), and QmlIR::IRBuilder::visit().
quint32 QQmlJS::SourceLocation::startLine |
Definition at line 72 of file qqmljssourcelocation_p.h.
Referenced by QmlIR::IRBuilder::appendAlias(), endZeroLengthLocation(), QQmlJS::Dom::ScriptExpression::locationToGlobalF(), QV4::Compiler::Module::newContext(), QV4::Compiler::CodegenWarningInterface::reportVarUsedBeforeDeclaration(), CodegenWarningInterface::reportVarUsedBeforeDeclaration(), QQmlJSFunctionInitializer::run(), QmlIR::IRBuilder::setBindingValue(), QQmlDirParser::setError(), QV4::Moth::BytecodeGenerator::setLocation(), QQmlJS::Dom::sourceLocationToQCborValue(), startZeroLengthLocation(), QV4::RuntimeCodegen::throwReferenceError(), QV4::RuntimeCodegen::throwSyntaxError(), QmlIR::IRBuilder::visit(), QmlIR::IRBuilder::visit(), QmlIR::IRBuilder::visit(), QmlIR::IRBuilder::visit(), and QmlIR::IRBuilder::visit().