|
QString | QQmlLSUtils::qualifiersFrom (const DomItem &el) |
|
bool | QQmlLSUtils::isFieldMemberExpression (const DomItem &item) |
|
bool | QQmlLSUtils::isFieldMemberAccess (const DomItem &item) |
|
QStringList | QQmlLSUtils::fieldMemberExpressionBits (const DomItem &item, const DomItem &stopAtChild) |
|
QByteArray | QQmlLSUtils::lspUriToQmlUrl (const QByteArray &uri) |
|
QByteArray | QQmlLSUtils::qmlUrlToLspUri (const QByteArray &url) |
|
QLspSpecification::Range | QQmlLSUtils::qmlLocationToLspLocation (const QString &code, QQmlJS::SourceLocation qmlLocation) |
| Converts a QQmlJS::SourceLocation to a LSP Range.
|
|
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).
|
|
static QList< ItemLocation >::const_iterator | QQmlLSUtils::handlePropertyDefinitionAndBindingOverlap (const QList< ItemLocation > &items, qsizetype offsetInFile) |
|
static QList< ItemLocation > | QQmlLSUtils::filterItemsFromTextLocation (const QList< ItemLocation > &items, qsizetype offsetInFile) |
|
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::baseObject (const DomItem &object) |
|
static std::optional< Location > | QQmlLSUtils::locationFromDomItem (const DomItem &item, FileLocationRegion region) |
|
std::optional< Location > | QQmlLSUtils::findTypeDefinitionOf (const DomItem &object) |
| Returns the location of the type definition pointed by object.
|
|
static bool | QQmlLSUtils::findDefinitionFromItem (const DomItem &item, const QString &name) |
|
static DomItem | QQmlLSUtils::findJSIdentifierDefinition (const DomItem &item, const QString &name) |
|
static std::optional< SignalOrProperty > | QQmlLSUtils::resolveNameInQmlScope (const QString &name, const QQmlJSScope::ConstPtr &owner) |
| Find out if {name} is a signal, signal handler, property, property changed signal, or a property changed handler in the given QQmlJSScope.
|
|
static QStringList | QQmlLSUtils::namesOfPossibleUsages (const QString &name, const DomItem &item, const QQmlJSScope::ConstPtr &targetType) |
|
template<typename Predicate > |
QQmlJSScope::ConstPtr | QQmlLSUtils::findDefiningScopeIf (const QQmlJSScope::ConstPtr &referrerScope, Predicate &&check) |
|
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) |
|
static FieldFilter | QQmlLSUtils::filterForFindUsages () |
| Filter away the parts of the Dom not needed for find usages, by following the profiler's information.
|
|
static void | QQmlLSUtils::findUsagesOfNonJSIdentifiers (const DomItem &item, const QString &name, Usages &result) |
|
static Location | QQmlLSUtils::locationFromJSIdentifierDefinition (const DomItem &definitionOfItem, const QString &name) |
|
static void | QQmlLSUtils::findUsagesHelper (const DomItem &item, const QString &name, Usages &result) |
|
Usages | QQmlLSUtils::findUsagesOf (const DomItem &item) |
|
static std::optional< IdentifierType > | QQmlLSUtils::hasMethodOrSignal (const QQmlJSScope::ConstPtr &scope, const QString &name) |
|
static std::optional< ExpressionType > | QQmlLSUtils::methodFromReferrerScope (const QQmlJSScope::ConstPtr &referrerScope, const QString &name, ResolveOptions options) |
|
static std::optional< ExpressionType > | QQmlLSUtils::propertyFromReferrerScope (const QQmlJSScope::ConstPtr &referrerScope, const QString &propertyName, ResolveOptions options) |
|
static std::optional< ExpressionType > | QQmlLSUtils::propertyBindingFromReferrerScope (const QQmlJSScope::ConstPtr &referrerScope, const QString &name, ResolveOptions options, QQmlJSTypeResolver *resolverForIds) |
|
static QQmlJSScope::ConstPtr | QQmlLSUtils::findScopeOfSpecialItems (const QQmlJSScope::ConstPtr &scope, const DomItem &item) |
|
static std::optional< ExpressionType > | QQmlLSUtils::resolveFieldMemberExpressionType (const DomItem &item, ResolveOptions options) |
|
static std::optional< ExpressionType > | QQmlLSUtils::resolveIdentifierExpressionType (const DomItem &item, ResolveOptions options) |
|
static std::optional< ExpressionType > | QQmlLSUtils::resolveSignalOrPropertyExpressionType (const QString &name, const QQmlJSScope::ConstPtr &scope, ResolveOptions options) |
|
std::optional< ExpressionType > | QQmlLSUtils::resolveExpressionType (const QQmlJS::Dom::DomItem &item, ResolveOptions options) |
|
DomItem | QQmlLSUtils::sourceLocationToDomItem (const DomItem &file, const QQmlJS::SourceLocation &location) |
|
static std::optional< Location > | QQmlLSUtils::findMethodDefinitionOf (const DomItem &file, QQmlJS::SourceLocation location, const QString &name) |
|
static std::optional< Location > | QQmlLSUtils::findPropertyDefinitionOf (const DomItem &file, QQmlJS::SourceLocation propertyDefinitionLocation, const QString &name) |
|
std::optional< Location > | QQmlLSUtils::findDefinitionOf (const DomItem &item) |
|
static QQmlJSScope::ConstPtr | QQmlLSUtils::propertyOwnerFrom (const QQmlJSScope::ConstPtr &type, const QString &name) |
|
static QQmlJSScope::ConstPtr | QQmlLSUtils::methodOwnerFrom (const QQmlJSScope::ConstPtr &type, const QString &name) |
|
static QQmlJSScope::ConstPtr | QQmlLSUtils::expressionTypeWithDefinition (const ExpressionType &ownerType) |
|
std::optional< ErrorMessage > | QQmlLSUtils::checkNameForRename (const DomItem &item, const QString &dirtyNewName, const std::optional< ExpressionType > &ownerType) |
|
static std::optional< QString > | QQmlLSUtils::oldNameFrom (const DomItem &item) |
|
static std::optional< QString > | QQmlLSUtils::newNameFrom (const QString &dirtyNewName, IdentifierType alternative) |
|
RenameUsages | QQmlLSUtils::renameUsagesOf (const DomItem &item, const QString &dirtyNewName, const std::optional< ExpressionType > &targetType) |
| Rename the appearance of item to newName.
|
|
bool | QQmlLSUtils::isValidEcmaScriptIdentifier (QStringView identifier) |
|
QPair< QString, QStringList > | QQmlLSUtils::cmakeBuildCommand (const QString &path) |
|