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
QV4::Compiler::ControlFlowBlock Struct Reference

#include <qv4compilercontrolflow_p.h>

Inheritance diagram for QV4::Compiler::ControlFlowBlock:
Collaboration diagram for QV4::Compiler::ControlFlowBlock:

Public Member Functions

 ControlFlowBlock (Codegen *cg, QQmlJS::AST::Node *ast)
virtual ~ControlFlowBlock ()
virtual bool requiresUnwind () override
Public Member Functions inherited from QV4::Compiler::ControlFlowUnwind
 ControlFlowUnwind (Codegen *cg, Type type)
void setupUnwindHandler ()
void emitUnwindHandler ()
virtual BytecodeGenerator::ExceptionHandler * unwindHandler () override
Public Member Functions inherited from QV4::Compiler::ControlFlow
 ControlFlow (Codegen *cg, Type type)
virtual ~ControlFlow ()
UnwindTarget unwindTarget (UnwindType type, const QString &label=QString())
virtual QString label () const
bool hasLoop () const
BytecodeGenerator::ExceptionHandlerparentUnwindHandler ()

Public Attributes

Contextblock
Public Attributes inherited from QV4::Compiler::ControlFlowUnwind
BytecodeGenerator::ExceptionHandler unwindLabel
Public Attributes inherited from QV4::Compiler::ControlFlow
Codegencg
ControlFlowparent
Type type

Additional Inherited Members

Public Types inherited from QV4::Compiler::ControlFlow
enum  Type {
  Loop , With , Block , Finally ,
  Catch
}
enum  UnwindType { Break , Continue , Return }
using Reference = Codegen::Reference
using BytecodeGenerator = Moth::BytecodeGenerator
using Instruction = Moth::Instruction
Protected Member Functions inherited from QV4::Compiler::ControlFlow
virtual BytecodeGenerator::Label getUnwindTarget (UnwindType, const QString &=QString())
QString loopLabel () const
BytecodeGeneratorgenerator () const

Detailed Description

Definition at line 243 of file qv4compilercontrolflow_p.h.

Constructor & Destructor Documentation

◆ ControlFlowBlock()

QV4::Compiler::ControlFlowBlock::ControlFlowBlock ( Codegen * cg,
QQmlJS::AST::Node * ast )
inline

Definition at line 245 of file qv4compilercontrolflow_p.h.

References QV4::Compiler::ControlFlow::Block, and QV4::Compiler::ControlFlowUnwind::setupUnwindHandler().

Here is the call graph for this function:

◆ ~ControlFlowBlock()

virtual QV4::Compiler::ControlFlowBlock::~ControlFlowBlock ( )
inlinevirtual

Definition at line 257 of file qv4compilercontrolflow_p.h.

References QV4::Compiler::ControlFlowUnwind::emitUnwindHandler().

Here is the call graph for this function:

Member Function Documentation

◆ requiresUnwind()

virtual bool QV4::Compiler::ControlFlowBlock::requiresUnwind ( )
inlineoverridevirtual

Reimplemented from QV4::Compiler::ControlFlow.

Definition at line 271 of file qv4compilercontrolflow_p.h.

Member Data Documentation

◆ block

Context* QV4::Compiler::ControlFlowBlock::block

Definition at line 275 of file qv4compilercontrolflow_p.h.


The documentation for this struct was generated from the following file: