![]() |
Qt 6.x
The Qt SDK
|
#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.
|
inline |
Definition at line 35 of file qqmljssourcelocation_p.h.
References offset.
Referenced by QQmlSA::SourceLocation::begin(), QQmlJS::Dom::CommentedElement::commentGroups(), QQmlJS::AST::UiPropertyAttributes::compareLocationsByBegin(), QQmlLSUtils::itemsFromTextLocation(), QV4::Compiler::Codegen::referenceForName(), QV4::Compiler::Context::Member::requiresTDZCheck(), QQmlJS::Dom::FileLocations::updateFullLocation(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QQmlJSImportVisitor::visit().
|
inline |
Definition at line 36 of file qqmljssourcelocation_p.h.
References length.
Referenced by QQmlJS::Dom::CommentedElement::commentGroups(), QQmlSA::SourceLocation::end(), endZeroLengthLocation(), QQmlLSUtils::itemsFromTextLocation(), QQmlLSUtils::qmlLocationToLspLocation(), QV4::Compiler::Codegen::referenceForName(), QV4::Compiler::Context::Member::requiresTDZCheck(), QQmlJS::Dom::FileLocations::updateFullLocation(), QQmlJS::Dom::QQmlDomAstCreator::visit(), and QV4::Compiler::ScanFunctions::visit().
|
inline |
Definition at line 44 of file qqmljssourcelocation_p.h.
References 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.
Referenced by QQmlJSScope::addOwnPropertyBinding(), QQmlJS::AST::UiPropertyAttributes::compareLocationsByBegin(), QmlLsp::QmlLintSuggestions::diagnose(), QQmlJS::Dom::QQmlDomAstCreator::endVisitHelper(), QQmlJS::AST::PatternElement::firstSourceLocation(), QQmlJS::AST::UiParameterList::firstSourceLocation(), QQmlJS::AST::UiPropertyAttributes::isDefaultMember(), QQmlJS::AST::UiPublicMember::isDefaultMember(), QQmlJS::AST::UiPropertyAttributes::isRequired(), QQmlJS::AST::UiPublicMember::isRequired(), QQmlSA::SourceLocation::isValid(), 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(), QQmlJSImportVisitor::visit(), QQmlJSImportVisitor::visit(), and QV4::Compiler::ScanFunctions::visit().
|
inline |
Definition at line 39 of file qqmljssourcelocation_p.h.
References startColumn, and startLine.
Referenced by QQmlSA::SourceLocation::startZeroLengthLocation().
|
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 QQmlJSLinter::applyFixes(), end(), QQmlSA::SourceLocation::length(), QQmlJS::Dom::Rewriter::out(), QmlIR::IRBuilder::textRefAt(), QmlIR::IRBuilder::textRefAt(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::QQmlDomAstCreator::visit(), QQmlJS::Dom::Rewriter::visit(), QV4::Compiler::ScanFunctions::visit(), QV4::Compiler::ScanFunctions::visit(), QV4::Compiler::ScanFunctions::visit(), QQmlJSImportVisitor::visit(), QQmlJS::Dom::Rewriter::visit(), QQmlJS::Dom::Rewriter::visit(), and QQmlJS::Dom::Rewriter::visit().
quint32 QQmlJS::SourceLocation::offset |
Definition at line 70 of file qqmljssourcelocation_p.h.
Referenced by QmlIR::IRBuilder::appendBinding(), QmlIR::IRBuilder::appendBinding(), QQmlJSLinter::applyFixes(), begin(), endZeroLengthLocation(), QQmlJS::Dom::ScriptExpression::locationToGlobalF(), QQmlSA::SourceLocation::offset(), QmlIR::IRBuilder::resolveQualifiedId(), 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(), QmlIR::IRBuilder::appendBinding(), QmlIR::IRBuilder::appendBinding(), QmlLsp::QmlLintSuggestions::diagnose(), endZeroLengthLocation(), location(), QQmlJS::Dom::ScriptExpression::locationToGlobalF(), QV4::Compiler::Module::newContext(), QQmlLSUtils::qmlLocationToLspLocation(), QV4::Compiler::Codegen::referenceForName(), QV4::Compiler::CodegenWarningInterface::reportVarUsedBeforeDeclaration(), CodegenWarningInterface::reportVarUsedBeforeDeclaration(), QmlIR::IRBuilder::resolveQualifiedId(), QQmlJSFunctionInitializer::run(), QmlIR::IRBuilder::sanityCheckFunctionNames(), QmlIR::IRBuilder::setBindingValue(), QmlIR::IRBuilder::setId(), QQmlSA::SourceLocation::startColumn(), 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(), QmlIR::IRBuilder::appendBinding(), QmlIR::IRBuilder::appendBinding(), QmlLsp::QmlLintSuggestions::diagnose(), endZeroLengthLocation(), location(), QQmlJS::Dom::ScriptExpression::locationToGlobalF(), QV4::Compiler::Module::newContext(), QQmlLSUtils::qmlLocationToLspLocation(), QV4::Compiler::Codegen::referenceForName(), QV4::Compiler::CodegenWarningInterface::reportVarUsedBeforeDeclaration(), CodegenWarningInterface::reportVarUsedBeforeDeclaration(), QmlIR::IRBuilder::resolveQualifiedId(), QQmlJSFunctionInitializer::run(), QmlIR::IRBuilder::sanityCheckFunctionNames(), QmlIR::IRBuilder::setBindingValue(), QmlIR::IRBuilder::setId(), QV4::Moth::BytecodeGenerator::setLocation(), QQmlSA::SourceLocation::startLine(), startZeroLengthLocation(), QV4::RuntimeCodegen::throwReferenceError(), QV4::RuntimeCodegen::throwSyntaxError(), QmlIR::IRBuilder::visit(), QmlIR::IRBuilder::visit(), QmlIR::IRBuilder::visit(), QmlIR::IRBuilder::visit(), and QmlIR::IRBuilder::visit().