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>.
Loading...
Searching...
No Matches
QQmlJS::SourceLocation Class Reference

#include <qqmljssourcelocation_p.h>

+ Collaboration diagram for QQmlJS::SourceLocation:

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)
 

Detailed Description

Definition at line 25 of file qqmljssourcelocation_p.h.

Constructor & Destructor Documentation

◆ SourceLocation()

QQmlJS::SourceLocation::SourceLocation ( quint32 offset = 0,
quint32 length = 0,
quint32 line = 0,
quint32 column = 0 )
inlineexplicit

Definition at line 28 of file qqmljssourcelocation_p.h.

Referenced by endZeroLengthLocation(), isValid(), and startZeroLengthLocation().

+ Here is the caller graph for this function:

Member Function Documentation

◆ begin()

quint32 QQmlJS::SourceLocation::begin ( ) const
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().

+ Here is the caller graph for this function:

◆ end()

quint32 QQmlJS::SourceLocation::end ( ) const
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().

+ Here is the caller graph for this function:

◆ endZeroLengthLocation()

SourceLocation QQmlJS::SourceLocation::endZeroLengthLocation ( QStringView text) const
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isValid()

◆ startZeroLengthLocation()

SourceLocation QQmlJS::SourceLocation::startZeroLengthLocation ( ) const
inline

Definition at line 39 of file qqmljssourcelocation_p.h.

References SourceLocation(), startColumn, and startLine.

+ Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ combine

SourceLocation combine ( const SourceLocation & l1,
const SourceLocation & l2 )
friend

Definition at line 91 of file qqmljssourcelocation_p.h.

◆ operator!=

bool operator!= ( const SourceLocation & a,
const SourceLocation & b )
friend

Definition at line 87 of file qqmljssourcelocation_p.h.

◆ operator==

bool operator== ( const SourceLocation & a,
const SourceLocation & b )
friend

Definition at line 81 of file qqmljssourcelocation_p.h.

◆ qHash

size_t qHash ( const SourceLocation & location,
size_t seed = 0 )
friend

Definition at line 75 of file qqmljssourcelocation_p.h.

Member Data Documentation

◆ length

◆ offset

◆ startColumn

◆ startLine


The documentation for this class was generated from the following file: