4#ifndef QLANGUAGESERVERUTILS_P_H
5#define QLANGUAGESERVERUTILS_P_H
18#include <QtLanguageServer/private/qlanguageserverspectypes_p.h>
19#include <QtQmlDom/private/qqmldomexternalitems_p.h>
20#include <QtQmlDom/private/qqmldomtop_p.h>
46 return std::make_tuple(
a.filename,
a.location.begin(),
a.location.end())
47 < std::make_tuple(
b.filename,
b.location.begin(),
b.location.end());
51 return std::make_tuple(
a.filename,
a.location.begin(),
a.location.end())
52 == std::make_tuple(
b.filename,
b.location.begin(),
b.location.end());
std::shared_ptr< AttachedInfoT< FileLocations > > Tree
static QQmlJS::Dom::DomItem findTypeDefinitionOf(QQmlJS::Dom::DomItem item)
Extracts the QML object type of an \l DomItem.
static QQmlJS::Dom::DomItem sourceLocationToDomItem(QQmlJS::Dom::DomItem file, const QQmlJS::SourceLocation &location)
static QQmlJSScope::ConstPtr resolveExpressionType(QQmlJS::Dom::DomItem item, QQmlLSUtilsResolveOptions)
static std::optional< QQmlLSUtilsLocation > findDefinitionOf(QQmlJS::Dom::DomItem item)
static QByteArray lspUriToQmlUrl(const QByteArray &uri)
static QQmlJS::Dom::DomItem baseObject(QQmlJS::Dom::DomItem qmlObject)
static QByteArray qmlUrlToLspUri(const QByteArray &url)
static QList< QQmlLSUtilsLocation > findUsagesOf(QQmlJS::Dom::DomItem item)
static QLspSpecification::Range qmlLocationToLspLocation(const QString &code, QQmlJS::SourceLocation qmlLocation)
Converts a QQmlJS::SourceLocation to a LSP Range.
static qsizetype textOffsetFrom(const QString &code, int row, int character)
Convert a text position from (line, column) into an offset.
static QList< QQmlLSUtilsItemLocation > itemsFromTextLocation(QQmlJS::Dom::DomItem file, int line, int character)
Find the DomItem representing the object situated in file at given line and character/column.
static QQmlLSUtilsTextPosition textRowAndColumnFrom(const QString &code, qsizetype offset)
Convert a text position from an offset into (line, column).
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum GLuint GLintptr offset
GLenum GLenum GLsizei void * row
QQmlLSUtilsResolveOptions
QUrl url("example.com")
[constructor-url-reference]
QQmlJS::Dom::DomItem domItem
QQmlJS::Dom::FileLocations::Tree fileLocation
friend bool operator==(const QQmlLSUtilsLocation &a, const QQmlLSUtilsLocation &b)
QQmlJS::SourceLocation location
friend bool operator<(const QQmlLSUtilsLocation &a, const QQmlLSUtilsLocation &b)