Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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.

Member Function Documentation

◆ begin()

◆ end()

◆ endZeroLengthLocation()

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

+ 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 startColumn, and startLine.

Referenced by QQmlSA::SourceLocation::startZeroLengthLocation().

+ Here is the caller 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: