SourceLocation Class

class QQmlSA ::SourceLocation

Represents a location or region in the source code. 更多...

头: #include <SourceLocation>
CMake: find_package(Qt6 REQUIRED COMPONENTS QmlCompiler)
target_link_libraries(mytarget PRIVATE Qt6::QmlCompiler)
状态: 技术预览

公共函数

quint32 begin () const
quint32 end () const
QQmlSA::SourceLocation endZeroLengthLocation (QStringView text ) const
quint32 length () const
quint32 offset () const
quint32 startColumn () const
quint32 startLine () const
QQmlSA::SourceLocation startZeroLengthLocation () const

详细描述

成员函数文档编制

quint32 SourceLocation:: begin () const

Returns the offset of the beginning of this source location.

quint32 SourceLocation:: end () const

Returns the offset of the end of this source location.

QQmlSA::SourceLocation SourceLocation:: endZeroLengthLocation ( QStringView text ) const

Returns a source location of lenth zero pointing to the end of this source location pointing to text .

quint32 SourceLocation:: length () const

Returns the length of this source location.

quint32 SourceLocation:: offset () const

Returns the offset of the beginning of this source location.

quint32 SourceLocation:: startColumn () const

Returns the column number containing the beginning of this source location.

quint32 SourceLocation:: startLine () const

Returns the line number containing the beginning of this source location.

QQmlSA::SourceLocation SourceLocation:: startZeroLengthLocation () const

Returns a source location of lenth zero pointing to the beginning of this source location.