|
QT_BEGIN_NAMESPACE | Q_DECLARE_LOGGING_CATEGORY (QQmlLSUtilsLog) |
qsizetype | QQmlLSUtils::textOffsetFrom (const QString &text, int row, int column) |
| Convert a text position from (line, column) into an offset.
|
TextPosition | QQmlLSUtils::textRowAndColumnFrom (const QString &text, qsizetype offset) |
| Convert a text position from an offset into (line, column).
|
QList< ItemLocation > | QQmlLSUtils::itemsFromTextLocation (const DomItem &file, int line, int character) |
| Find the DomItem representing the object situated in file at given line and character/column.
|
DomItem | QQmlLSUtils::sourceLocationToDomItem (const DomItem &file, const QQmlJS::SourceLocation &location) |
QByteArray | QQmlLSUtils::lspUriToQmlUrl (const QByteArray &uri) |
QByteArray | QQmlLSUtils::qmlUrlToLspUri (const QByteArray &url) |
QLspSpecification::Range | QQmlLSUtils::qmlLocationToLspLocation (Location qmlLocation) |
| Converts a QQmlJS::SourceLocation to a LSP Range.
|
DomItem | QQmlLSUtils::baseObject (const DomItem &qmlObject) |
std::optional< Location > | QQmlLSUtils::findTypeDefinitionOf (const DomItem &object) |
| Returns the location of the type definition pointed by object.
|
std::optional< Location > | QQmlLSUtils::findDefinitionOf (const DomItem &item, const QStringList &headerDirectories) |
Usages | QQmlLSUtils::findUsagesOf (const DomItem &item) |
std::optional< ErrorMessage > | QQmlLSUtils::checkNameForRename (const DomItem &item, const QString &newName, const std::optional< ExpressionType > &targetType=std::nullopt) |
RenameUsages | QQmlLSUtils::renameUsagesOf (const DomItem &item, const QString &dirtyNewName, const std::optional< ExpressionType > &targetType) |
| Rename the appearance of item to newName.
|
std::optional< ExpressionType > | QQmlLSUtils::resolveExpressionType (const QQmlJS::Dom::DomItem &item, ResolveOptions options) |
| Resolves the type of the given DomItem, when possible (e.g., when there are enough type annotations).
|
bool | QQmlLSUtils::isValidEcmaScriptIdentifier (QStringView view) |
std::pair< QString, QStringList > | QQmlLSUtils::cmakeBuildCommand (const QString &path) |
bool | QQmlLSUtils::isFieldMemberExpression (const DomItem &item) |
bool | QQmlLSUtils::isFieldMemberAccess (const DomItem &item) |
bool | QQmlLSUtils::isFieldMemberBase (const DomItem &item) |
QStringList | QQmlLSUtils::fieldMemberExpressionBits (const DomItem &item, const DomItem &stopAtChild={}) |
QString | QQmlLSUtils::qualifiersFrom (const DomItem &el) |
QQmlJSScope::ConstPtr | QQmlLSUtils::findDefiningScopeForProperty (const QQmlJSScope::ConstPtr &referrerScope, const QString &nameToCheck) |
| Finds the scope where a property is first defined.
|
QQmlJSScope::ConstPtr | QQmlLSUtils::findDefiningScopeForBinding (const QQmlJSScope::ConstPtr &referrerScope, const QString &nameToCheck) |
QQmlJSScope::ConstPtr | QQmlLSUtils::findDefiningScopeForMethod (const QQmlJSScope::ConstPtr &referrerScope, const QString &nameToCheck) |
QQmlJSScope::ConstPtr | QQmlLSUtils::findDefiningScopeForEnumeration (const QQmlJSScope::ConstPtr &referrerScope, const QString &nameToCheck) |
QQmlJSScope::ConstPtr | QQmlLSUtils::findDefiningScopeForEnumerationKey (const QQmlJSScope::ConstPtr &referrerScope, const QString &nameToCheck) |
QStringList | QQmlLSUtils::findFilePathsFromFileNames (const QString &rootDir, const QStringList &fileNamesToSearch, const QSet< QString > &ignoredPaths) |
QString | QQmlLSUtils::findFilePathFromFileName (const QStringList &rootDirs, const QString &fileNameToSearch, const QSet< QString > &ignoredPaths) |