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
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  LoggerWarningId
 \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 class  BindingType : unsigned int {
  Invalid , BoolLiteral , NumberLiteral , StringLiteral ,
  RegExpLiteral , Null , Translation , TranslationById ,
  Script , Object , Interceptor , ValueSource ,
  AttachedProperty , GroupProperty
}
 
enum class  ScriptBindingKind : unsigned int { Invalid , PropertyBinding , SignalHandler , ChangeHandler }
 
enum class  ScopeType {
  JSFunctionScope , JSLexicalScope , QMLScope , GroupedPropertyScope ,
  AttachedPropertyScope , EnumScope
}
 

Functions

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

Detailed Description

\inmodule QtQmlCompiler

Provides tools for static analysis on QML programs.

Enumeration Type Documentation

◆ AccessSemantics

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

Definition at line 40 of file qqmlsa_p.h.

◆ BindingType

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

Definition at line 13 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 1067 of file qqmlsa.cpp.

◆ MethodType

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

Definition at line 49 of file qqmlsa.h.

◆ ScopeType

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

Definition at line 37 of file qqmlsaconstants.h.

◆ ScriptBindingKind

enum class QQmlSA::ScriptBindingKind : unsigned int
strong
Enumerator
Invalid 
PropertyBinding 
SignalHandler 
ChangeHandler 

Definition at line 30 of file qqmlsaconstants.h.

Function Documentation

◆ childScopesBegin()

static QQmlJS::ConstPtrWrapperIterator QQmlSA::childScopesBegin ( const Element & element)
static

Definition at line 1191 of file qqmlsa.cpp.

References QQmlJSScope::scope().

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

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

◆ childScopesEnd()

static QQmlJS::ConstPtrWrapperIterator QQmlSA::childScopesEnd ( const Element & element)
static

Definition at line 1196 of file qqmlsa.cpp.

References QQmlJSScope::scope().

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

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

◆ lookupName()

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

Definition at line 1068 of file qqmlsa.cpp.

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

Referenced by QQmlSA::PassManagerPrivate::findPropertyUsePasses(), and QQmlSA::PassManagerPrivate::registerPropertyPass().

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