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
QQmlJSFunctionInitializer Class Reference

#include <qqmljsfunctioninitializer_p.h>

+ Collaboration diagram for QQmlJSFunctionInitializer:

Public Member Functions

 QQmlJSFunctionInitializer (const QQmlJSTypeResolver *typeResolver, const QV4::CompiledData::Location &objectLocation, const QV4::CompiledData::Location &scopeLocation)
 
QQmlJSCompilePass::Function run (const QV4::Compiler::Context *context, const QString &propertyName, QQmlJS::AST::Node *astNode, const QmlIR::Binding &irBinding, QQmlJS::DiagnosticMessage *error)
 
QQmlJSCompilePass::Function run (const QV4::Compiler::Context *context, const QString &functionName, QQmlJS::AST::Node *astNode, QQmlJS::DiagnosticMessage *error)
 

Detailed Description

QQmlJSFunctionInitializer analyzes the IR to produce an initial QQmlJSCompilePass::Function for further analysis. It only looks for the signature and the QML scope and doesn't visit the byte code.

Definition at line 21 of file qqmljsfunctioninitializer_p.h.

Constructor & Destructor Documentation

◆ QQmlJSFunctionInitializer()

QQmlJSFunctionInitializer::QQmlJSFunctionInitializer ( const QQmlJSTypeResolver * typeResolver,
const QV4::CompiledData::Location & objectLocation,
const QV4::CompiledData::Location & scopeLocation )
inline

Definition at line 25 of file qqmljsfunctioninitializer_p.h.

Member Function Documentation

◆ run() [1/2]

QQmlJSCompilePass::Function QQmlJSFunctionInitializer::run ( const QV4::Compiler::Context * context,
const QString & functionName,
QQmlJS::AST::Node * astNode,
QQmlJS::DiagnosticMessage * error )

Definition at line 265 of file qqmljsfunctioninitializer.cpp.

References QQmlJS::AST::FunctionExpression::asFunctionDefinition(), context, error, function, Q_ASSERT, and Q_UNUSED.

+ Here is the call graph for this function:

◆ run() [2/2]

QQmlJSCompilePass::Function QQmlJSFunctionInitializer::run ( const QV4::Compiler::Context * context,
const QString & propertyName,
QQmlJS::AST::Node * astNode,
const QmlIR::Binding & irBinding,
QQmlJS::DiagnosticMessage * error )

The documentation for this class was generated from the following files: