Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QQmlSA Namespace Reference

\inmodule QtQmlCompiler More...

Classes

class  Binding
 \inmodule QtQmlCompiler More...
 
struct  BindingInfo
 
class  BindingPrivate
 
class  BindingsPrivate
 
class  DebugElementPass
 
class  DebugPropertyPass
 
class  Element
 \inmodule QtQmlCompiler More...
 
class  ElementPass
 \inmodule QtQmlCompiler More...
 
class  FixSuggestion
 \inmodule QtQmlCompiler More...
 
class  FixSuggestionPrivate
 
class  GenericPass
 \inmodule QtQmlCompiler More...
 
class  GenericPassPrivate
 
class  LintPlugin
 \inmodule QtQmlCompiler More...
 
class  Method
 \inmodule QtQmlCompiler More...
 
class  MethodPrivate
 
class  MethodsPrivate
 
class  PassManager
 \inmodule QtQmlCompiler More...
 
class  PassManagerPrivate
 
class  Property
 \inmodule QtQmlCompiler More...
 
class  PropertyPass
 \inmodule QtQmlCompiler More...
 
struct  PropertyPassInfo
 
class  PropertyPrivate
 
class  SourceLocation
 \inmodule QtQmlCompiler More...
 
class  SourceLocationPrivate
 

Enumerations

enum  LookupMode { Register , Lookup }
 
enum class  MethodType { Signal , Slot , Method , StaticMethod }
 
enum class  AccessSemantics { Reference , Value , None , Sequence }
 
enum class  Flag {
  Creatable = 0x1 , Composite = 0x2 , Singleton = 0x4 , Script = 0x8 ,
  CustomParser = 0x10 , Array = 0x20 , InlineComponent = 0x40 , WrappedInImplicitComponent = 0x80 ,
  HasBaseTypeError = 0x100 , HasExtensionNamespace = 0x200 , IsListProperty = 0x400
}
 
enum  BindingType : unsigned int {
  Invalid , BoolLiteral , NumberLiteral , StringLiteral ,
  RegExpLiteral , Null , Translation , TranslationById ,
  Script , Object , Interceptor , ValueSource ,
  AttachedProperty , GroupProperty
}
 
enum  ScriptBindingKind : unsigned int { Script_Invalid , Script_PropertyBinding , Script_SignalHandler , Script_ChangeHandler }
 
enum  ExtensionKind { NotExtension , ExtensionType , ExtensionNamespace }
 
enum class  BindingTargetSpecifier { SimplePropertyTarget , ListPropertyTarget , UnnamedPropertyTarget }
 
enum class  ScopeType {
  JSFunctionScope , JSLexicalScope , QMLScope , GroupedPropertyScope ,
  AttachedPropertyScope , EnumScope
}
 
enum class  QQmlJSMetaMethodAccess { Private , Protected , Public }
 

Functions

static QString lookupName (const QQmlSA::Element &element, LookupMode mode=Lookup)
 

Detailed Description

\inmodule QtQmlCompiler

Provides tools for static analysis on QML programs.

\modulestate Technical Preview

Enumeration Type Documentation

◆ AccessSemantics

enum class QQmlSA::AccessSemantics
strong
Enumerator
Reference 
Value 
None 
Sequence 

Definition at line 40 of file qqmlsa_p.h.

◆ BindingTargetSpecifier

enum class QQmlSA::BindingTargetSpecifier
strong
Enumerator
SimplePropertyTarget 
ListPropertyTarget 
UnnamedPropertyTarget 

Definition at line 45 of file qqmlsaconstants.h.

◆ BindingType

enum QQmlSA::BindingType : unsigned int
Enumerator
Invalid 
BoolLiteral 
NumberLiteral 
StringLiteral 
RegExpLiteral 
Null 
Translation 
TranslationById 
Script 
Object 
Interceptor 
ValueSource 
AttachedProperty 
GroupProperty 

Definition at line 15 of file qqmlsaconstants.h.

◆ ExtensionKind

Enumerator
NotExtension 
ExtensionType 
ExtensionNamespace 

Definition at line 39 of file qqmlsaconstants.h.

◆ Flag

enum class QQmlSA::Flag
strong
Enumerator
Creatable 
Composite 
Singleton 
Script 
CustomParser 
Array 
InlineComponent 
WrappedInImplicitComponent 
HasBaseTypeError 
HasExtensionNamespace 
IsListProperty 

Definition at line 42 of file qqmlsa_p.h.

◆ LookupMode

Enumerator
Register 
Lookup 

Definition at line 1036 of file qqmlsa.cpp.

◆ MethodType

enum class QQmlSA::MethodType
strong
Enumerator
Signal 
Slot 
Method 
StaticMethod 

Definition at line 55 of file qqmlsa.h.

◆ QQmlJSMetaMethodAccess

enum class QQmlSA::QQmlJSMetaMethodAccess
strong
Enumerator
Private 
Protected 
Public 

Definition at line 60 of file qqmlsaconstants.h.

◆ ScopeType

enum class QQmlSA::ScopeType
strong
Enumerator
JSFunctionScope 
JSLexicalScope 
QMLScope 
GroupedPropertyScope 
AttachedPropertyScope 
EnumScope 

Definition at line 51 of file qqmlsaconstants.h.

◆ ScriptBindingKind

enum QQmlSA::ScriptBindingKind : unsigned int
Enumerator
Script_Invalid 
Script_PropertyBinding 
Script_SignalHandler 
Script_ChangeHandler 

Definition at line 32 of file qqmlsaconstants.h.

Function Documentation

◆ lookupName()

static QString QQmlSA::lookupName ( const QQmlSA::Element element,
LookupMode  mode = Lookup 
)
static

Definition at line 1037 of file qqmlsa.cpp.

References QQmlSA::Element::baseType(), QString::endsWith(), QQmlJSScope::internalName(), QQmlJSScope::isComposite(), QString::isEmpty(), QQmlSA::Element::isNull(), Register, and QQmlJSScope::scope().

Referenced by QQmlSA::PassManagerPrivate::registerPropertyPass().

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