Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qqmllsutils_p.h File Reference

(25df77b5b3ba014bdd5c64269c8a8a250dab7b00)

#include <QtLanguageServer/private/qlanguageserverspectypes_p.h>
#include <QtQmlDom/private/qqmldomexternalitems_p.h>
#include <QtQmlDom/private/qqmldomtop_p.h>
#include <algorithm>
#include <optional>
#include <tuple>
#include <variant>
+ Include dependency graph for qqmllsutils_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  QQmlLSUtilsItemLocation
 
struct  QQmlLSUtilsTextPosition
 
struct  QQmlLSUtilsErrorMessage
 
struct  QQmlLSUtilsExpressionType
 
struct  QQmlLSUtilsLocation
 
struct  QQmlLSUtilsEdit
 
class  QQmlLSUtils
 

Typedefs

using DomItem = QQmlJS::Dom::DomItem
 

Enumerations

enum  QQmlLSUtilsIdentifierType : char {
  JavaScriptIdentifier , PropertyIdentifier , PropertyChangedSignalIdentifier , PropertyChangedHandlerIdentifier ,
  SignalIdentifier , SignalHandlerIdentifier , MethodIdentifier , QmlObjectIdIdentifier ,
  SingletonIdentifier , EnumeratorIdentifier , EnumeratorValueIdentifier , AttachedTypeIdentifier ,
  GroupedPropertyIdentifier , QmlComponentIdentifier
}
 
enum  QQmlLSUtilsResolveOptions { ResolveOwnerType , ResolveActualTypeForFieldMemberExpression }
 
enum class  ImportCompletionType { None , Module , Version }
 

Functions

QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY (QQmlLSUtilsLog)
 

Typedef Documentation

◆ DomItem

using DomItem = QQmlJS::Dom::DomItem

Definition at line 132 of file qqmllsutils_p.h.

Enumeration Type Documentation

◆ ImportCompletionType

enum class ImportCompletionType
strong
Enumerator
None 
Module 
Version 

Definition at line 130 of file qqmllsutils_p.h.

◆ QQmlLSUtilsIdentifierType

Enumerator
JavaScriptIdentifier 
PropertyIdentifier 
PropertyChangedSignalIdentifier 
PropertyChangedHandlerIdentifier 
SignalIdentifier 
SignalHandlerIdentifier 
MethodIdentifier 
QmlObjectIdIdentifier 
SingletonIdentifier 
EnumeratorIdentifier 
EnumeratorValueIdentifier 
AttachedTypeIdentifier 
GroupedPropertyIdentifier 
QmlComponentIdentifier 

Definition at line 42 of file qqmllsutils_p.h.

◆ QQmlLSUtilsResolveOptions

Choose whether to resolve the owner type or the entire type (the latter is only required to resolve the types of qualified names and property accesses).

For properties, methods, enums and co: ResolveOwnerType returns the base type of the owner that owns the property, method, enum and co. For example, resolving "x" in "myRectangle.x" will return the Item as the owner, as Item is the base type of Rectangle that defines the "x" property. ResolveActualTypeForFieldMemberExpression is used to resolve field member expressions, and might lose some information about the owner. For example, resolving "x" in "myRectangle.x" will return the JS type for float that was used to define the "x" property.

Enumerator
ResolveOwnerType 
ResolveActualTypeForFieldMemberExpression 

Definition at line 125 of file qqmllsutils_p.h.

Function Documentation

◆ Q_DECLARE_LOGGING_CATEGORY()

QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY ( QQmlLSUtilsLog )