![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Represents the locations where some highlighting should take place, like in the "find all references" feature of the LSP. More...
#include <qqmllsutils_p.h>
Public Member Functions | |
void | sort () |
bool | isEmpty () const |
Usages ()=default | |
Usages (const QList< Location > &usageInFile, const QList< QString > &usageInFilename) | |
QList< Location > | usagesInFile () const |
QList< QString > | usagesInFilename () const |
void | appendUsage (const Location &edit) |
void | appendFilenameUsage (const QString &edit) |
Friends | |
bool | comparesEqual (const Usages &a, const Usages &b) noexcept |
Represents the locations where some highlighting should take place, like in the "find all references" feature of the LSP.
Those locations are pointing to parts of a Qml file or to a Qml file name.
The file names are not reported as usage to the LSP and are currently only needed for the renaming operation to be able to rename files.
Definition at line 176 of file qqmllsutils_p.h.
|
default |
QQmlLSUtils::Usages::Usages | ( | const QList< Location > & | usageInFile, |
const QList< QString > & | usageInFilename ) |
Definition at line 2539 of file qqmllsutils.cpp.
References Usages().
Referenced by Usages().
Definition at line 199 of file qqmllsutils_p.h.
Definition at line 194 of file qqmllsutils_p.h.
Referenced by QQmlLSUtils::findUsagesHelper(), and QQmlLSUtils::findUsagesOfNonJSIdentifiers().
bool QQmlLSUtils::Usages::isEmpty | ( | ) | const |
Definition at line 2534 of file qqmllsutils.cpp.
Referenced by QQmlLSUtils::renameUsagesOf().
void QQmlLSUtils::Usages::sort | ( | ) |
Definition at line 2528 of file qqmllsutils.cpp.
Referenced by QQmlLSUtils::findUsagesOf().
Definition at line 191 of file qqmllsutils_p.h.
Definition at line 192 of file qqmllsutils_p.h.
Definition at line 182 of file qqmllsutils_p.h.