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

#include <qv4compilercontrolflow_p.h>

+ Inheritance diagram for QV4::Compiler::ControlFlowFinally:
+ Collaboration diagram for QV4::Compiler::ControlFlowFinally:

Public Member Functions

 ControlFlowFinally (Codegen *cg, QQmlJS::AST::Finally *finally, bool hasCatchBlock)
 
virtual bool requiresUnwind () override
 
BytecodeGenerator::ExceptionHandlerunwindHandler () override
 
 ~ControlFlowFinally ()
 
- Public Member Functions inherited from QV4::Compiler::ControlFlowUnwind
 ControlFlowUnwind (Codegen *cg, Type type)
 
void setupUnwindHandler ()
 
void emitUnwindHandler ()
 
- 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

QQmlJS::AST::Finallyfinally
 
bool insideFinally = false
 
- 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 336 of file qv4compilercontrolflow_p.h.

Constructor & Destructor Documentation

◆ ControlFlowFinally()

QV4::Compiler::ControlFlowFinally::ControlFlowFinally ( Codegen * cg,
QQmlJS::AST::Finally * finally,
bool hasCatchBlock )
inline

Definition at line 341 of file qv4compilercontrolflow_p.h.

References QV4::Compiler::ControlFlow::generator(), Q_ASSERT, QV4::Moth::BytecodeGenerator::setUnwindHandler(), QV4::Compiler::ControlFlowUnwind::setupUnwindHandler(), and QV4::Compiler::ControlFlowUnwind::unwindLabel.

+ Here is the call graph for this function:

◆ ~ControlFlowFinally()

Member Function Documentation

◆ requiresUnwind()

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

Reimplemented from QV4::Compiler::ControlFlow.

Definition at line 354 of file qv4compilercontrolflow_p.h.

References insideFinally.

◆ unwindHandler()

BytecodeGenerator::ExceptionHandler * QV4::Compiler::ControlFlowFinally::unwindHandler ( )
inlineoverridevirtual

Reimplemented from QV4::Compiler::ControlFlowUnwind.

Definition at line 358 of file qv4compilercontrolflow_p.h.

References insideFinally, QV4::Compiler::ControlFlow::parentUnwindHandler(), and QV4::Compiler::ControlFlowUnwind::unwindHandler().

+ Here is the call graph for this function:

Member Data Documentation

◆ finally

QQmlJS::AST::Finally* QV4::Compiler::ControlFlowFinally::finally

Definition at line 338 of file qv4compilercontrolflow_p.h.

Referenced by ~ControlFlowFinally().

◆ insideFinally

bool QV4::Compiler::ControlFlowFinally::insideFinally = false

Definition at line 339 of file qv4compilercontrolflow_p.h.

Referenced by ~ControlFlowFinally(), requiresUnwind(), and unwindHandler().


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