![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtQmlCompiler More...
#include <qqmlsasourcelocation.h>
Public Member Functions | |
| SourceLocation (quint32 offset=0, quint32 length=0, quint32 line=0, quint32 column=0) | |
| Constructs a new SourceLocation with values given by offset, length, line, and column. | |
| SourceLocation (const SourceLocation &) | |
| Creates a copy of other. | |
| SourceLocation (SourceLocation &&other) noexcept | |
| Move-Constructs a SourceLocation from other. | |
| SourceLocation & | operator= (const SourceLocation &) |
| Assigns other to this SourceLocation. | |
| SourceLocation & | operator= (SourceLocation &&other) noexcept |
| Move-assigns other to this SourceLocation. | |
| ~SourceLocation () | |
| Destructs this SourceLocation instance. | |
| bool | isValid () const |
Returns true is this SourceLocation is valid, false otherwise. | |
| quint32 | begin () const |
| Returns the offset of the beginning of this source location. | |
| quint32 | end () const |
| Returns the offset of the end of this source location. | |
| quint32 | offset () const |
| Returns the offset of the beginning of this source location. | |
| quint32 | length () const |
| Returns the length of this source location. | |
| quint32 | startLine () const |
| Returns the line number containing the beginning of this source location. | |
| quint32 | startColumn () const |
| Returns the column number containing the beginning of this source location. | |
| SourceLocation | startZeroLengthLocation () const |
| Returns a source location of lenth zero pointing to the beginning of this source location. | |
| SourceLocation | endZeroLengthLocation (QStringView text) const |
| Returns a source location of lenth zero pointing to the end of this source location pointing to text. | |
Static Public Member Functions | |
| static SourceLocation | documentOrigin () |
| Returns the source location of the origin of any QML document. | |
Friends | |
| class | QT_PREPEND_NAMESPACE (QQmlSA::SourceLocationPrivate) |
| qsizetype | qHash (const SourceLocation &location, qsizetype seed=0) |
| Returns the hash value for location, using seed to seed the calculation. | |
| bool | operator== (const SourceLocation &lhs, const SourceLocation &rhs) |
Returns true if lhs equals rhs, and false otherwise. | |
| bool | operator!= (const SourceLocation &lhs, const SourceLocation &rhs) |
Returns true if lhs does not equal rhs, and false otherwise. | |
\inmodule QtQmlCompiler
Represents a location or region in the source code.
Definition at line 22 of file qqmlsasourcelocation.h.
|
explicit |
Constructs a new SourceLocation with values given by offset, length, line, and column.
Definition at line 29 of file qqmlsasourcelocation.cpp.
|
default |
Creates a copy of other.
|
inlinenoexcept |
Move-Constructs a SourceLocation from other.
Definition at line 30 of file qqmlsasourcelocation.h.
|
default |
Destructs this SourceLocation instance.
| quint32 QQmlSA::SourceLocation::begin | ( | ) | const |
Returns the offset of the beginning of this source location.
Definition at line 71 of file qqmlsasourcelocation.cpp.
|
static |
Returns the source location of the origin of any QML document.
Definition at line 175 of file qqmlsasourcelocation.cpp.
| quint32 QQmlSA::SourceLocation::end | ( | ) | const |
Returns the offset of the end of this source location.
Definition at line 79 of file qqmlsasourcelocation.cpp.
| QQmlSA::SourceLocation QQmlSA::SourceLocation::endZeroLengthLocation | ( | QStringView | text | ) | const |
Returns a source location of lenth zero pointing to the end of this source location pointing to text.
Definition at line 134 of file qqmlsasourcelocation.cpp.
| bool QQmlSA::SourceLocation::isValid | ( | ) | const |
Returns true is this SourceLocation is valid, false otherwise.
Definition at line 63 of file qqmlsasourcelocation.cpp.
| quint32 QQmlSA::SourceLocation::length | ( | ) | const |
Returns the length of this source location.
Definition at line 95 of file qqmlsasourcelocation.cpp.
| quint32 QQmlSA::SourceLocation::offset | ( | ) | const |
Returns the offset of the beginning of this source location.
Definition at line 87 of file qqmlsasourcelocation.cpp.
|
default |
Assigns other to this SourceLocation.
|
inlinenoexcept |
Move-assigns other to this SourceLocation.
Definition at line 36 of file qqmlsasourcelocation.h.
| quint32 QQmlSA::SourceLocation::startColumn | ( | ) | const |
Returns the column number containing the beginning of this source location.
Definition at line 111 of file qqmlsasourcelocation.cpp.
| quint32 QQmlSA::SourceLocation::startLine | ( | ) | const |
Returns the line number containing the beginning of this source location.
Definition at line 103 of file qqmlsasourcelocation.cpp.
| QQmlSA::SourceLocation QQmlSA::SourceLocation::startZeroLengthLocation | ( | ) | const |
Returns a source location of lenth zero pointing to the beginning of this source location.
Definition at line 120 of file qqmlsasourcelocation.cpp.
|
friend |
Returns true if lhs does not equal rhs, and false otherwise.
See \l {SourceLocation::operator==} for when two source locations are considered equal.
Definition at line 67 of file qqmlsasourcelocation.h.
|
friend |
Returns true if lhs equals rhs, and false otherwise.
Two SourceLocations are considered equal if they have the same values for their offset, length, line, and column members.
Definition at line 62 of file qqmlsasourcelocation.h.
|
friend |
Returns the hash value for location, using seed to seed the calculation.
Definition at line 57 of file qqmlsasourcelocation.h.
|
friend |