Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QQmlSA Namespace Reference

\inmodule QtQmlCompiler More...

Classes

class  Binding
 \inmodule QtQmlCompiler More...
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
struct  GenericPropertyPass
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...
class  PropertyPassBuilder
struct  PropertyPassInvocation
class  PropertyPrivate
class  SourceLocation
 \inmodule QtQmlCompiler More...
class  SourceLocationPrivate

Enumerations

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 , BindingFunctionScope , SignalHandlerFunctionScope
}
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  LookupMode { Register , Lookup , Register , Lookup }
enum  LookupMode { Register , Lookup , Register , Lookup }

Functions

constexpr bool isFunctionScope (ScopeType type)
bool isRegularBindingType (BindingType type)
Q_QMLCOMPILER_EXPORT void emitWarningWithOptionalFix (GenericPass &pass, QAnyStringView diagnostic, const LoggerWarningId &id, const QQmlSA::SourceLocation &srcLocation, const std::optional< QQmlJSFixSuggestion > &fix)
static QString lookupName (const QQmlSA::Element &element, LookupMode mode=Lookup)
static QQmlJS::ChildScopesIterator childScopesBegin (const Element &element)
static QQmlJS::ChildScopesIterator 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 49 of file qqmlsa.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 14 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 34 of file qqmlsa_p.h.

◆ LookupMode [1/2]

Enumerator
Register 
Lookup 
Register 
Lookup 

Definition at line 1451 of file qqmlsa.cpp.

◆ LookupMode [2/2]

Enumerator
Register 
Lookup 
Register 
Lookup 

Definition at line 1451 of file qqmlsa.cpp.

◆ MethodType

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

Definition at line 48 of file qqmlsa.h.

◆ ScopeType

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

Definition at line 38 of file qqmlsaconstants.h.

◆ ScriptBindingKind

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

Definition at line 31 of file qqmlsaconstants.h.

Function Documentation

◆ childScopesBegin()

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

Definition at line 1606 of file qqmlsa.cpp.

◆ childScopesEnd()

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

Definition at line 1611 of file qqmlsa.cpp.

◆ emitWarningWithOptionalFix()

void QQmlSA::emitWarningWithOptionalFix ( GenericPass & pass,
QAnyStringView diagnostic,
const LoggerWarningId & id,
const QQmlSA::SourceLocation & srcLocation,
const std::optional< QQmlJSFixSuggestion > & fix )

Definition at line 2237 of file qqmlsa.cpp.

◆ isFunctionScope()

bool QQmlSA::isFunctionScope ( ScopeType type)
inlineconstexpr

◆ isRegularBindingType()

bool QQmlSA::isRegularBindingType ( BindingType type)

Definition at line 2253 of file qqmlsa.cpp.

References BoolLiteral, and Object.

◆ lookupName()

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

Definition at line 1452 of file qqmlsa.cpp.

References Register.