Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlLSUtils::Usages Class Reference

Represents the locations where some highlighting should take place, like in the "find all references" feature of the LSP. More...

#include <qqmllsutils_p.h>

Collaboration diagram for QQmlLSUtils::Usages:

Public Member Functions

void sort ()
bool isEmpty () const
 Usages ()=default
 Usages (const QList< Location > &usageInFile, const QList< QString > &usageInFilename)
QList< LocationusagesInFile () const
QList< QStringusagesInFilename () const
void appendUsage (const Location &edit)
void appendFilenameUsage (const QString &edit)

Friends

bool comparesEqual (const Usages &a, const Usages &b) noexcept

Detailed Description

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.

Constructor & Destructor Documentation

◆ Usages() [1/2]

QQmlLSUtils::Usages::Usages ( )
default

◆ Usages() [2/2]

QQmlLSUtils::Usages::Usages ( const QList< Location > & usageInFile,
const QList< QString > & usageInFilename )

Definition at line 2539 of file qqmllsutils.cpp.

References Usages().

Referenced by Usages().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ appendFilenameUsage()

void QQmlLSUtils::Usages::appendFilenameUsage ( const QString & edit)
inline

Definition at line 199 of file qqmllsutils_p.h.

◆ appendUsage()

void QQmlLSUtils::Usages::appendUsage ( const Location & edit)
inline

Definition at line 194 of file qqmllsutils_p.h.

Referenced by QQmlLSUtils::findUsagesHelper(), and QQmlLSUtils::findUsagesOfNonJSIdentifiers().

Here is the caller graph for this function:

◆ isEmpty()

bool QQmlLSUtils::Usages::isEmpty ( ) const

Definition at line 2534 of file qqmllsutils.cpp.

Referenced by QQmlLSUtils::renameUsagesOf().

Here is the caller graph for this function:

◆ sort()

void QQmlLSUtils::Usages::sort ( )

Definition at line 2528 of file qqmllsutils.cpp.

Referenced by QQmlLSUtils::findUsagesOf().

Here is the caller graph for this function:

◆ usagesInFile()

QList< Location > QQmlLSUtils::Usages::usagesInFile ( ) const
inline

Definition at line 191 of file qqmllsutils_p.h.

◆ usagesInFilename()

QList< QString > QQmlLSUtils::Usages::usagesInFilename ( ) const
inline

Definition at line 192 of file qqmllsutils_p.h.

◆ comparesEqual

bool comparesEqual ( const Usages & a,
const Usages & b )
friend

Definition at line 182 of file qqmllsutils_p.h.


The documentation for this class was generated from the following files: